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

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

Issue 137123009: Add hittest mode for Touch-action which ignore inline elements and svg elements (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: incoporated review comments Created 6 years, 10 months 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
« no previous file with comments | « no previous file | Source/core/page/EventHandler.cpp » ('j') | Source/web/tests/TouchActionTest.cpp » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 // the scroll bubbles up to the containing block. 237 // the scroll bubbles up to the containing block.
238 // stopNode - On input, if provided and non-null, the node at which we shoul d stop bubbling on input. 238 // stopNode - On input, if provided and non-null, the node at which we shoul d stop bubbling on input.
239 // On output, if provided and a node was scrolled stopNode will p oint to that node. 239 // On output, if provided and a node was scrolled stopNode will p oint to that node.
240 // delta - The delta to scroll by, in the units of the granularity parameter . (e.g. pixels, lines, pages, etc.) 240 // delta - The delta to scroll by, in the units of the granularity parameter . (e.g. pixels, lines, pages, etc.)
241 // absolutePoint - For wheel scrolls - the location, in absolute coordinates , where the event occured. 241 // absolutePoint - For wheel scrolls - the location, in absolute coordinates , where the event occured.
242 bool scroll(ScrollDirection, ScrollGranularity, Node* startNode = 0, Node** stopNode = 0, float delta = 1.0f, IntPoint absolutePoint = IntPoint()); 242 bool scroll(ScrollDirection, ScrollGranularity, Node* startNode = 0, Node** stopNode = 0, float delta = 1.0f, IntPoint absolutePoint = IntPoint());
243 243
244 bool dispatchSyntheticTouchEventIfEnabled(const PlatformMouseEvent&); 244 bool dispatchSyntheticTouchEventIfEnabled(const PlatformMouseEvent&);
245 245
246 TouchAction intersectTouchAction(const TouchAction, const TouchAction); 246 TouchAction intersectTouchAction(const TouchAction, const TouchAction);
247 TouchAction computeEffectiveTouchAction(const Node&); 247 TouchAction computeEffectiveTouchAction(const LayoutPoint&);
248 248
249 bool handleMouseEventAsEmulatedGesture(const PlatformMouseEvent&); 249 bool handleMouseEventAsEmulatedGesture(const PlatformMouseEvent&);
250 bool handleWheelEventAsEmulatedGesture(const PlatformWheelEvent&); 250 bool handleWheelEventAsEmulatedGesture(const PlatformWheelEvent&);
251 HitTestResult hitTestResultInFrame(Frame*, const LayoutPoint&, HitTestReques t::HitTestRequestType hitType = HitTestRequest::ReadOnly | HitTestRequest::Activ e | HitTestRequest::ConfusingAndOftenMisusedDisallowShadowContent); 251 HitTestResult hitTestResultInFrame(Frame*, const LayoutPoint&, HitTestReques t::HitTestRequestType hitType = HitTestRequest::ReadOnly | HitTestRequest::Activ e | HitTestRequest::ConfusingAndOftenMisusedDisallowShadowContent);
252 252
253 void invalidateClick(); 253 void invalidateClick();
254 254
255 Node* nodeUnderMouse() const; 255 Node* nodeUnderMouse() const;
256 256
257 void updateMouseEventTargetNode(Node*, const PlatformMouseEvent&, bool fireM ouseOverOut); 257 void updateMouseEventTargetNode(Node*, const PlatformMouseEvent&, bool fireM ouseOverOut);
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
393 float m_syntheticPageScaleFactor; 393 float m_syntheticPageScaleFactor;
394 394
395 Timer<EventHandler> m_activeIntervalTimer; 395 Timer<EventHandler> m_activeIntervalTimer;
396 double m_lastShowPressTimestamp; 396 double m_lastShowPressTimestamp;
397 RefPtr<Element> m_lastDeferredTapElement; 397 RefPtr<Element> m_lastDeferredTapElement;
398 }; 398 };
399 399
400 } // namespace WebCore 400 } // namespace WebCore
401 401
402 #endif // EventHandler_h 402 #endif // EventHandler_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/page/EventHandler.cpp » ('j') | Source/web/tests/TouchActionTest.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698