| Index: content/browser/web_contents/touch_selection_controller_aura_client_impl.h
|
| diff --git a/content/browser/web_contents/touch_selection_controller_aura_client_impl.h b/content/browser/web_contents/touch_selection_controller_aura_client_impl.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..ef1c4801b53a9304c52eb22a88061c906e66b181
|
| --- /dev/null
|
| +++ b/content/browser/web_contents/touch_selection_controller_aura_client_impl.h
|
| @@ -0,0 +1,47 @@
|
| +// Copyright (c) 2014 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef CONTENT_BROWSER_WEB_CONTENTS_TOUCH_SELECTION_CONTROLLER_AURA_CLIENT_IMPL_H_
|
| +#define CONTENT_BROWSER_WEB_CONTENTS_TOUCH_SELECTION_CONTROLLER_AURA_CLIENT_IMPL_H_
|
| +
|
| +#include "content/common/content_export.h"
|
| +#include "ui/touch_selection/touch_selection_controller_aura.h"
|
| +
|
| +namespace gfx {
|
| +class PointF;
|
| +class Rect;
|
| +}
|
| +
|
| +namespace content {
|
| +class RenderWidgetHostViewAura;
|
| +
|
| +// Aura specific implementation of ui::TouchSelectionControllerAuraClient for a
|
| +// RenderWidgetHostView.
|
| +class CONTENT_EXPORT TouchSelectionControllerAuraClientImpl
|
| + : public ui::TouchSelectionControllerAuraClient {
|
| + public:
|
| + TouchSelectionControllerAuraClientImpl(RenderWidgetHostViewAura* rwhva);
|
| + ~TouchSelectionControllerAuraClientImpl() override;
|
| +
|
| + private:
|
| + // ui::TouchSelectionControllerAuraClient:
|
| + void MoveCaret(const gfx::PointF& position) override;
|
| + void MoveRangeSelectionExtent(const gfx::PointF& extent) override;
|
| + void SelectBetweenCoordinates(const gfx::PointF& base,
|
| + const gfx::PointF& extent) override;
|
| + aura::Window* GetParentWindow() const override;
|
| + bool IsCommandIdEnabled(int command_id) const override;
|
| + void ExecuteCommand(int command_id, int event_flags) override;
|
| + void OpenContextMenu(const gfx::PointF& point) override;
|
| + gfx::Rect ConvertRectToScreen(const gfx::Rect& rect) const override;
|
| +
|
| + // Not owned, non-null for the lifetime of this object.
|
| + RenderWidgetHostViewAura* rwhva_;
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(TouchSelectionControllerAuraClientImpl);
|
| +};
|
| +
|
| +} // namespace content
|
| +
|
| +#endif // CONTENT_BROWSER_WEB_CONTENTS_TOUCH_SELECTION_CONTROLLER_AURA_CLIENT_IMPL_H_
|
|
|