| Index: content/browser/web_contents/web_contents_impl.cc
|
| diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc
|
| index 1544592b13a2ebac5b6de6ef7e8cdf0db5e479ff..9cfdb3713d5baf69037cd7ff9c341bf40282ff7d 100644
|
| --- a/content/browser/web_contents/web_contents_impl.cc
|
| +++ b/content/browser/web_contents/web_contents_impl.cc
|
| @@ -73,7 +73,7 @@
|
| #include "content/browser/renderer_host/render_widget_host_input_event_router.h"
|
| #include "content/browser/renderer_host/render_widget_host_view_base.h"
|
| #include "content/browser/renderer_host/text_input_manager.h"
|
| -#include "content/browser/screen_orientation/screen_orientation.h"
|
| +#include "content/browser/screen_orientation/screen_orientation_provider.h"
|
| #include "content/browser/site_instance_impl.h"
|
| #include "content/browser/web_contents/web_contents_view_child_frame.h"
|
| #include "content/browser/web_contents/web_contents_view_guest.h"
|
| @@ -107,7 +107,6 @@
|
| #include "content/public/browser/notification_types.h"
|
| #include "content/public/browser/render_widget_host_iterator.h"
|
| #include "content/public/browser/resource_request_details.h"
|
| -#include "content/public/browser/screen_orientation_provider.h"
|
| #include "content/public/browser/security_style_explanations.h"
|
| #include "content/public/browser/ssl_status.h"
|
| #include "content/public/browser/storage_partition.h"
|
| @@ -324,6 +323,11 @@ WebContents* WebContents::FromFrameTreeNodeId(int frame_tree_node_id) {
|
| return FromRenderFrameHost(frame_tree_node->current_frame_host());
|
| }
|
|
|
| +void WebContents::SetScreenOrientationDelegate(
|
| + ScreenOrientationDelegate* delegate) {
|
| + ScreenOrientationProvider::SetDelegate(delegate);
|
| +}
|
| +
|
| // WebContentsImpl::DestructionObserver ----------------------------------------
|
|
|
| class WebContentsImpl::DestructionObserver : public WebContentsObserver {
|
| @@ -929,6 +933,11 @@ WebContentsView* WebContentsImpl::GetView() const {
|
| return view_.get();
|
| }
|
|
|
| +void WebContentsImpl::OnScreenOrientationChange() {
|
| + DCHECK(screen_orientation_provider_);
|
| + return screen_orientation_provider_->OnOrientationChange();
|
| +}
|
| +
|
| SkColor WebContentsImpl::GetThemeColor() const {
|
| return theme_color_;
|
| }
|
| @@ -1589,7 +1598,7 @@ void WebContentsImpl::Init(const WebContents::CreateParams& params) {
|
| NOTIFICATION_RENDER_WIDGET_HOST_DESTROYED,
|
| NotificationService::AllBrowserContextsAndSources());
|
|
|
| - screen_orientation_.reset(new ScreenOrientation(this));
|
| + screen_orientation_provider_.reset(new ScreenOrientationProvider(this));
|
|
|
| manifest_manager_host_.reset(new ManifestManagerHost(this));
|
|
|
| @@ -2438,10 +2447,6 @@ device::WakeLockServiceContext* WebContentsImpl::GetWakeLockServiceContext() {
|
| return wake_lock_service_context_.get();
|
| }
|
|
|
| -ScreenOrientationProvider* WebContentsImpl::GetScreenOrientationProvider() {
|
| - return screen_orientation_.get()->GetScreenOrientationProvider();
|
| -}
|
| -
|
| void WebContentsImpl::OnShowValidationMessage(
|
| RenderViewHostImpl* source,
|
| const gfx::Rect& anchor_in_root_view,
|
|
|