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

Side by Side Diff: content/browser/web_contents/web_contents_impl.cc

Issue 2702033002: [ScreenOrientation] Fire pending lock request when we found it has failed.
Patch Set: 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 unified diff | Download patch
« no previous file with comments | « content/browser/web_contents/web_contents_impl.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/browser/web_contents/web_contents_impl.h" 5 #include "content/browser/web_contents/web_contents_impl.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <cmath> 9 #include <cmath>
10 #include <utility> 10 #include <utility>
(...skipping 921 matching lines...) Expand 10 before | Expand all | Expand 10 after
932 const { 932 const {
933 if (auto widget_host = GetFullscreenRenderWidgetHost()) 933 if (auto widget_host = GetFullscreenRenderWidgetHost())
934 return widget_host->GetView(); 934 return widget_host->GetView();
935 return nullptr; 935 return nullptr;
936 } 936 }
937 937
938 WebContentsView* WebContentsImpl::GetView() const { 938 WebContentsView* WebContentsImpl::GetView() const {
939 return view_.get(); 939 return view_.get();
940 } 940 }
941 941
942 #if defined(OS_ANDROID)
942 void WebContentsImpl::OnScreenOrientationChange() { 943 void WebContentsImpl::OnScreenOrientationChange() {
943 DCHECK(screen_orientation_provider_); 944 DCHECK(screen_orientation_provider_);
944 return screen_orientation_provider_->OnOrientationChange(); 945 return screen_orientation_provider_->OnOrientationChange();
945 } 946 }
947 #endif
946 948
947 SkColor WebContentsImpl::GetThemeColor() const { 949 SkColor WebContentsImpl::GetThemeColor() const {
948 return theme_color_; 950 return theme_color_;
949 } 951 }
950 952
951 void WebContentsImpl::SetAccessibilityMode(AccessibilityMode mode) { 953 void WebContentsImpl::SetAccessibilityMode(AccessibilityMode mode) {
952 if (mode == accessibility_mode_) 954 if (mode == accessibility_mode_)
953 return; 955 return;
954 956
955 // Don't allow accessibility to be enabled for WebContents that are never 957 // Don't allow accessibility to be enabled for WebContents that are never
(...skipping 4471 matching lines...) Expand 10 before | Expand all | Expand 10 after
5427 RenderViewHost* render_view_host = RenderViewHost::From(render_widget_host); 5429 RenderViewHost* render_view_host = RenderViewHost::From(render_widget_host);
5428 if (!render_view_host) 5430 if (!render_view_host)
5429 continue; 5431 continue;
5430 render_view_host_set.insert(render_view_host); 5432 render_view_host_set.insert(render_view_host);
5431 } 5433 }
5432 for (RenderViewHost* render_view_host : render_view_host_set) 5434 for (RenderViewHost* render_view_host : render_view_host_set)
5433 render_view_host->OnWebkitPreferencesChanged(); 5435 render_view_host->OnWebkitPreferencesChanged();
5434 } 5436 }
5435 5437
5436 } // namespace content 5438 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/web_contents/web_contents_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698