summaryrefslogtreecommitdiffstats
path: root/WebCore/dom/UserGestureIndicator.h
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/dom/UserGestureIndicator.h')
-rw-r--r--WebCore/dom/UserGestureIndicator.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/WebCore/dom/UserGestureIndicator.h b/WebCore/dom/UserGestureIndicator.h
index d83d968..17ea319 100644
--- a/WebCore/dom/UserGestureIndicator.h
+++ b/WebCore/dom/UserGestureIndicator.h
@@ -32,19 +32,21 @@ namespace WebCore {
enum ProcessingUserGestureState {
DefinitelyProcessingUserGesture,
- PossiblyProcessingUserGesture
+ PossiblyProcessingUserGesture,
+ DefinitelyNotProcessingUserGesture
};
class UserGestureIndicator : public Noncopyable {
public:
- static bool processingUserGesture() { return s_processingUserGesture; }
+ static bool processingUserGesture() { return s_processingUserGesture == DefinitelyProcessingUserGesture; }
+ static ProcessingUserGestureState getUserGestureState() { return s_processingUserGesture; }
explicit UserGestureIndicator(ProcessingUserGestureState);
~UserGestureIndicator();
private:
- static bool s_processingUserGesture;
- bool m_previousValue;
+ static ProcessingUserGestureState s_processingUserGesture;
+ ProcessingUserGestureState m_previousValue;
};
} // namespace WebCore