Chromium Code Reviews| Index: content/browser/screen_orientation/screen_orientation_provider.h |
| diff --git a/content/browser/screen_orientation/screen_orientation_provider.h b/content/browser/screen_orientation/screen_orientation_provider.h |
| index 0898070e3bb9471d3fee37c606deb4faf5e85720..c180fe517c607ee789e79211bdd2f57cae9bc0f5 100644 |
| --- a/content/browser/screen_orientation/screen_orientation_provider.h |
| +++ b/content/browser/screen_orientation/screen_orientation_provider.h |
| @@ -35,6 +35,8 @@ class CONTENT_EXPORT ScreenOrientationProvider |
| void LockOrientation(blink::WebScreenOrientationLockType orientation, |
| const LockOrientationCallback& callback) override; |
| void UnlockOrientation() override; |
| + void StartAccurateListen() override; |
| + void StopAccurateListen() override; |
| // Inform about a screen orientation update. It is called to let the provider |
| // know if a lock has been resolved. |
| @@ -66,6 +68,10 @@ class CONTENT_EXPORT ScreenOrientationProvider |
| // Not owned, responsible for platform implementations. |
| static ScreenOrientationDelegate* delegate_; |
| +#if defined(OS_ANDROID) |
| + int accurate_listen_count_ = 0; |
|
mlamouri (slow - plz ping)
2017/02/15 10:58:41
nit: `accurate_listener_count_`? feel free to igno
leonhsl(Using Gerrit)
2017/02/16 05:00:05
Done.
|
| +#endif |
| + |
| // Whether the ScreenOrientationProvider currently has a lock applied. |
| bool lock_applied_; |