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

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

Issue 2735983004: Visually disable VR Shell back/forward buttons when no history is available (Closed)
Patch Set: Addressing closure compilation error 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 | « chrome/browser/android/vr_shell/vr_shell.h ('k') | chrome/browser/resources/vr_shell/vr_shell_ui.css » ('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 ab3b67ac4529a57e6708f2c6ea1ef9543128f90a..dc0d2af29fc21b24a2c92aa27be319558321f95c 100644
--- a/chrome/browser/android/vr_shell/vr_shell.cc
+++ b/chrome/browser/android/vr_shell/vr_shell.cc
@@ -366,6 +366,13 @@ void VrShell::RestoreContentSurface(JNIEnv* env,
base::Bind(&VrShellGl::CreateContentSurface, gl_thread_->GetVrShellGl()));
}
+void VrShell::SetHistoryButtonsEnabled(JNIEnv* env,
+ const JavaParamRef<jobject>& obj,
+ jboolean can_go_back,
+ jboolean can_go_forward) {
+ html_interface_->SetHistoryButtonsEnabled(can_go_back, can_go_forward);
+}
+
void VrShell::UiSurfaceChanged(jobject surface) {
ui_compositor_->SurfaceChanged(surface);
}
« no previous file with comments | « chrome/browser/android/vr_shell/vr_shell.h ('k') | chrome/browser/resources/vr_shell/vr_shell_ui.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698