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

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

Issue 829913004: WIP: Plumbing through text selection granularity control support (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@unified_text_selection_diff
Patch Set: Missing file. Created 5 years, 11 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
1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_TOUCH_SELECTION_CONTROLLER_AURA_CLIENT_IMPL _H_ 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_ 6 #define CONTENT_BROWSER_WEB_CONTENTS_TOUCH_SELECTION_CONTROLLER_AURA_CLIENT_IMPL _H_
7 7
8 #include "content/common/content_export.h" 8 #include "content/common/content_export.h"
9 #include "ui/touch_selection/touch_selection_controller_aura.h" 9 #include "ui/touch_selection/touch_selection_controller_aura.h"
10 10
11 namespace gfx { 11 namespace gfx {
12 class PointF; 12 class PointF;
13 class Rect; 13 class Rect;
14 } 14 }
15 15
16 namespace content { 16 namespace content {
17 class RenderWidgetHostViewAura; 17 class RenderWidgetHostViewAura;
18 18
19 // Aura specific implementation of ui::TouchEditable for a RenderWidgetHostView. 19 // Aura specific implementation of ui::TouchEditable for a RenderWidgetHostView.
20 class CONTENT_EXPORT TouchSelectionControllerAuraClientImpl 20 class CONTENT_EXPORT TouchSelectionControllerAuraClientImpl
21 : public ui::TouchSelectionControllerAuraClient { 21 : public ui::TouchSelectionControllerAuraClient {
22 public: 22 public:
23 TouchSelectionControllerAuraClientImpl(RenderWidgetHostViewAura* rwhva); 23 TouchSelectionControllerAuraClientImpl(RenderWidgetHostViewAura* rwhva);
24 ~TouchSelectionControllerAuraClientImpl() override; 24 ~TouchSelectionControllerAuraClientImpl() override;
25 25
26 private: 26 private:
27 // ui::TouchSelectionControllerAuraClient: 27 // ui::TouchSelectionControllerAuraClient:
28 void MoveCaret(const gfx::PointF& position) override; 28 void MoveCaret(const gfx::PointF& position) override;
29 void MoveRangeSelectionExtent(const gfx::PointF& extent) override; 29 void MoveRangeSelectionExtent(
30 const gfx::PointF& extent,
31 ui::TextSelectionGranularity granularity) override;
30 void SelectBetweenCoordinates(const gfx::PointF& base, 32 void SelectBetweenCoordinates(const gfx::PointF& base,
31 const gfx::PointF& extent) override; 33 const gfx::PointF& extent) override;
32 aura::Window* GetParentWindow() const override; 34 aura::Window* GetParentWindow() const override;
33 bool IsCommandIdEnabled(int command_id) const override; 35 bool IsCommandIdEnabled(int command_id) const override;
34 void ExecuteCommand(int command_id, int event_flags) override; 36 void ExecuteCommand(int command_id, int event_flags) override;
35 void OpenContextMenu(const gfx::PointF& point) override; 37 void OpenContextMenu(const gfx::PointF& point) override;
36 gfx::Rect ConvertRectToScreen(const gfx::Rect& rect) const override; 38 gfx::Rect ConvertRectToScreen(const gfx::Rect& rect) const override;
37 39
38 // Not owned, non-null for the lifetime of this object. 40 // Not owned, non-null for the lifetime of this object.
39 RenderWidgetHostViewAura* rwhva_; 41 RenderWidgetHostViewAura* rwhva_;
40 42
41 DISALLOW_COPY_AND_ASSIGN(TouchSelectionControllerAuraClientImpl); 43 DISALLOW_COPY_AND_ASSIGN(TouchSelectionControllerAuraClientImpl);
42 }; 44 };
43 45
44 } // namespace content 46 } // namespace content
45 47
46 #endif // CONTENT_BROWSER_WEB_CONTENTS_TOUCH_SELECTION_CONTROLLER_AURA_CLIENT_I MPL_H_ 48 #endif // CONTENT_BROWSER_WEB_CONTENTS_TOUCH_SELECTION_CONTROLLER_AURA_CLIENT_I MPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698