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

Unified Diff: chrome/browser/android/vr_shell/ui_interface.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/ui_interface.h ('k') | chrome/browser/android/vr_shell/vr_shell.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/android/vr_shell/ui_interface.cc
diff --git a/chrome/browser/android/vr_shell/ui_interface.cc b/chrome/browser/android/vr_shell/ui_interface.cc
index a61d448bd924f643a220d46bfe8fb52c40b79b72..6fdb6d9e51f1c50a11eb895502244df6279140f2 100644
--- a/chrome/browser/android/vr_shell/ui_interface.cc
+++ b/chrome/browser/android/vr_shell/ui_interface.cc
@@ -115,6 +115,13 @@ void UiInterface::HandleAppButtonClicked() {
FlushUpdates();
}
+void UiInterface::SetHistoryButtonsEnabled(bool can_go_back,
+ bool can_go_forward) {
+ updates_.SetBoolean("canGoBack", can_go_back);
+ updates_.SetBoolean("canGoForward", can_go_forward);
+ FlushUpdates();
+}
+
void UiInterface::OnDomContentsLoaded() {
loaded_ = true;
#if defined(ENABLE_VR_SHELL_UI_DEV)
« no previous file with comments | « chrome/browser/android/vr_shell/ui_interface.h ('k') | chrome/browser/android/vr_shell/vr_shell.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698