| 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 25 matching lines...) Expand all Loading... |
| 36 #include "platform/Timer.h" | 36 #include "platform/Timer.h" |
| 37 #include "platform/UserGestureIndicator.h" | 37 #include "platform/UserGestureIndicator.h" |
| 38 #include "platform/geometry/LayoutPoint.h" | 38 #include "platform/geometry/LayoutPoint.h" |
| 39 #include "platform/scroll/ScrollTypes.h" | 39 #include "platform/scroll/ScrollTypes.h" |
| 40 #include "wtf/Forward.h" | 40 #include "wtf/Forward.h" |
| 41 #include "wtf/HashMap.h" | 41 #include "wtf/HashMap.h" |
| 42 #include "wtf/RefPtr.h" | 42 #include "wtf/RefPtr.h" |
| 43 | 43 |
| 44 namespace WebCore { | 44 namespace WebCore { |
| 45 | 45 |
| 46 class AutoscrollController; |
| 46 class Clipboard; | 47 class Clipboard; |
| 47 class Document; | 48 class Document; |
| 48 class Element; | 49 class Element; |
| 49 class Event; | 50 class Event; |
| 50 class EventTarget; | 51 class EventTarget; |
| 51 class FloatPoint; | 52 class FloatPoint; |
| 52 class FloatQuad; | 53 class FloatQuad; |
| 53 class FullscreenElementStack; | 54 class FullscreenElementStack; |
| 54 class Frame; | 55 class Frame; |
| 55 class HTMLFrameSetElement; | 56 class HTMLFrameSetElement; |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 void nodeWillBeRemoved(Node*); | 92 void nodeWillBeRemoved(Node*); |
| 92 | 93 |
| 93 void updateSelectionForMouseDrag(); | 94 void updateSelectionForMouseDrag(); |
| 94 | 95 |
| 95 Node* mousePressNode() const; | 96 Node* mousePressNode() const; |
| 96 | 97 |
| 97 #if OS(WIN) | 98 #if OS(WIN) |
| 98 void startPanScrolling(RenderObject*); | 99 void startPanScrolling(RenderObject*); |
| 99 #endif | 100 #endif |
| 100 | 101 |
| 101 void stopAutoscrollTimer(); | 102 void stopAutoscroll(); |
| 102 | 103 |
| 103 void dispatchFakeMouseMoveEventSoon(); | 104 void dispatchFakeMouseMoveEventSoon(); |
| 104 void dispatchFakeMouseMoveEventSoonInQuad(const FloatQuad&); | 105 void dispatchFakeMouseMoveEventSoonInQuad(const FloatQuad&); |
| 105 | 106 |
| 106 HitTestResult hitTestResultAtPoint(const LayoutPoint&, | 107 HitTestResult hitTestResultAtPoint(const LayoutPoint&, |
| 107 HitTestRequest::HitTestRequestType hitType = HitTestRequest::ReadOnly |
HitTestRequest::Active, | 108 HitTestRequest::HitTestRequestType hitType = HitTestRequest::ReadOnly |
HitTestRequest::Active, |
| 108 const LayoutSize& padding = LayoutSize()); | 109 const LayoutSize& padding = LayoutSize()); |
| 109 | 110 |
| 110 bool mousePressed() const { return m_mousePressed; } | 111 bool mousePressed() const { return m_mousePressed; } |
| 111 void setMousePressed(bool pressed) { m_mousePressed = pressed; } | 112 void setMousePressed(bool pressed) { m_mousePressed = pressed; } |
| (...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 281 | 282 |
| 282 bool handleGestureShowPress(); | 283 bool handleGestureShowPress(); |
| 283 | 284 |
| 284 bool handleScrollGestureOnResizer(Node*, const PlatformGestureEvent&); | 285 bool handleScrollGestureOnResizer(Node*, const PlatformGestureEvent&); |
| 285 | 286 |
| 286 bool passGestureEventToWidget(const PlatformGestureEvent&, Widget*); | 287 bool passGestureEventToWidget(const PlatformGestureEvent&, Widget*); |
| 287 bool passGestureEventToWidgetIfPossible(const PlatformGestureEvent&, RenderO
bject*); | 288 bool passGestureEventToWidgetIfPossible(const PlatformGestureEvent&, RenderO
bject*); |
| 288 bool sendScrollEventToView(const PlatformGestureEvent&, const FloatSize&); | 289 bool sendScrollEventToView(const PlatformGestureEvent&, const FloatSize&); |
| 289 Frame* getSubFrameForGestureEvent(const IntPoint& touchAdjustedPoint, const
PlatformGestureEvent&); | 290 Frame* getSubFrameForGestureEvent(const IntPoint& touchAdjustedPoint, const
PlatformGestureEvent&); |
| 290 | 291 |
| 292 AutoscrollController* autoscrollController() const; |
| 291 bool panScrollInProgress() const; | 293 bool panScrollInProgress() const; |
| 292 void setLastKnownMousePosition(const PlatformMouseEvent&); | 294 void setLastKnownMousePosition(const PlatformMouseEvent&); |
| 293 | 295 |
| 294 Frame* const m_frame; | 296 Frame* const m_frame; |
| 295 | 297 |
| 296 bool m_mousePressed; | 298 bool m_mousePressed; |
| 297 bool m_capturesDragging; | 299 bool m_capturesDragging; |
| 298 RefPtr<Node> m_mousePressNode; | 300 RefPtr<Node> m_mousePressNode; |
| 299 | 301 |
| 300 bool m_mouseDownMayStartSelect; | 302 bool m_mouseDownMayStartSelect; |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 368 double m_maxMouseMovedDuration; | 370 double m_maxMouseMovedDuration; |
| 369 PlatformEvent::Type m_baseEventType; | 371 PlatformEvent::Type m_baseEventType; |
| 370 bool m_didStartDrag; | 372 bool m_didStartDrag; |
| 371 | 373 |
| 372 bool m_longTapShouldInvokeContextMenu; | 374 bool m_longTapShouldInvokeContextMenu; |
| 373 }; | 375 }; |
| 374 | 376 |
| 375 } // namespace WebCore | 377 } // namespace WebCore |
| 376 | 378 |
| 377 #endif // EventHandler_h | 379 #endif // EventHandler_h |
| OLD | NEW |