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

Side by Side Diff: chrome/browser/android/vr_shell/ui_interface.h

Issue 2683953007: Support rendering Android Native Pages in VR Shell. (Closed)
Patch Set: rebase Created 3 years, 10 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
« no previous file with comments | « chrome/browser/android/vr_shell/DEPS ('k') | chrome/browser/android/vr_shell/ui_interface.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef CHROME_BROWSER_ANDROID_VR_SHELL_UI_INTERFACE_H_ 5 #ifndef CHROME_BROWSER_ANDROID_VR_SHELL_UI_INTERFACE_H_
6 #define CHROME_BROWSER_ANDROID_VR_SHELL_UI_INTERFACE_H_ 6 #define CHROME_BROWSER_ANDROID_VR_SHELL_UI_INTERFACE_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
(...skipping 13 matching lines...) Expand all
24 24
25 // This class manages the communication of browser state from VR shell to the 25 // This class manages the communication of browser state from VR shell to the
26 // HTML UI. State information is asynchronous and unidirectional. 26 // HTML UI. State information is asynchronous and unidirectional.
27 class UiInterface { 27 class UiInterface {
28 public: 28 public:
29 enum Mode { 29 enum Mode {
30 STANDARD = 0, 30 STANDARD = 0,
31 WEB_VR 31 WEB_VR
32 }; 32 };
33 33
34 explicit UiInterface(Mode initial_mode, bool fullscreen); 34 explicit UiInterface(Mode initial_mode);
35 virtual ~UiInterface(); 35 virtual ~UiInterface();
36 36
37 // Set HTML UI state or pass events. 37 // Set HTML UI state or pass events.
38 void SetMode(Mode mode); 38 void SetMode(Mode mode);
39 void SetFullscreen(bool enabled); 39 void SetFullscreen(bool enabled);
40 void SetSecurityLevel(int level); 40 void SetSecurityLevel(int level);
41 void SetWebVRSecureOrigin(bool secure); 41 void SetWebVRSecureOrigin(bool secure);
42 void SetLoading(bool loading); 42 void SetLoading(bool loading);
43 void SetLoadProgress(double progress); 43 void SetLoadProgress(double progress);
44 void InitTabList(); 44 void InitTabList();
(...skipping 23 matching lines...) Expand all
68 std::unique_ptr<base::ListValue> tab_list_; 68 std::unique_ptr<base::ListValue> tab_list_;
69 69
70 std::unique_ptr<VrOmnibox> omnibox_; 70 std::unique_ptr<VrOmnibox> omnibox_;
71 71
72 DISALLOW_COPY_AND_ASSIGN(UiInterface); 72 DISALLOW_COPY_AND_ASSIGN(UiInterface);
73 }; 73 };
74 74
75 } // namespace vr_shell 75 } // namespace vr_shell
76 76
77 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_UI_INTERFACE_H_ 77 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_UI_INTERFACE_H_
OLDNEW
« no previous file with comments | « chrome/browser/android/vr_shell/DEPS ('k') | chrome/browser/android/vr_shell/ui_interface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698