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

Unified Diff: third_party/WebKit/Source/core/editing/SelectionController.h

Issue 1528153004: Look Up on Force Touch (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
Index: third_party/WebKit/Source/core/editing/SelectionController.h
diff --git a/third_party/WebKit/Source/core/editing/SelectionController.h b/third_party/WebKit/Source/core/editing/SelectionController.h
index 8d02d2f4233c2bb8819a4229d6ccbafea444ac3a..3fd472d039a04b9d5cb057560f1cfdaeeca22346 100644
--- a/third_party/WebKit/Source/core/editing/SelectionController.h
+++ b/third_party/WebKit/Source/core/editing/SelectionController.h
@@ -66,6 +66,10 @@ public:
bool mouseDownWasSingleClickInSelection() const;
void notifySelectionChanged();
+ // Selects a word if there's one in the given HitTestResult. Returns true
+ // if a word was selected.
+ bool selectWordAtPositionIfAny(const HitTestResult&);
+
private:
explicit SelectionController(LocalFrame&);

Powered by Google App Engine
This is Rietveld 408576698