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 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
170 void focusDocumentView(); | 170 void focusDocumentView(); |
171 | 171 |
172 void capsLockStateMayHaveChanged(); // Only called by FrameSelection | 172 void capsLockStateMayHaveChanged(); // Only called by FrameSelection |
173 | 173 |
174 bool handleTouchEvent(const PlatformTouchEvent&); | 174 bool handleTouchEvent(const PlatformTouchEvent&); |
175 | 175 |
176 bool useHandCursor(Node*, bool isOverLink, bool shiftKey); | 176 bool useHandCursor(Node*, bool isOverLink, bool shiftKey); |
177 | 177 |
178 void notifyElementActivated(); | 178 void notifyElementActivated(); |
179 | 179 |
| 180 // Move this to FrameHost? This acts like it's shared between all frames. |
| 181 bool tapDownTriggeredActive() { return m_tapDownTriggeredActive; }; |
| 182 |
180 private: | 183 private: |
181 static DragState& dragState(); | 184 static DragState& dragState(); |
182 | 185 |
183 PassRefPtr<Clipboard> createDraggingClipboard() const; | 186 PassRefPtr<Clipboard> createDraggingClipboard() const; |
184 | 187 |
185 bool updateSelectionForMouseDownDispatchingSelectStart(Node*, const VisibleS
election&, TextGranularity); | 188 bool updateSelectionForMouseDownDispatchingSelectStart(Node*, const VisibleS
election&, TextGranularity); |
186 void selectClosestWordFromHitTestResult(const HitTestResult&, AppendTrailing
Whitespace); | 189 void selectClosestWordFromHitTestResult(const HitTestResult&, AppendTrailing
Whitespace); |
187 void selectClosestMisspellingFromHitTestResult(const HitTestResult&, AppendT
railingWhitespace); | 190 void selectClosestMisspellingFromHitTestResult(const HitTestResult&, AppendT
railingWhitespace); |
188 void selectClosestWordFromMouseEvent(const MouseEventWithHitTestResults&); | 191 void selectClosestWordFromMouseEvent(const MouseEventWithHitTestResults&); |
189 void selectClosestMisspellingFromMouseEvent(const MouseEventWithHitTestResul
ts&); | 192 void selectClosestMisspellingFromMouseEvent(const MouseEventWithHitTestResul
ts&); |
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
386 PlatformEvent::Type m_baseEventType; | 389 PlatformEvent::Type m_baseEventType; |
387 bool m_didStartDrag; | 390 bool m_didStartDrag; |
388 | 391 |
389 bool m_longTapShouldInvokeContextMenu; | 392 bool m_longTapShouldInvokeContextMenu; |
390 OwnPtr<IntPoint> m_lastSyntheticPinchAnchorCss; | 393 OwnPtr<IntPoint> m_lastSyntheticPinchAnchorCss; |
391 OwnPtr<IntPoint> m_lastSyntheticPinchAnchorDip; | 394 OwnPtr<IntPoint> m_lastSyntheticPinchAnchorDip; |
392 OwnPtr<IntPoint> m_lastSyntheticPanLocation; | 395 OwnPtr<IntPoint> m_lastSyntheticPanLocation; |
393 float m_syntheticPageScaleFactor; | 396 float m_syntheticPageScaleFactor; |
394 | 397 |
395 Timer<EventHandler> m_activeIntervalTimer; | 398 Timer<EventHandler> m_activeIntervalTimer; |
396 double m_lastShowPressTimestamp; | 399 double m_lastActiveTimestamp; |
397 RefPtr<Element> m_lastDeferredTapElement; | 400 RefPtr<Element> m_lastDeferredTapElement; |
| 401 bool m_tapDownTriggeredActive; |
398 }; | 402 }; |
399 | 403 |
400 } // namespace WebCore | 404 } // namespace WebCore |
401 | 405 |
402 #endif // EventHandler_h | 406 #endif // EventHandler_h |
OLD | NEW |