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

Unified Diff: Source/WebCore/dom/UserGestureIndicator.h

Issue 10907083: Merge 126609 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1229/
Patch Set: Created 8 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | Source/WebCore/dom/UserGestureIndicator.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebCore/dom/UserGestureIndicator.h
===================================================================
--- Source/WebCore/dom/UserGestureIndicator.h (revision 127651)
+++ Source/WebCore/dom/UserGestureIndicator.h (working copy)
@@ -39,13 +39,15 @@
class UserGestureIndicator {
WTF_MAKE_NONCOPYABLE(UserGestureIndicator);
public:
- static bool processingUserGesture() { return s_state == DefinitelyProcessingUserGesture; }
+ static bool processingUserGesture() { return s_consumableGestures && s_state == DefinitelyProcessingUserGesture; }
+ static bool consumeUserGesture();
explicit UserGestureIndicator(ProcessingUserGestureState);
~UserGestureIndicator();
private:
static ProcessingUserGestureState s_state;
+ static size_t s_consumableGestures;
ProcessingUserGestureState m_previousState;
};
« no previous file with comments | « no previous file | Source/WebCore/dom/UserGestureIndicator.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698