| 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_SCENE_MANAGER_H_ | 5 #ifndef CHROME_BROWSER_ANDROID_VR_SHELL_UI_SCENE_MANAGER_H_ |
| 6 #define CHROME_BROWSER_ANDROID_VR_SHELL_UI_SCENE_MANAGER_H_ | 6 #define CHROME_BROWSER_ANDROID_VR_SHELL_UI_SCENE_MANAGER_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
| 10 #include "base/timer/timer.h" | 10 #include "base/timer/timer.h" |
| 11 #include "base/values.h" | 11 #include "base/values.h" |
| 12 #include "chrome/browser/android/vr_shell/ui_interface.h" | 12 #include "chrome/browser/android/vr_shell/ui_interface.h" |
| 13 #include "device/vr/vr_types.h" | 13 #include "device/vr/vr_types.h" |
| 14 | 14 |
| 15 class GURL; | |
| 16 | |
| 17 namespace vr_shell { | 15 namespace vr_shell { |
| 18 | 16 |
| 19 class LoadingIndicator; | 17 class LoadingIndicator; |
| 20 class UiElement; | 18 class UiElement; |
| 21 class UiScene; | 19 class UiScene; |
| 22 class UrlBar; | 20 class UrlBar; |
| 23 class VrBrowserInterface; | 21 class VrBrowserInterface; |
| 24 | 22 |
| 25 struct ColorScheme; | 23 struct ColorScheme; |
| 26 | 24 |
| 27 class UiSceneManager { | 25 class UiSceneManager { |
| 28 public: | 26 public: |
| 29 UiSceneManager(VrBrowserInterface* browser, | 27 UiSceneManager(VrBrowserInterface* browser, |
| 30 UiScene* scene, | 28 UiScene* scene, |
| 31 bool in_cct, | 29 bool in_cct, |
| 32 bool in_web_vr); | 30 bool in_web_vr); |
| 33 ~UiSceneManager(); | 31 ~UiSceneManager(); |
| 34 | 32 |
| 35 base::WeakPtr<UiSceneManager> GetWeakPtr(); | 33 base::WeakPtr<UiSceneManager> GetWeakPtr(); |
| 36 | 34 |
| 37 void SetFullscreen(bool fullscreen); | 35 void SetFullscreen(bool fullscreen); |
| 38 void SetURL(const GURL& gurl); | 36 void SetURL(const GURL& gurl); |
| 39 void SetWebVrSecureOrigin(bool secure); | 37 void SetWebVrSecureOrigin(bool secure); |
| 40 void SetWebVrMode(bool web_vr); | 38 void SetWebVrMode(bool web_vr); |
| 41 void SetSecurityLevel(int level); | 39 void SetSecurityLevel(security_state::SecurityLevel level); |
| 42 void SetLoading(bool loading); | 40 void SetLoading(bool loading); |
| 43 void SetLoadProgress(float progress); | 41 void SetLoadProgress(float progress); |
| 44 void SetIsExiting(); | 42 void SetIsExiting(); |
| 45 void SetVideoCapturingIndicator(bool enabled); | 43 void SetVideoCapturingIndicator(bool enabled); |
| 46 void SetScreenCapturingIndicator(bool enabled); | 44 void SetScreenCapturingIndicator(bool enabled); |
| 47 void SetAudioCapturingIndicator(bool enabled); | 45 void SetAudioCapturingIndicator(bool enabled); |
| 48 | 46 |
| 49 // These methods are currently stubbed. | 47 // These methods are currently stubbed. |
| 50 void SetHistoryButtonsEnabled(bool can_go_back, bool can_go_forward); | 48 void SetHistoryButtonsEnabled(bool can_go_back, bool can_go_forward); |
| 51 | 49 |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 base::OneShotTimer security_warning_timer_; | 101 base::OneShotTimer security_warning_timer_; |
| 104 | 102 |
| 105 base::WeakPtrFactory<UiSceneManager> weak_ptr_factory_; | 103 base::WeakPtrFactory<UiSceneManager> weak_ptr_factory_; |
| 106 | 104 |
| 107 DISALLOW_COPY_AND_ASSIGN(UiSceneManager); | 105 DISALLOW_COPY_AND_ASSIGN(UiSceneManager); |
| 108 }; | 106 }; |
| 109 | 107 |
| 110 } // namespace vr_shell | 108 } // namespace vr_shell |
| 111 | 109 |
| 112 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_UI_SCENE_MANAGER_H_ | 110 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_UI_SCENE_MANAGER_H_ |
| OLD | NEW |