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

Side by Side Diff: third_party/WebKit/Source/core/input/EventHandler.h

Issue 2049493002: Remove the default wheel event handler from blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove two tests, fix nit Created 4 years, 6 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
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 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 // Performs a logical scroll that chains, crossing frames, starting from 143 // Performs a logical scroll that chains, crossing frames, starting from
144 // the given node or a reasonable default (focus/last clicked). 144 // the given node or a reasonable default (focus/last clicked).
145 bool bubblingScroll(ScrollDirection, ScrollGranularity, Node* startingNode = nullptr); 145 bool bubblingScroll(ScrollDirection, ScrollGranularity, Node* startingNode = nullptr);
146 146
147 WebInputEventResult handleMouseMoveEvent(const PlatformMouseEvent&); 147 WebInputEventResult handleMouseMoveEvent(const PlatformMouseEvent&);
148 void handleMouseLeaveEvent(const PlatformMouseEvent&); 148 void handleMouseLeaveEvent(const PlatformMouseEvent&);
149 149
150 WebInputEventResult handleMousePressEvent(const PlatformMouseEvent&); 150 WebInputEventResult handleMousePressEvent(const PlatformMouseEvent&);
151 WebInputEventResult handleMouseReleaseEvent(const PlatformMouseEvent&); 151 WebInputEventResult handleMouseReleaseEvent(const PlatformMouseEvent&);
152 WebInputEventResult handleWheelEvent(const PlatformWheelEvent&); 152 WebInputEventResult handleWheelEvent(const PlatformWheelEvent&);
153 void defaultWheelEventHandler(Node*, WheelEvent*);
154 153
155 // Called on the local root frame exactly once per gesture event. 154 // Called on the local root frame exactly once per gesture event.
156 WebInputEventResult handleGestureEvent(const PlatformGestureEvent&); 155 WebInputEventResult handleGestureEvent(const PlatformGestureEvent&);
157 WebInputEventResult handleGestureEvent(const GestureEventWithHitTestResults& ); 156 WebInputEventResult handleGestureEvent(const GestureEventWithHitTestResults& );
158 157
159 // Clear the old hover/active state within frames before moving the hover st ate to the another frame 158 // Clear the old hover/active state within frames before moving the hover st ate to the another frame
160 void updateGestureHoverActiveState(const HitTestRequest&, Element*); 159 void updateGestureHoverActiveState(const HitTestRequest&, Element*);
161 160
162 // Hit-test the provided (non-scroll) gesture event, applying touch-adjustme nt and updating 161 // Hit-test the provided (non-scroll) gesture event, applying touch-adjustme nt and updating
163 // hover/active state across all frames if necessary. This should be called at most once 162 // hover/active state across all frames if necessary. This should be called at most once
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
378 bool m_longTapShouldInvokeContextMenu; 377 bool m_longTapShouldInvokeContextMenu;
379 378
380 Timer<EventHandler> m_activeIntervalTimer; 379 Timer<EventHandler> m_activeIntervalTimer;
381 double m_lastShowPressTimestamp; 380 double m_lastShowPressTimestamp;
382 Member<Element> m_lastDeferredTapElement; 381 Member<Element> m_lastDeferredTapElement;
383 }; 382 };
384 383
385 } // namespace blink 384 } // namespace blink
386 385
387 #endif // EventHandler_h 386 #endif // EventHandler_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/frame/Settings.in ('k') | third_party/WebKit/Source/core/input/EventHandler.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698