Chromium Code Reviews| 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..59f27a34d7402c2e0615d39c2e919c0080aa5ded 100644 |
| --- a/third_party/WebKit/public/web/WebUserGestureIndicator.h |
| +++ b/third_party/WebKit/public/web/WebUserGestureIndicator.h |
| @@ -40,8 +40,11 @@ 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. |
|
kinuko
2016/12/09 03:15:51
Also note that it's slow and the other one must be
Charlie Harrison
2016/12/09 15:24:14
Done.
|
| + BLINK_EXPORT static bool isProcessingUserGestureThreadSafe(); |
| // Returns true if a consumable gesture exists and has been successfully |
| // consumed. |