| Index: Source/platform/UserGestureIndicator.h
|
| diff --git a/Source/platform/UserGestureIndicator.h b/Source/platform/UserGestureIndicator.h
|
| index 5281bf6909ea33c17e6c33dd5b9a332ef4b471d5..815209b24d160b7cc713444e4c79a7f7d7cbf54c 100644
|
| --- a/Source/platform/UserGestureIndicator.h
|
| +++ b/Source/platform/UserGestureIndicator.h
|
| @@ -42,6 +42,12 @@ enum ProcessingUserGestureState {
|
| DefinitelyNotProcessingUserGesture
|
| };
|
|
|
| +class PLATFORM_EXPORT UserGestureHandler : public RefCounted<UserGestureHandler> {
|
| +public:
|
| + virtual ~UserGestureHandler() { }
|
| + virtual void onGesture() = 0;
|
| +};
|
| +
|
| class PLATFORM_EXPORT UserGestureToken : public RefCounted<UserGestureToken> {
|
| public:
|
| virtual ~UserGestureToken() { }
|
| @@ -68,6 +74,7 @@ public:
|
| static bool processingUserGesture();
|
| static bool consumeUserGesture();
|
| static UserGestureToken* currentToken();
|
| + static void addHandler(PassRefPtr<UserGestureHandler>);
|
|
|
| explicit UserGestureIndicator(ProcessingUserGestureState);
|
| explicit UserGestureIndicator(PassRefPtr<UserGestureToken>);
|
|
|