Chromium Code Reviews| 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..889b62d43f7d4f022d9d8af8639c368559311261 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,11 @@ private: |
| SelectionState m_selectionState; |
| }; |
| +inline bool mayBeLinkSelection(const MouseEventWithHitTestResults& event) |
|
yosin_UTC9
2016/03/10 01:40:48
nit: Since, this function isn't performance sensit
|
| +{ |
| + return event.event().altKey() && event.isOverLink(); |
| +} |
| + |
| } // namespace blink |
| #endif // SelectionController_h |