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

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

Issue 2736083002: Suppress the Android keyboard when selecting VR UI input fields. (Closed)
Patch Set: Remove duplicate WebContentsObserver. Nice! 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 | no next file » | 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 ab3b67ac4529a57e6708f2c6ea1ef9543128f90a..1a43be9b47ace59b6a423f32964855552595b391 100644
--- a/chrome/browser/android/vr_shell/vr_shell.cc
+++ b/chrome/browser/android/vr_shell/vr_shell.cc
@@ -501,7 +501,9 @@ void VrShell::DoUiAction(const UiAction action,
void VrShell::RenderViewHostChanged(content::RenderViewHost* old_host,
content::RenderViewHost* new_host) {
- new_host->GetWidget()->GetView()->SetBackgroundColor(SK_ColorTRANSPARENT);
+ content::RenderWidgetHostView* view = new_host->GetWidget()->GetView();
+ view->SetBackgroundColor(SK_ColorTRANSPARENT);
+ view->SetIsInVR(true);
}
void VrShell::MainFrameWasResized(bool width_changed) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698