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

Side by Side Diff: chrome/browser/resources/vr_shell/vr_shell_ui_api.js

Issue 2784303002: Adds button to VRShell menu mode, which lets the user manually exit WebVR presentation. (Closed)
Patch Set: Fixed closure compiler error Created 3 years, 8 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 var api = {}; 5 var api = {};
6 6
7 /** 7 /**
8 * Enumeration of scene update commands. 8 * Enumeration of scene update commands.
9 * @enum {number} 9 * @enum {number}
10 * @const 10 * @const
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 'RELOAD': 2, 66 'RELOAD': 2,
67 'ZOOM_OUT': 3, 67 'ZOOM_OUT': 3,
68 'ZOOM_IN': 4, 68 'ZOOM_IN': 4,
69 'RELOAD_UI': 5, 69 'RELOAD_UI': 5,
70 'LOAD_URL': 6, 70 'LOAD_URL': 6,
71 'OMNIBOX_CONTENT': 7, 71 'OMNIBOX_CONTENT': 7,
72 'SET_CONTENT_PAUSED': 8, 72 'SET_CONTENT_PAUSED': 8,
73 'SHOW_TAB': 9, 73 'SHOW_TAB': 9,
74 'OPEN_NEW_TAB': 10, 74 'OPEN_NEW_TAB': 10,
75 'KEY_EVENT': 11, 75 'KEY_EVENT': 11,
76 'EXIT_PRESENT': 12
76 }; 77 };
77 78
78 /** 79 /**
79 * Enumeration of modes that can be specified by the native side. 80 * Enumeration of modes that can be specified by the native side.
80 * @enum {number} 81 * @enum {number}
81 * @const 82 * @const
82 */ 83 */
83 api.Mode = { 84 api.Mode = {
84 'UNKNOWN': -1, 85 'UNKNOWN': -1,
85 'STANDARD': 0, 86 'STANDARD': 0,
(...skipping 674 matching lines...) Expand 10 before | Expand all | Expand 10 after
760 if ('removeTab' in dict) { 761 if ('removeTab' in dict) {
761 this.onRemoveTab(dict['removeTab']); 762 this.onRemoveTab(dict['removeTab']);
762 } 763 }
763 if ('canGoBack' in dict) { 764 if ('canGoBack' in dict) {
764 this.onSetHistoryButtonsEnabled(dict['canGoBack'], dict['canGoForward']); 765 this.onSetHistoryButtonsEnabled(dict['canGoBack'], dict['canGoForward']);
765 } 766 }
766 767
767 this.onCommandHandlerFinished() 768 this.onCommandHandlerFinished()
768 } 769 }
769 }; 770 };
OLDNEW
« no previous file with comments | « chrome/browser/resources/vr_shell/vr_shell_ui.js ('k') | chrome/browser/ui/webui/vr_shell/vr_shell_ui_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698