| 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 Frame* frameForGestureEvent(const PlatformGestureEvent&, IntPoint& adjustedP
oint); |
| 181 |
| 182 bool hasScrollableAncestor(const Node*) const; |
| 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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 298 | 301 |
| 299 bool isKeyEventAllowedInFullScreen(FullscreenElementStack*, const PlatformKe
yboardEvent&) const; | 302 bool isKeyEventAllowedInFullScreen(FullscreenElementStack*, const PlatformKe
yboardEvent&) const; |
| 300 | 303 |
| 301 bool handleGestureShowPress(); | 304 bool handleGestureShowPress(); |
| 302 | 305 |
| 303 bool handleScrollGestureOnResizer(Node*, const PlatformGestureEvent&); | 306 bool handleScrollGestureOnResizer(Node*, const PlatformGestureEvent&); |
| 304 | 307 |
| 305 bool passGestureEventToWidget(const PlatformGestureEvent&, Widget*); | 308 bool passGestureEventToWidget(const PlatformGestureEvent&, Widget*); |
| 306 bool passGestureEventToWidgetIfPossible(const PlatformGestureEvent&, RenderO
bject*); | 309 bool passGestureEventToWidgetIfPossible(const PlatformGestureEvent&, RenderO
bject*); |
| 307 bool sendScrollEventToView(const PlatformGestureEvent&, const FloatSize&); | 310 bool sendScrollEventToView(const PlatformGestureEvent&, const FloatSize&); |
| 308 Frame* getSubFrameForGestureEvent(const IntPoint& touchAdjustedPoint, const
PlatformGestureEvent&); | |
| 309 | 311 |
| 310 AutoscrollController* autoscrollController() const; | 312 AutoscrollController* autoscrollController() const; |
| 311 bool panScrollInProgress() const; | 313 bool panScrollInProgress() const; |
| 312 void setLastKnownMousePosition(const PlatformMouseEvent&); | 314 void setLastKnownMousePosition(const PlatformMouseEvent&); |
| 313 | 315 |
| 314 Frame* const m_frame; | 316 Frame* const m_frame; |
| 315 | 317 |
| 316 bool m_mousePressed; | 318 bool m_mousePressed; |
| 317 bool m_capturesDragging; | 319 bool m_capturesDragging; |
| 318 RefPtr<Node> m_mousePressNode; | 320 RefPtr<Node> m_mousePressNode; |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 393 float m_syntheticPageScaleFactor; | 395 float m_syntheticPageScaleFactor; |
| 394 | 396 |
| 395 Timer<EventHandler> m_activeIntervalTimer; | 397 Timer<EventHandler> m_activeIntervalTimer; |
| 396 double m_lastShowPressTimestamp; | 398 double m_lastShowPressTimestamp; |
| 397 RefPtr<Element> m_lastDeferredTapElement; | 399 RefPtr<Element> m_lastDeferredTapElement; |
| 398 }; | 400 }; |
| 399 | 401 |
| 400 } // namespace WebCore | 402 } // namespace WebCore |
| 401 | 403 |
| 402 #endif // EventHandler_h | 404 #endif // EventHandler_h |
| OLD | NEW |