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

Unified Diff: content/browser/web_contents/web_contents_impl.h

Issue 549603003: Create Mojo service for locking/unlocking screen orientation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Nits Created 6 years, 3 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/web_contents/web_contents_impl.h
diff --git a/content/browser/web_contents/web_contents_impl.h b/content/browser/web_contents/web_contents_impl.h
index f8f0d8bd8ceca25cccf77cee7703a6ecb4d68024..89b2b0159398361db50ffe36830e79b2c94501ca 100644
--- a/content/browser/web_contents/web_contents_impl.h
+++ b/content/browser/web_contents/web_contents_impl.h
@@ -61,7 +61,6 @@ class RenderViewHostDelegateView;
class RenderViewHostImpl;
class RenderWidgetHostImpl;
class SavePackage;
-class ScreenOrientationDispatcherHost;
class SiteInstance;
class TestWebContents;
class WebContentsDelegate;
@@ -175,10 +174,6 @@ class CONTENT_EXPORT WebContentsImpl
return geolocation_dispatcher_host_.get();
}
- ScreenOrientationDispatcherHost* screen_orientation_dispatcher_host() {
- return screen_orientation_dispatcher_host_.get();
- }
-
bool should_normally_be_visible() { return should_normally_be_visible_; }
// Broadcasts the mode change to all frames.
@@ -391,6 +386,7 @@ class CONTENT_EXPORT WebContentsImpl
#if defined(OS_WIN)
virtual gfx::NativeViewAccessible GetParentNativeViewAccessible() OVERRIDE;
#endif
+ virtual ScreenOrientationProvider* GetScreenOrientationProvider() OVERRIDE;
// RenderViewHostDelegate ----------------------------------------------------
virtual RenderViewHostDelegateView* GetDelegateView() OVERRIDE;
@@ -1227,8 +1223,7 @@ class CONTENT_EXPORT WebContentsImpl
scoped_ptr<MidiDispatcherHost> midi_dispatcher_host_;
- scoped_ptr<ScreenOrientationDispatcherHost>
- screen_orientation_dispatcher_host_;
+ scoped_ptr<ScreenOrientationProvider> screen_orientation_provider_;
// The accessibility mode for all frames. This is queried when each frame
// is created, and broadcast to all frames when it changes.

Powered by Google App Engine
This is Rietveld 408576698