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

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

Issue 1774123006: Implement link selection on alt+mouse drag. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove static and rename function. Created 4 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 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 eb259ec8053f3831e6c177e8ffe9ce44b98fdfc7..ea0ea465ee2022f6bb68c89dbe4c42781df372d9 100644
--- a/third_party/WebKit/Source/core/editing/SelectionController.h
+++ b/third_party/WebKit/Source/core/editing/SelectionController.h
@@ -65,6 +65,7 @@ public:
bool mouseDownMayStartSelect() const;
bool mouseDownWasSingleClickInSelection() const;
void notifySelectionChanged();
+ bool hasExtendedSelection() const { return m_selectionState == SelectionState::ExtendedSelection; }
private:
explicit SelectionController(LocalFrame&);
@@ -88,6 +89,8 @@ private:
SelectionState m_selectionState;
};
+bool mayBeLinkSelection(const MouseEventWithHitTestResults&);
+
} // namespace blink
#endif // SelectionController_h

Powered by Google App Engine
This is Rietveld 408576698