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

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: 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
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 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 12 matching lines...) Expand all
23 23
24 // This class manages the communication of browser state from VR shell to the 24 // This class manages the communication of browser state from VR shell to the
25 // HTML UI. State information is asynchronous and unidirectional. 25 // HTML UI. State information is asynchronous and unidirectional.
26 class UiInterface { 26 class UiInterface {
27 public: 27 public:
28 enum Mode { 28 enum Mode {
29 STANDARD = 0, 29 STANDARD = 0,
30 WEB_VR 30 WEB_VR
31 }; 31 };
32 32
33 explicit UiInterface(Mode initial_mode, bool fullscreen); 33 explicit UiInterface(Mode initial_mode);
34 virtual ~UiInterface(); 34 virtual ~UiInterface();
35 35
36 // Set HTML UI state or pass events. 36 // Set HTML UI state or pass events.
37 void SetMode(Mode mode); 37 void SetMode(Mode mode);
38 void SetFullscreen(bool enabled); 38 void SetFullscreen(bool enabled);
39 void SetSecurityLevel(int level); 39 void SetSecurityLevel(int level);
40 void SetWebVRSecureOrigin(bool secure); 40 void SetWebVRSecureOrigin(bool secure);
41 void SetLoading(bool loading); 41 void SetLoading(bool loading);
42 void SetLoadProgress(double progress); 42 void SetLoadProgress(double progress);
43 void InitTabList(); 43 void InitTabList();
(...skipping 23 matching lines...) Expand all
67 std::unique_ptr<base::ListValue> tab_list_; 67 std::unique_ptr<base::ListValue> tab_list_;
68 68
69 std::unique_ptr<VrOmnibox> omnibox_; 69 std::unique_ptr<VrOmnibox> omnibox_;
70 70
71 DISALLOW_COPY_AND_ASSIGN(UiInterface); 71 DISALLOW_COPY_AND_ASSIGN(UiInterface);
72 }; 72 };
73 73
74 } // namespace vr_shell 74 } // namespace vr_shell
75 75
76 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_UI_INTERFACE_H_ 76 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_UI_INTERFACE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698