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 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
192 bool handleTouchEvent(const PlatformTouchEvent&); | 192 bool handleTouchEvent(const PlatformTouchEvent&); |
193 | 193 |
194 bool useHandCursor(Node*, bool isOverLink); | 194 bool useHandCursor(Node*, bool isOverLink); |
195 | 195 |
196 void notifyElementActivated(); | 196 void notifyElementActivated(); |
197 | 197 |
198 PassRefPtr<UserGestureToken> takeLastMouseDownGestureToken() { return m_last MouseDownUserGestureToken.release(); } | 198 PassRefPtr<UserGestureToken> takeLastMouseDownGestureToken() { return m_last MouseDownUserGestureToken.release(); } |
199 | 199 |
200 int clickCount() { return m_clickCount; } | 200 int clickCount() { return m_clickCount; } |
201 bool mouseDownWasSingleClickInSelection() { return m_mouseDownWasSingleClick InSelection; } | 201 bool mouseDownWasSingleClickInSelection() { return m_mouseDownWasSingleClick InSelection; } |
202 Node* lastNodeUnderMouse() { return m_lastNodeUnderMouse.get(); } | |
mustaq
2015/06/08 17:24:24
I think it's better not to make it public until ne
Miyoung Shin(c)
2015/06/10 12:10:05
Done.
| |
202 | 203 |
203 private: | 204 private: |
204 static DragState& dragState(); | 205 static DragState& dragState(); |
205 | 206 |
206 DataTransfer* createDraggingDataTransfer() const; | 207 DataTransfer* createDraggingDataTransfer() const; |
207 | 208 |
208 bool updateSelectionForMouseDownDispatchingSelectStart(Node*, const VisibleS election&, TextGranularity); | 209 bool updateSelectionForMouseDownDispatchingSelectStart(Node*, const VisibleS election&, TextGranularity); |
209 void selectClosestWordFromHitTestResult(const HitTestResult&, AppendTrailing Whitespace); | 210 void selectClosestWordFromHitTestResult(const HitTestResult&, AppendTrailing Whitespace); |
210 void selectClosestMisspellingFromHitTestResult(const HitTestResult&, AppendT railingWhitespace); | 211 void selectClosestMisspellingFromHitTestResult(const HitTestResult&, AppendT railingWhitespace); |
211 void selectClosestWordFromMouseEvent(const MouseEventWithHitTestResults&); | 212 void selectClosestWordFromMouseEvent(const MouseEventWithHitTestResults&); |
(...skipping 13 matching lines...) Expand all Loading... | |
225 | 226 |
226 HitTestRequest::HitTestRequestType getHitTypeForGestureType(PlatformEvent::T ype); | 227 HitTestRequest::HitTestRequestType getHitTypeForGestureType(PlatformEvent::T ype); |
227 void applyTouchAdjustment(PlatformGestureEvent*, HitTestResult*); | 228 void applyTouchAdjustment(PlatformGestureEvent*, HitTestResult*); |
228 bool handleGestureTap(const GestureEventWithHitTestResults&); | 229 bool handleGestureTap(const GestureEventWithHitTestResults&); |
229 bool handleGestureLongPress(const GestureEventWithHitTestResults&); | 230 bool handleGestureLongPress(const GestureEventWithHitTestResults&); |
230 bool handleGestureLongTap(const GestureEventWithHitTestResults&); | 231 bool handleGestureLongTap(const GestureEventWithHitTestResults&); |
231 bool handleGestureScrollUpdate(const PlatformGestureEvent&); | 232 bool handleGestureScrollUpdate(const PlatformGestureEvent&); |
232 bool handleGestureScrollBegin(const PlatformGestureEvent&); | 233 bool handleGestureScrollBegin(const PlatformGestureEvent&); |
233 void clearGestureScrollNodes(); | 234 void clearGestureScrollNodes(); |
234 | 235 |
236 void updateGestureTargetNodeForMouseEvent(const GestureEventWithHitTestResul ts&); | |
237 | |
235 bool shouldApplyTouchAdjustment(const PlatformGestureEvent&) const; | 238 bool shouldApplyTouchAdjustment(const PlatformGestureEvent&) const; |
236 | 239 |
237 OptionalCursor selectCursor(const HitTestResult&); | 240 OptionalCursor selectCursor(const HitTestResult&); |
238 OptionalCursor selectAutoCursor(const HitTestResult&, Node*, const Cursor& i Beam); | 241 OptionalCursor selectAutoCursor(const HitTestResult&, Node*, const Cursor& i Beam); |
239 | 242 |
240 void hoverTimerFired(Timer<EventHandler>*); | 243 void hoverTimerFired(Timer<EventHandler>*); |
241 void cursorUpdateTimerFired(Timer<EventHandler>*); | 244 void cursorUpdateTimerFired(Timer<EventHandler>*); |
242 void activeIntervalTimerFired(Timer<EventHandler>*); | 245 void activeIntervalTimerFired(Timer<EventHandler>*); |
243 | 246 |
244 bool mouseDownMayStartSelect() const { return m_mouseDownMayStartSelect; } | 247 bool mouseDownMayStartSelect() const { return m_mouseDownMayStartSelect; } |
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
425 // scroll sequence in this frame, or any child frames. Only used | 428 // scroll sequence in this frame, or any child frames. Only used |
426 // with ScrollCustomization. If some delta has been consumed, a | 429 // with ScrollCustomization. If some delta has been consumed, a |
427 // scroll which shouldn't propagate can't cause any element to | 430 // scroll which shouldn't propagate can't cause any element to |
428 // scroll other than the |m_previousGestureScrolledNode|. | 431 // scroll other than the |m_previousGestureScrolledNode|. |
429 bool m_deltaConsumedForScrollSequence; | 432 bool m_deltaConsumedForScrollSequence; |
430 }; | 433 }; |
431 | 434 |
432 } // namespace blink | 435 } // namespace blink |
433 | 436 |
434 #endif // EventHandler_h | 437 #endif // EventHandler_h |
OLD | NEW |