OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2007, 2009, 2010, 2011 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2009, 2010, 2011 Apple Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
191 void notifyElementActivated(); | 191 void notifyElementActivated(); |
192 | 192 |
193 PassRefPtr<UserGestureToken> takeLastMouseDownGestureToken() { return m_last
MouseDownUserGestureToken.release(); } | 193 PassRefPtr<UserGestureToken> takeLastMouseDownGestureToken() { return m_last
MouseDownUserGestureToken.release(); } |
194 | 194 |
195 int clickCount() { return m_clickCount; } | 195 int clickCount() { return m_clickCount; } |
196 bool mouseDownWasSingleClickInSelection() { return m_mouseDownWasSingleClick
InSelection; } | 196 bool mouseDownWasSingleClickInSelection() { return m_mouseDownWasSingleClick
InSelection; } |
197 | 197 |
198 private: | 198 private: |
199 static DragState& dragState(); | 199 static DragState& dragState(); |
200 | 200 |
201 PassRefPtrWillBeRawPtr<DataTransfer> createDraggingDataTransfer() const; | 201 DataTransfer* createDraggingDataTransfer() const; |
202 | 202 |
203 bool updateSelectionForMouseDownDispatchingSelectStart(Node*, const VisibleS
election&, TextGranularity); | 203 bool updateSelectionForMouseDownDispatchingSelectStart(Node*, const VisibleS
election&, TextGranularity); |
204 void selectClosestWordFromHitTestResult(const HitTestResult&, AppendTrailing
Whitespace); | 204 void selectClosestWordFromHitTestResult(const HitTestResult&, AppendTrailing
Whitespace); |
205 void selectClosestMisspellingFromHitTestResult(const HitTestResult&, AppendT
railingWhitespace); | 205 void selectClosestMisspellingFromHitTestResult(const HitTestResult&, AppendT
railingWhitespace); |
206 void selectClosestWordFromMouseEvent(const MouseEventWithHitTestResults&); | 206 void selectClosestWordFromMouseEvent(const MouseEventWithHitTestResults&); |
207 void selectClosestMisspellingFromMouseEvent(const MouseEventWithHitTestResul
ts&); | 207 void selectClosestMisspellingFromMouseEvent(const MouseEventWithHitTestResul
ts&); |
208 void selectClosestWordOrLinkFromMouseEvent(const MouseEventWithHitTestResult
s&); | 208 void selectClosestWordOrLinkFromMouseEvent(const MouseEventWithHitTestResult
s&); |
209 | 209 |
210 bool handleMouseMoveOrLeaveEvent(const PlatformMouseEvent&, HitTestResult* h
overedNode = nullptr, bool onlyUpdateScrollbars = false, bool forceLeave = false
); | 210 bool handleMouseMoveOrLeaveEvent(const PlatformMouseEvent&, HitTestResult* h
overedNode = nullptr, bool onlyUpdateScrollbars = false, bool forceLeave = false
); |
211 bool handleMousePressEvent(const MouseEventWithHitTestResults&); | 211 bool handleMousePressEvent(const MouseEventWithHitTestResults&); |
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
417 // scroll sequence in this frame, or any child frames. Only used | 417 // scroll sequence in this frame, or any child frames. Only used |
418 // with ScrollCustomization. If some delta has been consumed, a | 418 // with ScrollCustomization. If some delta has been consumed, a |
419 // scroll which shouldn't propagate can't cause any element to | 419 // scroll which shouldn't propagate can't cause any element to |
420 // scroll other than the |m_previousGestureScrolledNode|. | 420 // scroll other than the |m_previousGestureScrolledNode|. |
421 bool m_deltaConsumedForScrollSequence; | 421 bool m_deltaConsumedForScrollSequence; |
422 }; | 422 }; |
423 | 423 |
424 } // namespace blink | 424 } // namespace blink |
425 | 425 |
426 #endif // EventHandler_h | 426 #endif // EventHandler_h |
OLD | NEW |