chromium/content/browser/renderer_host/input/touch_selection_controller_client_child_frame.h

// Copyright 2017 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef CONTENT_BROWSER_RENDERER_HOST_INPUT_TOUCH_SELECTION_CONTROLLER_CLIENT_CHILD_FRAME_H_
#define CONTENT_BROWSER_RENDERER_HOST_INPUT_TOUCH_SELECTION_CONTROLLER_CLIENT_CHILD_FRAME_H_

#include <memory>

#include "base/memory/raw_ptr.h"
#include "components/viz/common/quads/selection.h"
#include "ui/touch_selection/touch_selection_controller.h"
#include "ui/touch_selection/touch_selection_menu_runner.h"

namespace content {
class RenderWidgetHostViewChildFrame;
class TouchSelectionControllerClientManager;

// An implementation of |TouchSelectionControllerClient| to be used by
// implementations of TouchSelectionControllerClientManager. This class serves
// cross-process iframes, which have different renderers than the main frame,
// and thus have their own RenderWidgetHostViewChildFrames. Since a
// TouchSelectionControllerClient is intended to bind these views to the
// TouchSelectionController, we need a different implementation for
// cross-process subframes.
class TouchSelectionControllerClientChildFrame
    : public ui::TouchSelectionControllerClient,
      public ui::TouchSelectionMenuClient {};

}  // namespace content
#endif  // CONTENT_BROWSER_RENDERER_HOST_INPUT_TOUCH_SELECTION_CONTROLLER_CLIENT_CHILD_FRAME_H_