| 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 12 matching lines...) Expand all Loading... |
| 23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 24 */ | 24 */ |
| 25 | 25 |
| 26 #ifndef EventHandler_h | 26 #ifndef EventHandler_h |
| 27 #define EventHandler_h | 27 #define EventHandler_h |
| 28 | 28 |
| 29 #include "core/editing/TextGranularity.h" | 29 #include "core/editing/TextGranularity.h" |
| 30 #include "core/events/TextEventInputType.h" | 30 #include "core/events/TextEventInputType.h" |
| 31 #include "core/page/DragActions.h" | 31 #include "core/page/DragActions.h" |
| 32 #include "core/page/EventWithHitTestResults.h" | 32 #include "core/page/EventWithHitTestResults.h" |
| 33 #include "core/page/FocusType.h" | |
| 34 #include "core/rendering/HitTestRequest.h" | 33 #include "core/rendering/HitTestRequest.h" |
| 35 #include "core/rendering/style/RenderStyleConstants.h" | 34 #include "core/rendering/style/RenderStyleConstants.h" |
| 36 #include "platform/Cursor.h" | 35 #include "platform/Cursor.h" |
| 37 #include "platform/PlatformMouseEvent.h" | 36 #include "platform/PlatformMouseEvent.h" |
| 38 #include "platform/Timer.h" | 37 #include "platform/Timer.h" |
| 39 #include "platform/UserGestureIndicator.h" | 38 #include "platform/UserGestureIndicator.h" |
| 40 #include "platform/geometry/LayoutPoint.h" | 39 #include "platform/geometry/LayoutPoint.h" |
| 41 #include "platform/heap/Handle.h" | 40 #include "platform/heap/Handle.h" |
| 42 #include "platform/scroll/ScrollTypes.h" | 41 #include "platform/scroll/ScrollTypes.h" |
| 42 #include "public/platform/WebFocusType.h" |
| 43 #include "wtf/Forward.h" | 43 #include "wtf/Forward.h" |
| 44 #include "wtf/HashMap.h" | 44 #include "wtf/HashMap.h" |
| 45 #include "wtf/HashTraits.h" | 45 #include "wtf/HashTraits.h" |
| 46 #include "wtf/RefPtr.h" | 46 #include "wtf/RefPtr.h" |
| 47 | 47 |
| 48 namespace blink { | 48 namespace blink { |
| 49 | 49 |
| 50 class AutoscrollController; | 50 class AutoscrollController; |
| 51 class DataTransfer; | 51 class DataTransfer; |
| 52 class Document; | 52 class Document; |
| (...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 290 | 290 |
| 291 bool passMousePressEventToScrollbar(MouseEventWithHitTestResults&); | 291 bool passMousePressEventToScrollbar(MouseEventWithHitTestResults&); |
| 292 | 292 |
| 293 bool passWidgetMouseDownEventToWidget(const MouseEventWithHitTestResults&); | 293 bool passWidgetMouseDownEventToWidget(const MouseEventWithHitTestResults&); |
| 294 | 294 |
| 295 bool passWheelEventToWidget(const PlatformWheelEvent&, Widget&); | 295 bool passWheelEventToWidget(const PlatformWheelEvent&, Widget&); |
| 296 void defaultSpaceEventHandler(KeyboardEvent*); | 296 void defaultSpaceEventHandler(KeyboardEvent*); |
| 297 void defaultBackspaceEventHandler(KeyboardEvent*); | 297 void defaultBackspaceEventHandler(KeyboardEvent*); |
| 298 void defaultTabEventHandler(KeyboardEvent*); | 298 void defaultTabEventHandler(KeyboardEvent*); |
| 299 void defaultEscapeEventHandler(KeyboardEvent*); | 299 void defaultEscapeEventHandler(KeyboardEvent*); |
| 300 void defaultArrowEventHandler(FocusType, KeyboardEvent*); | 300 void defaultArrowEventHandler(WebFocusType, KeyboardEvent*); |
| 301 | 301 |
| 302 void updateSelectionForMouseDrag(const HitTestResult&); | 302 void updateSelectionForMouseDrag(const HitTestResult&); |
| 303 | 303 |
| 304 void updateLastScrollbarUnderMouse(Scrollbar*, bool); | 304 void updateLastScrollbarUnderMouse(Scrollbar*, bool); |
| 305 | 305 |
| 306 void setFrameWasScrolledByUser(); | 306 void setFrameWasScrolledByUser(); |
| 307 | 307 |
| 308 bool capturesDragging() const { return m_capturesDragging; } | 308 bool capturesDragging() const { return m_capturesDragging; } |
| 309 | 309 |
| 310 bool handleGestureShowPress(); | 310 bool handleGestureShowPress(); |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 397 bool m_longTapShouldInvokeContextMenu; | 397 bool m_longTapShouldInvokeContextMenu; |
| 398 | 398 |
| 399 Timer<EventHandler> m_activeIntervalTimer; | 399 Timer<EventHandler> m_activeIntervalTimer; |
| 400 double m_lastShowPressTimestamp; | 400 double m_lastShowPressTimestamp; |
| 401 RefPtrWillBeMember<Element> m_lastDeferredTapElement; | 401 RefPtrWillBeMember<Element> m_lastDeferredTapElement; |
| 402 }; | 402 }; |
| 403 | 403 |
| 404 } // namespace blink | 404 } // namespace blink |
| 405 | 405 |
| 406 #endif // EventHandler_h | 406 #endif // EventHandler_h |
| OLD | NEW |