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

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

Issue 2646163002: Remove PlatformTouchEvent/Point and use WebTouchEvent/Point instead (Closed)
Patch Set: Fix nit Created 3 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
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 21 matching lines...) Expand all
32 #include "core/input/KeyboardEventManager.h" 32 #include "core/input/KeyboardEventManager.h"
33 #include "core/input/MouseEventManager.h" 33 #include "core/input/MouseEventManager.h"
34 #include "core/input/PointerEventManager.h" 34 #include "core/input/PointerEventManager.h"
35 #include "core/input/ScrollManager.h" 35 #include "core/input/ScrollManager.h"
36 #include "core/layout/HitTestRequest.h" 36 #include "core/layout/HitTestRequest.h"
37 #include "core/page/DragActions.h" 37 #include "core/page/DragActions.h"
38 #include "core/page/EventWithHitTestResults.h" 38 #include "core/page/EventWithHitTestResults.h"
39 #include "core/style/ComputedStyleConstants.h" 39 #include "core/style/ComputedStyleConstants.h"
40 #include "platform/Cursor.h" 40 #include "platform/Cursor.h"
41 #include "platform/PlatformMouseEvent.h" 41 #include "platform/PlatformMouseEvent.h"
42 #include "platform/PlatformTouchPoint.h"
43 #include "platform/UserGestureIndicator.h" 42 #include "platform/UserGestureIndicator.h"
44 #include "platform/geometry/LayoutPoint.h" 43 #include "platform/geometry/LayoutPoint.h"
45 #include "platform/heap/Handle.h" 44 #include "platform/heap/Handle.h"
46 #include "platform/scroll/ScrollTypes.h" 45 #include "platform/scroll/ScrollTypes.h"
47 #include "public/platform/WebInputEvent.h" 46 #include "public/platform/WebInputEvent.h"
48 #include "public/platform/WebInputEventResult.h" 47 #include "public/platform/WebInputEventResult.h"
49 #include "wtf/Forward.h" 48 #include "wtf/Forward.h"
50 #include "wtf/HashMap.h" 49 #include "wtf/HashMap.h"
51 #include "wtf/HashTraits.h" 50 #include "wtf/HashTraits.h"
52 #include "wtf/RefPtr.h" 51 #include "wtf/RefPtr.h"
53 52
54 namespace blink { 53 namespace blink {
55 54
56 class DataTransfer; 55 class DataTransfer;
57 class PaintLayer; 56 class PaintLayer;
58 class Element; 57 class Element;
59 class Event; 58 class Event;
60 class EventTarget; 59 class EventTarget;
61 template <typename EventType> 60 template <typename EventType>
62 class EventWithHitTestResults; 61 class EventWithHitTestResults;
63 class FloatQuad; 62 class FloatQuad;
64 class FrameHost; 63 class FrameHost;
65 class HTMLFrameSetElement; 64 class HTMLFrameSetElement;
66 class HitTestRequest; 65 class HitTestRequest;
67 class HitTestResult; 66 class HitTestResult;
68 class LayoutObject; 67 class LayoutObject;
69 class LocalFrame; 68 class LocalFrame;
70 class Node; 69 class Node;
71 class OptionalCursor; 70 class OptionalCursor;
72 class PlatformTouchEvent;
73 class ScrollableArea; 71 class ScrollableArea;
74 class Scrollbar; 72 class Scrollbar;
75 class SelectionController; 73 class SelectionController;
76 class TextEvent; 74 class TextEvent;
77 class WebGestureEvent; 75 class WebGestureEvent;
78 class WebMouseWheelEvent; 76 class WebMouseWheelEvent;
77 class WebTouchEvent;
79 78
80 class CORE_EXPORT EventHandler final 79 class CORE_EXPORT EventHandler final
81 : public GarbageCollectedFinalized<EventHandler> { 80 : public GarbageCollectedFinalized<EventHandler> {
82 WTF_MAKE_NONCOPYABLE(EventHandler); 81 WTF_MAKE_NONCOPYABLE(EventHandler);
83 82
84 public: 83 public:
85 explicit EventHandler(LocalFrame&); 84 explicit EventHandler(LocalFrame&);
86 DECLARE_TRACE(); 85 DECLARE_TRACE();
87 86
88 void clear(); 87 void clear();
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 bool handleTextInputEvent(const String& text, 217 bool handleTextInputEvent(const String& text,
219 Event* underlyingEvent = nullptr, 218 Event* underlyingEvent = nullptr,
220 TextEventInputType = TextEventInputKeyboard); 219 TextEventInputType = TextEventInputKeyboard);
221 void defaultTextInputEventHandler(TextEvent*); 220 void defaultTextInputEventHandler(TextEvent*);
222 221
223 void dragSourceEndedAt(const PlatformMouseEvent&, DragOperation); 222 void dragSourceEndedAt(const PlatformMouseEvent&, DragOperation);
224 223
225 void capsLockStateMayHaveChanged(); // Only called by FrameSelection 224 void capsLockStateMayHaveChanged(); // Only called by FrameSelection
226 225
227 WebInputEventResult handleTouchEvent( 226 WebInputEventResult handleTouchEvent(
228 const PlatformTouchEvent&, 227 const WebTouchEvent&,
229 const Vector<PlatformTouchEvent>& coalescedEvents); 228 const Vector<WebTouchEvent>& coalescedEvents);
230 229
231 bool useHandCursor(Node*, bool isOverLink); 230 bool useHandCursor(Node*, bool isOverLink);
232 231
233 void notifyElementActivated(); 232 void notifyElementActivated();
234 233
235 PassRefPtr<UserGestureToken> takeLastMouseDownGestureToken() { 234 PassRefPtr<UserGestureToken> takeLastMouseDownGestureToken() {
236 return std::move(m_lastMouseDownUserGestureToken); 235 return std::move(m_lastMouseDownUserGestureToken);
237 } 236 }
238 237
239 SelectionController& selectionController() const { 238 SelectionController& selectionController() const {
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
388 387
389 // Set on GestureTapDown if the |pointerdown| event corresponding to the 388 // Set on GestureTapDown if the |pointerdown| event corresponding to the
390 // triggering |touchstart| event was canceled. This suppresses mouse event 389 // triggering |touchstart| event was canceled. This suppresses mouse event
391 // firing for the current gesture sequence (i.e. until next GestureTapDown). 390 // firing for the current gesture sequence (i.e. until next GestureTapDown).
392 bool m_suppressMouseEventsFromGestures; 391 bool m_suppressMouseEventsFromGestures;
393 }; 392 };
394 393
395 } // namespace blink 394 } // namespace blink
396 395
397 #endif // EventHandler_h 396 #endif // EventHandler_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/events/UIEventWithKeyState.cpp ('k') | third_party/WebKit/Source/core/input/EventHandler.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698