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

Unified Diff: ui/touch_selection/touch_selection_controller.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/touch_selection/selection_granularity.h ('k') | ui/touch_selection/touch_selection_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/touch_selection/touch_selection_controller.h
diff --git a/ui/touch_selection/touch_selection_controller.h b/ui/touch_selection/touch_selection_controller.h
index aa3a429690b0f002331a5fe0449606601aa26a67..f7f29a0e3447963e35f2ccc56598bb0f4538d95c 100644
--- a/ui/touch_selection/touch_selection_controller.h
+++ b/ui/touch_selection/touch_selection_controller.h
@@ -9,6 +9,7 @@
#include "ui/gfx/geometry/point_f.h"
#include "ui/gfx/geometry/rect_f.h"
#include "ui/touch_selection/selection_event_type.h"
+#include "ui/touch_selection/selection_granularity.h"
#include "ui/touch_selection/touch_handle.h"
#include "ui/touch_selection/ui_touch_selection_export.h"
@@ -24,7 +25,9 @@ class UI_TOUCH_SELECTION_EXPORT TouchSelectionControllerClient {
virtual bool SupportsAnimation() const = 0;
virtual void SetNeedsAnimate() = 0;
virtual void MoveCaret(const gfx::PointF& position) = 0;
- virtual void MoveRangeSelectionExtent(const gfx::PointF& extent) = 0;
+ virtual void MoveRangeSelectionExtent(
+ const gfx::PointF& extent,
+ ui::TextSelectionGranularity granularity) = 0;
virtual void SelectBetweenCoordinates(const gfx::PointF& base,
const gfx::PointF& extent) = 0;
virtual void OnSelectionEvent(SelectionEventType event,
« no previous file with comments | « ui/touch_selection/selection_granularity.h ('k') | ui/touch_selection/touch_selection_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698