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

Unified Diff: chrome/browser/android/vr_shell/vr_shell.cc

Issue 2751833004: Reland "Add display::GetDisplayNearestView" (Closed)
Patch Set: Created 3 years, 9 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
« no previous file with comments | « no previous file | chrome/browser/chromeos/display/output_protection_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/android/vr_shell/vr_shell.cc
diff --git a/chrome/browser/android/vr_shell/vr_shell.cc b/chrome/browser/android/vr_shell/vr_shell.cc
index efce6d11d4d9b15248ad05bbe95bf6748eb7868e..e827573e08cfb8e7ac874fc1e0760302ee9a11b0 100644
--- a/chrome/browser/android/vr_shell/vr_shell.cc
+++ b/chrome/browser/android/vr_shell/vr_shell.cc
@@ -536,7 +536,7 @@ void VrShell::RenderViewHostChanged(content::RenderViewHost* old_host,
void VrShell::MainFrameWasResized(bool width_changed) {
display::Display display =
- display::Screen::GetScreen()->GetDisplayNearestWindow(
+ display::Screen::GetScreen()->GetDisplayNearestView(
ui_contents_->GetNativeView());
PostToGlThreadWhenReady(
base::Bind(&VrShellGl::UIBoundsChanged, gl_thread_->GetVrShellGl(),
« no previous file with comments | « no previous file | chrome/browser/chromeos/display/output_protection_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698