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

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

Issue 1371003002: Utilize VisibleSelectionTemplate template class in SelectionController (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 2015-09-28T14:31:05 Created 5 years, 3 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 | « no previous file | third_party/WebKit/Source/core/editing/SelectionController.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 6662fdbba758441a677c9df2c188864fd3c1e926..84f8548a81c10d26ccd8809d351b90c509f3c4c5 100644
--- a/third_party/WebKit/Source/core/editing/SelectionController.h
+++ b/third_party/WebKit/Source/core/editing/SelectionController.h
@@ -76,13 +76,32 @@ private:
void updateSelectionForMouseDragAlgorithm(const HitTestResult&, Node*, const LayoutPoint&, const IntPoint&);
enum class AppendTrailingWhitespace { ShouldAppend, DontAppend };
+
+ template <typename Strategy>
void selectClosestWordFromHitTestResult(const HitTestResult&, AppendTrailingWhitespace);
+ template <typename Strategy>
void selectClosestMisspellingFromHitTestResult(const HitTestResult&, AppendTrailingWhitespace);
void selectClosestWordFromMouseEvent(const MouseEventWithHitTestResults&);
+
+ template <typename Strategy>
void selectClosestMisspellingFromMouseEvent(const MouseEventWithHitTestResults&);
+
+ template <typename Strategy>
void selectClosestWordOrLinkFromMouseEvent(const MouseEventWithHitTestResults&);
template <typename Strategy>
+ bool handleGestureLongPressAlgorithm(const PlatformGestureEvent&, const HitTestResult&);
+
+ template <typename Strategy>
+ bool handleMousePressEventTripleClickAlgorithm(const MouseEventWithHitTestResults&);
+
+ template <typename Strategy>
+ bool handleMouseReleaseEventAlgorithm(const MouseEventWithHitTestResults&, const LayoutPoint&);
+
+ template <typename Strategy>
+ void passMousePressEventToSubframeAlgorithm(const MouseEventWithHitTestResults&);
+
+ template <typename Strategy>
bool updateSelectionForMouseDownDispatchingSelectStart(Node*, const VisibleSelectionTemplate<Strategy>&, TextGranularity);
FrameSelection& selection() const;
@@ -95,4 +114,5 @@ private:
};
} // namespace blink
+
#endif // SelectionController_h
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/editing/SelectionController.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698