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

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

Issue 1996143002: Deprecate use of user gestures during scroll-related touch events (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge with trunk 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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 class ScrollableArea; 80 class ScrollableArea;
81 class Scrollbar; 81 class Scrollbar;
82 class ScrollState; 82 class ScrollState;
83 class SelectionController; 83 class SelectionController;
84 class TextEvent; 84 class TextEvent;
85 class WheelEvent; 85 class WheelEvent;
86 class Widget; 86 class Widget;
87 87
88 enum class DragInitiator; 88 enum class DragInitiator;
89 89
90 class CORE_EXPORT EventHandler final : public GarbageCollectedFinalized<EventHan dler> 90 class CORE_EXPORT EventHandler final : public GarbageCollectedFinalized<EventHan dler> {
91 , public UserGestureUtilizedCallback {
92 91
93 WTF_MAKE_NONCOPYABLE(EventHandler); 92 WTF_MAKE_NONCOPYABLE(EventHandler);
94 public: 93 public:
95 explicit EventHandler(LocalFrame*); 94 explicit EventHandler(LocalFrame*);
96 ~EventHandler(); 95 ~EventHandler();
97 DECLARE_TRACE(); 96 DECLARE_TRACE();
98 97
99 void clear(); 98 void clear();
100 void nodeWillBeRemoved(Node&); 99 void nodeWillBeRemoved(Node&);
101 100
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 bool handleTextInputEvent(const String& text, Event* underlyingEvent = nullp tr, TextEventInputType = TextEventInputKeyboard); 201 bool handleTextInputEvent(const String& text, Event* underlyingEvent = nullp tr, TextEventInputType = TextEventInputKeyboard);
203 void defaultTextInputEventHandler(TextEvent*); 202 void defaultTextInputEventHandler(TextEvent*);
204 203
205 void dragSourceEndedAt(const PlatformMouseEvent&, DragOperation); 204 void dragSourceEndedAt(const PlatformMouseEvent&, DragOperation);
206 205
207 void focusDocumentView(); 206 void focusDocumentView();
208 207
209 void capsLockStateMayHaveChanged(); // Only called by FrameSelection 208 void capsLockStateMayHaveChanged(); // Only called by FrameSelection
210 209
211 WebInputEventResult handleTouchEvent(const PlatformTouchEvent&); 210 WebInputEventResult handleTouchEvent(const PlatformTouchEvent&);
212 void userGestureUtilized() override;
213 211
214 bool useHandCursor(Node*, bool isOverLink); 212 bool useHandCursor(Node*, bool isOverLink);
215 213
216 void notifyElementActivated(); 214 void notifyElementActivated();
217 215
218 PassRefPtr<UserGestureToken> takeLastMouseDownGestureToken() { return m_last MouseDownUserGestureToken.release(); } 216 PassRefPtr<UserGestureToken> takeLastMouseDownGestureToken() { return m_last MouseDownUserGestureToken.release(); }
219 217
220 int clickCount() { return m_clickCount; } 218 int clickCount() { return m_clickCount; }
221 219
222 SelectionController& selectionController() const { return *m_selectionContro ller; } 220 SelectionController& selectionController() const { return *m_selectionContro ller; }
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
458 // scroll sequence in this frame, or any child frames. Only used 456 // scroll sequence in this frame, or any child frames. Only used
459 // with ScrollCustomization. If some delta has been consumed, a 457 // with ScrollCustomization. If some delta has been consumed, a
460 // scroll which shouldn't propagate can't cause any element to 458 // scroll which shouldn't propagate can't cause any element to
461 // scroll other than the |m_previousGestureScrolledNode|. 459 // scroll other than the |m_previousGestureScrolledNode|.
462 bool m_deltaConsumedForScrollSequence; 460 bool m_deltaConsumedForScrollSequence;
463 }; 461 };
464 462
465 } // namespace blink 463 } // namespace blink
466 464
467 #endif // EventHandler_h 465 #endif // EventHandler_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/frame/UseCounter.h ('k') | third_party/WebKit/Source/core/input/EventHandler.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698