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; |
}; |