| 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 14 matching lines...) Expand all Loading... |
| 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/FocusDirection.h" | 32 #include "core/page/FocusDirection.h" |
| 33 #include "core/platform/Cursor.h" | 33 #include "core/platform/Cursor.h" |
| 34 #include "core/rendering/HitTestRequest.h" | 34 #include "core/rendering/HitTestRequest.h" |
| 35 #include "core/rendering/style/RenderStyleConstants.h" |
| 35 #include "platform/PlatformMouseEvent.h" | 36 #include "platform/PlatformMouseEvent.h" |
| 36 #include "platform/Timer.h" | 37 #include "platform/Timer.h" |
| 37 #include "platform/UserGestureIndicator.h" | 38 #include "platform/UserGestureIndicator.h" |
| 38 #include "platform/geometry/LayoutPoint.h" | 39 #include "platform/geometry/LayoutPoint.h" |
| 39 #include "platform/scroll/ScrollTypes.h" | 40 #include "platform/scroll/ScrollTypes.h" |
| 40 #include "wtf/Forward.h" | 41 #include "wtf/Forward.h" |
| 41 #include "wtf/HashMap.h" | 42 #include "wtf/HashMap.h" |
| 42 #include "wtf/RefPtr.h" | 43 #include "wtf/RefPtr.h" |
| 43 | 44 |
| 44 namespace WebCore { | 45 namespace WebCore { |
| (...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 225 void fakeMouseMoveEventTimerFired(Timer<EventHandler>*); | 226 void fakeMouseMoveEventTimerFired(Timer<EventHandler>*); |
| 226 void cancelFakeMouseMoveEvent(); | 227 void cancelFakeMouseMoveEvent(); |
| 227 bool isCursorVisible() const; | 228 bool isCursorVisible() const; |
| 228 void updateCursor(); | 229 void updateCursor(); |
| 229 | 230 |
| 230 bool isInsideScrollbar(const IntPoint&) const; | 231 bool isInsideScrollbar(const IntPoint&) const; |
| 231 | 232 |
| 232 ScrollableArea* associatedScrollableArea(const RenderLayer*) const; | 233 ScrollableArea* associatedScrollableArea(const RenderLayer*) const; |
| 233 | 234 |
| 234 bool dispatchSyntheticTouchEventIfEnabled(const PlatformMouseEvent&); | 235 bool dispatchSyntheticTouchEventIfEnabled(const PlatformMouseEvent&); |
| 236 TouchAction computeEffectiveTouchAction(const Node&); |
| 237 |
| 235 bool handleMouseEventAsEmulatedGesture(const PlatformMouseEvent&); | 238 bool handleMouseEventAsEmulatedGesture(const PlatformMouseEvent&); |
| 236 bool handleWheelEventAsEmulatedGesture(const PlatformWheelEvent&); | 239 bool handleWheelEventAsEmulatedGesture(const PlatformWheelEvent&); |
| 237 HitTestResult hitTestResultInFrame(Frame*, const LayoutPoint&, HitTestReques
t::HitTestRequestType hitType = HitTestRequest::ReadOnly | HitTestRequest::Activ
e | HitTestRequest::ConfusingAndOftenMisusedDisallowShadowContent); | 240 HitTestResult hitTestResultInFrame(Frame*, const LayoutPoint&, HitTestReques
t::HitTestRequestType hitType = HitTestRequest::ReadOnly | HitTestRequest::Activ
e | HitTestRequest::ConfusingAndOftenMisusedDisallowShadowContent); |
| 238 | 241 |
| 239 void invalidateClick(); | 242 void invalidateClick(); |
| 240 | 243 |
| 241 Node* nodeUnderMouse() const; | 244 Node* nodeUnderMouse() const; |
| 242 | 245 |
| 243 void updateMouseEventTargetNode(Node*, const PlatformMouseEvent&, bool fireM
ouseOverOut); | 246 void updateMouseEventTargetNode(Node*, const PlatformMouseEvent&, bool fireM
ouseOverOut); |
| 244 | 247 |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 382 | 385 |
| 383 Timer<EventHandler> m_activeIntervalTimer; | 386 Timer<EventHandler> m_activeIntervalTimer; |
| 384 double m_lastShowPressTimestamp; | 387 double m_lastShowPressTimestamp; |
| 385 bool m_shouldKeepActiveForMinInterval; | 388 bool m_shouldKeepActiveForMinInterval; |
| 386 RefPtr<Element> m_lastDeferredTapElement; | 389 RefPtr<Element> m_lastDeferredTapElement; |
| 387 }; | 390 }; |
| 388 | 391 |
| 389 } // namespace WebCore | 392 } // namespace WebCore |
| 390 | 393 |
| 391 #endif // EventHandler_h | 394 #endif // EventHandler_h |
| OLD | NEW |