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

Unified Diff: chrome/browser/resources/vr_shell/vr_shell_ui_api.js

Issue 2437823002: Control visibility of 2D VR menu buttons using native state. (Closed)
Patch Set: Address nits. Created 4 years, 2 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/resources/vr_shell/vr_shell_ui.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/vr_shell/vr_shell_ui_api.js
diff --git a/chrome/browser/resources/vr_shell/vr_shell_ui_api.js b/chrome/browser/resources/vr_shell/vr_shell_ui_api.js
index 976b616aa26e65e61e1166b51ab6887e442ba53b..085af162bf2600f6efc5969974201dd2424f0cea 100644
--- a/chrome/browser/resources/vr_shell/vr_shell_ui_api.js
+++ b/chrome/browser/resources/vr_shell/vr_shell_ui_api.js
@@ -70,7 +70,18 @@ var api = (function() {
'HISTORY_FORWARD': 1,
'RELOAD': 2,
'ZOOM_OUT': 3,
- 'ZOOM_IN': 4,
+ 'ZOOM_IN': 4
+ });
+
+ /**
+ * Enumeration of modes that can be specified by the native side.
+ * @enum {number}
+ * @const
+ */
+ var Mode = Object.freeze({
+ 'UNKNOWN': -1,
+ 'STANDARD': 0,
+ 'WEB_VR': 1
});
/**
@@ -268,6 +279,7 @@ var api = (function() {
Easing: Easing,
Command: Command,
Action: Action,
+ Mode: Mode,
getContentElementId: getContentElementId,
UiElement: UiElement,
UiElementUpdate: UiElementUpdate,
« no previous file with comments | « chrome/browser/resources/vr_shell/vr_shell_ui.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698