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

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

Issue 2586133003: Remove PlatformWheelEvent and use WebMouseWheelEvent instead (Closed)
Patch Set: Address comments Created 3 years, 11 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 class FloatQuad; 63 class FloatQuad;
64 class FrameHost; 64 class FrameHost;
65 class HTMLFrameSetElement; 65 class HTMLFrameSetElement;
66 class HitTestRequest; 66 class HitTestRequest;
67 class HitTestResult; 67 class HitTestResult;
68 class LayoutObject; 68 class LayoutObject;
69 class LocalFrame; 69 class LocalFrame;
70 class Node; 70 class Node;
71 class OptionalCursor; 71 class OptionalCursor;
72 class PlatformTouchEvent; 72 class PlatformTouchEvent;
73 class PlatformWheelEvent;
74 class ScrollableArea; 73 class ScrollableArea;
75 class Scrollbar; 74 class Scrollbar;
76 class SelectionController; 75 class SelectionController;
77 class TextEvent; 76 class TextEvent;
78 class WebGestureEvent; 77 class WebGestureEvent;
78 class WebMouseWheelEvent;
79 79
80 class CORE_EXPORT EventHandler final 80 class CORE_EXPORT EventHandler final
81 : public GarbageCollectedFinalized<EventHandler> { 81 : public GarbageCollectedFinalized<EventHandler> {
82 WTF_MAKE_NONCOPYABLE(EventHandler); 82 WTF_MAKE_NONCOPYABLE(EventHandler);
83 83
84 public: 84 public:
85 explicit EventHandler(LocalFrame&); 85 explicit EventHandler(LocalFrame&);
86 DECLARE_TRACE(); 86 DECLARE_TRACE();
87 87
88 void clear(); 88 void clear();
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 ScrollGranularity, 142 ScrollGranularity,
143 Node* startingNode = nullptr); 143 Node* startingNode = nullptr);
144 144
145 WebInputEventResult handleMouseMoveEvent( 145 WebInputEventResult handleMouseMoveEvent(
146 const PlatformMouseEvent&, 146 const PlatformMouseEvent&,
147 const Vector<PlatformMouseEvent>& coalescedEvents); 147 const Vector<PlatformMouseEvent>& coalescedEvents);
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 WebMouseWheelEvent&);
153 153
154 // Called on the local root frame exactly once per gesture event. 154 // Called on the local root frame exactly once per gesture event.
155 WebInputEventResult handleGestureEvent(const WebGestureEvent&); 155 WebInputEventResult handleGestureEvent(const WebGestureEvent&);
156 WebInputEventResult handleGestureEvent(const GestureEventWithHitTestResults&); 156 WebInputEventResult handleGestureEvent(const GestureEventWithHitTestResults&);
157 157
158 // Clear the old hover/active state within frames before moving the hover 158 // Clear the old hover/active state within frames before moving the hover
159 // state to the another frame 159 // state to the another frame
160 void updateGestureHoverActiveState(const HitTestRequest&, Element*); 160 void updateGestureHoverActiveState(const HitTestRequest&, Element*);
161 161
162 // Hit-test the provided (non-scroll) gesture event, applying touch-adjustment 162 // Hit-test the provided (non-scroll) gesture event, applying touch-adjustment
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
388 388
389 // Set on GestureTapDown if the |pointerdown| event corresponding to the 389 // Set on GestureTapDown if the |pointerdown| event corresponding to the
390 // triggering |touchstart| event was canceled. This suppresses mouse event 390 // triggering |touchstart| event was canceled. This suppresses mouse event
391 // firing for the current gesture sequence (i.e. until next GestureTapDown). 391 // firing for the current gesture sequence (i.e. until next GestureTapDown).
392 bool m_suppressMouseEventsFromGestures; 392 bool m_suppressMouseEventsFromGestures;
393 }; 393 };
394 394
395 } // namespace blink 395 } // namespace blink
396 396
397 #endif // EventHandler_h 397 #endif // EventHandler_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698