Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(956)

Side by Side Diff: Source/core/page/EventHandler.h

Issue 16507017: Initial touch-action main thread implementation (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Don't add delay param to public API just yet Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 void fakeMouseMoveEventTimerFired(Timer<EventHandler>*); 224 void fakeMouseMoveEventTimerFired(Timer<EventHandler>*);
224 void cancelFakeMouseMoveEvent(); 225 void cancelFakeMouseMoveEvent();
225 bool isCursorVisible() const; 226 bool isCursorVisible() const;
226 void updateCursor(); 227 void updateCursor();
227 228
228 bool isInsideScrollbar(const IntPoint&) const; 229 bool isInsideScrollbar(const IntPoint&) const;
229 230
230 ScrollableArea* associatedScrollableArea(const RenderLayer*) const; 231 ScrollableArea* associatedScrollableArea(const RenderLayer*) const;
231 232
232 bool dispatchSyntheticTouchEventIfEnabled(const PlatformMouseEvent&); 233 bool dispatchSyntheticTouchEventIfEnabled(const PlatformMouseEvent&);
234 TouchAction computeEffectiveTouchAction(Node*);
235
233 bool handleMouseEventAsEmulatedGesture(const PlatformMouseEvent&); 236 bool handleMouseEventAsEmulatedGesture(const PlatformMouseEvent&);
234 bool handleWheelEventAsEmulatedGesture(const PlatformWheelEvent&); 237 bool handleWheelEventAsEmulatedGesture(const PlatformWheelEvent&);
235 HitTestResult hitTestResultInFrame(Frame*, const LayoutPoint&, HitTestReques t::HitTestRequestType hitType = HitTestRequest::ReadOnly | HitTestRequest::Activ e | HitTestRequest::ConfusingAndOftenMisusedDisallowShadowContent); 238 HitTestResult hitTestResultInFrame(Frame*, const LayoutPoint&, HitTestReques t::HitTestRequestType hitType = HitTestRequest::ReadOnly | HitTestRequest::Activ e | HitTestRequest::ConfusingAndOftenMisusedDisallowShadowContent);
236 239
237 void invalidateClick(); 240 void invalidateClick();
238 241
239 Node* nodeUnderMouse() const; 242 Node* nodeUnderMouse() const;
240 243
241 void updateMouseEventTargetNode(Node*, const PlatformMouseEvent&, bool fireM ouseOverOut); 244 void updateMouseEventTargetNode(Node*, const PlatformMouseEvent&, bool fireM ouseOverOut);
242 245
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
375 bool m_longTapShouldInvokeContextMenu; 378 bool m_longTapShouldInvokeContextMenu;
376 OwnPtr<IntPoint> m_lastSyntheticPinchAnchorCss; 379 OwnPtr<IntPoint> m_lastSyntheticPinchAnchorCss;
377 OwnPtr<IntPoint> m_lastSyntheticPinchAnchorDip; 380 OwnPtr<IntPoint> m_lastSyntheticPinchAnchorDip;
378 OwnPtr<IntPoint> m_lastSyntheticPanLocation; 381 OwnPtr<IntPoint> m_lastSyntheticPanLocation;
379 float m_syntheticPageScaleFactor; 382 float m_syntheticPageScaleFactor;
380 }; 383 };
381 384
382 } // namespace WebCore 385 } // namespace WebCore
383 386
384 #endif // EventHandler_h 387 #endif // EventHandler_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698