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

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

Issue 2536223002: Omnibox improvements and fixes. (Closed)
Patch Set: Rebase. Created 4 years 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
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 58acd54812431c9a8d28ddf13209c37456b46e7f..59e5c459ce5df7b285a333b072590aad36067d1f 100644
--- a/chrome/browser/android/vr_shell/ui_interface.cc
+++ b/chrome/browser/android/vr_shell/ui_interface.cc
@@ -9,8 +9,9 @@
namespace vr_shell {
-UiInterface::UiInterface(Mode initial_mode) {
+UiInterface::UiInterface(Mode initial_mode, bool fullscreen) {
SetMode(initial_mode);
+ SetFullscreen(fullscreen);
}
UiInterface::~UiInterface() {}
@@ -25,20 +26,25 @@ void UiInterface::SetMenuMode(bool enabled) {
FlushModeState();
}
-void UiInterface::SetCinemaMode(bool enabled) {
- cinema_mode_ = enabled;
+void UiInterface::SetFullscreen(bool enabled) {
+ fullscreen_ = enabled;
FlushModeState();
}
void UiInterface::FlushModeState() {
updates_.SetInteger("mode", static_cast<int>(mode_));
updates_.SetBoolean("menuMode", menu_mode_);
- updates_.SetBoolean("cinemaMode", cinema_mode_);
+ updates_.SetBoolean("fullscreen", fullscreen_);
FlushUpdates();
}
-void UiInterface::SetSecureOrigin(bool secure) {
- updates_.SetBoolean("secureOrigin", secure);
+void UiInterface::SetSecurityLevel(int level) {
+ updates_.SetInteger("securityLevel", level);
+ FlushUpdates();
+}
+
+void UiInterface::SetWebVRSecureOrigin(bool secure) {
+ updates_.SetBoolean("webVRSecureOrigin", secure);
FlushUpdates();
}

Powered by Google App Engine
This is Rietveld 408576698