| 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 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 void focusDocumentView(); | 171 void focusDocumentView(); |
| 172 | 172 |
| 173 void capsLockStateMayHaveChanged(); // Only called by FrameSelection | 173 void capsLockStateMayHaveChanged(); // Only called by FrameSelection |
| 174 | 174 |
| 175 bool handleTouchEvent(const PlatformTouchEvent&); | 175 bool handleTouchEvent(const PlatformTouchEvent&); |
| 176 | 176 |
| 177 bool useHandCursor(Node*, bool isOverLink, bool shiftKey); | 177 bool useHandCursor(Node*, bool isOverLink, bool shiftKey); |
| 178 | 178 |
| 179 void notifyElementActivated(); | 179 void notifyElementActivated(); |
| 180 | 180 |
| 181 LocalFrame* frameForGestureEvent(const PlatformGestureEvent&, IntPoint& adju
stedPoint); |
| 182 |
| 183 bool hasScrollableAncestor(const Node*) const; |
| 181 private: | 184 private: |
| 182 static DragState& dragState(); | 185 static DragState& dragState(); |
| 183 | 186 |
| 184 PassRefPtrWillBeRawPtr<Clipboard> createDraggingClipboard() const; | 187 PassRefPtrWillBeRawPtr<Clipboard> createDraggingClipboard() const; |
| 185 | 188 |
| 186 bool updateSelectionForMouseDownDispatchingSelectStart(Node*, const VisibleS
election&, TextGranularity); | 189 bool updateSelectionForMouseDownDispatchingSelectStart(Node*, const VisibleS
election&, TextGranularity); |
| 187 void selectClosestWordFromHitTestResult(const HitTestResult&, AppendTrailing
Whitespace); | 190 void selectClosestWordFromHitTestResult(const HitTestResult&, AppendTrailing
Whitespace); |
| 188 void selectClosestMisspellingFromHitTestResult(const HitTestResult&, AppendT
railingWhitespace); | 191 void selectClosestMisspellingFromHitTestResult(const HitTestResult&, AppendT
railingWhitespace); |
| 189 void selectClosestWordFromMouseEvent(const MouseEventWithHitTestResults&); | 192 void selectClosestWordFromMouseEvent(const MouseEventWithHitTestResults&); |
| 190 void selectClosestMisspellingFromMouseEvent(const MouseEventWithHitTestResul
ts&); | 193 void selectClosestMisspellingFromMouseEvent(const MouseEventWithHitTestResul
ts&); |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 299 | 302 |
| 300 bool isKeyEventAllowedInFullScreen(FullscreenElementStack*, const PlatformKe
yboardEvent&) const; | 303 bool isKeyEventAllowedInFullScreen(FullscreenElementStack*, const PlatformKe
yboardEvent&) const; |
| 301 | 304 |
| 302 bool handleGestureShowPress(); | 305 bool handleGestureShowPress(); |
| 303 | 306 |
| 304 bool handleScrollGestureOnResizer(Node*, const PlatformGestureEvent&); | 307 bool handleScrollGestureOnResizer(Node*, const PlatformGestureEvent&); |
| 305 | 308 |
| 306 bool passGestureEventToWidget(const PlatformGestureEvent&, Widget*); | 309 bool passGestureEventToWidget(const PlatformGestureEvent&, Widget*); |
| 307 bool passGestureEventToWidgetIfPossible(const PlatformGestureEvent&, RenderO
bject*); | 310 bool passGestureEventToWidgetIfPossible(const PlatformGestureEvent&, RenderO
bject*); |
| 308 bool sendScrollEventToView(const PlatformGestureEvent&, const FloatSize&); | 311 bool sendScrollEventToView(const PlatformGestureEvent&, const FloatSize&); |
| 309 LocalFrame* getSubFrameForGestureEvent(const IntPoint& touchAdjustedPoint, c
onst PlatformGestureEvent&); | |
| 310 | 312 |
| 311 AutoscrollController* autoscrollController() const; | 313 AutoscrollController* autoscrollController() const; |
| 312 bool panScrollInProgress() const; | 314 bool panScrollInProgress() const; |
| 313 void setLastKnownMousePosition(const PlatformMouseEvent&); | 315 void setLastKnownMousePosition(const PlatformMouseEvent&); |
| 314 | 316 |
| 315 LocalFrame* const m_frame; | 317 LocalFrame* const m_frame; |
| 316 | 318 |
| 317 bool m_mousePressed; | 319 bool m_mousePressed; |
| 318 bool m_capturesDragging; | 320 bool m_capturesDragging; |
| 319 RefPtr<Node> m_mousePressNode; | 321 RefPtr<Node> m_mousePressNode; |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 394 float m_syntheticPageScaleFactor; | 396 float m_syntheticPageScaleFactor; |
| 395 | 397 |
| 396 Timer<EventHandler> m_activeIntervalTimer; | 398 Timer<EventHandler> m_activeIntervalTimer; |
| 397 double m_lastShowPressTimestamp; | 399 double m_lastShowPressTimestamp; |
| 398 RefPtr<Element> m_lastDeferredTapElement; | 400 RefPtr<Element> m_lastDeferredTapElement; |
| 399 }; | 401 }; |
| 400 | 402 |
| 401 } // namespace WebCore | 403 } // namespace WebCore |
| 402 | 404 |
| 403 #endif // EventHandler_h | 405 #endif // EventHandler_h |
| OLD | NEW |