Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(398)

Side by Side Diff: content/browser/web_contents/touch_selection_controller_aura_client_impl.h

Issue 698253004: Reland: Implement Aura side of unified touch text selection for contents (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased after addition of touch_handle_orientation file Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_TOUCH_SELECTION_CONTROLLER_AURA_CLIENT_IMPL _H_
6 #define CONTENT_BROWSER_WEB_CONTENTS_TOUCH_SELECTION_CONTROLLER_AURA_CLIENT_IMPL _H_
7
8 #include "content/common/content_export.h"
9 #include "ui/touch_selection/touch_selection_controller_aura.h"
10
11 namespace gfx {
12 class PointF;
13 class Rect;
14 }
15
16 namespace content {
17 class RenderWidgetHostViewAura;
18
19 // Aura specific implementation of ui::TouchSelectionControllerAuraClient for a
20 // RenderWidgetHostView.
21 class CONTENT_EXPORT TouchSelectionControllerAuraClientImpl
22 : public ui::TouchSelectionControllerAuraClient {
23 public:
24 explicit TouchSelectionControllerAuraClientImpl(
25 RenderWidgetHostViewAura* rwhva);
26 ~TouchSelectionControllerAuraClientImpl() override;
27
28 private:
29 // ui::TouchSelectionControllerAuraClient:
30 void MoveCaret(const gfx::PointF& position) override;
31 void MoveRangeSelectionExtent(const gfx::PointF& extent) override;
32 void SelectBetweenCoordinates(const gfx::PointF& base,
33 const gfx::PointF& extent) override;
34 aura::Window* GetParentWindow() const override;
35 gfx::Rect GetClientBounds() const override;
36 bool IsCommandIdEnabled(int command_id) const override;
37 void ExecuteCommand(int command_id, int event_flags) override;
38 void OpenContextMenu(const gfx::PointF& point) override;
39
40 // Not owned, non-null for the lifetime of this object.
41 RenderWidgetHostViewAura* rwhva_;
42
43 DISALLOW_COPY_AND_ASSIGN(TouchSelectionControllerAuraClientImpl);
44 };
45
46 } // namespace content
47
48 #endif // CONTENT_BROWSER_WEB_CONTENTS_TOUCH_SELECTION_CONTROLLER_AURA_CLIENT_I MPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698