| Index: third_party/WebKit/public/web/WebUserGestureIndicator.h
|
| diff --git a/third_party/WebKit/public/web/WebUserGestureIndicator.h b/third_party/WebKit/public/web/WebUserGestureIndicator.h
|
| index 44b1cacbd1413a3bb1b813d7e6ed635048693ad9..1c63f2ca908f9d0a55740d89624f0820c65a1de7 100644
|
| --- a/third_party/WebKit/public/web/WebUserGestureIndicator.h
|
| +++ b/third_party/WebKit/public/web/WebUserGestureIndicator.h
|
| @@ -40,8 +40,13 @@ class WebUserGestureToken;
|
|
|
| class WebUserGestureIndicator {
|
| public:
|
| - // Returns true if a user gesture is currently being processed.
|
| + // Returns true if a user gesture is currently being processed. Must be called
|
| + // on the main thread.
|
| BLINK_EXPORT static bool isProcessingUserGesture();
|
| + // Can be called from any thread. Note that this is slower than the non
|
| + // thread-safe version due to thread id lookups. Prefer the non thread-safe
|
| + // version for code that will only execute on the main thread.
|
| + BLINK_EXPORT static bool isProcessingUserGestureThreadSafe();
|
|
|
| // Returns true if a consumable gesture exists and has been successfully
|
| // consumed.
|
|
|