| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |