Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(828)

Unified Diff: content/browser/screen_orientation/screen_orientation_provider.h

Issue 2688383002: [ScreenOrientation] Merge mojo interface ScreenOrientationListener into ScreenOrientation
Patch Set: Address comments from mlamouri@ Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..a94fca9ba8ccaa0f416b7bd7ef987bfe578b8f1c 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_listener_count_ = 0;
+#endif
+
// Whether the ScreenOrientationProvider currently has a lock applied.
bool lock_applied_;

Powered by Google App Engine
This is Rietveld 408576698