| 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 | 13 |
| 14 class GURL; | |
| 15 | |
| 16 namespace vr_shell { | 14 namespace vr_shell { |
| 17 | 15 |
| 18 class LoadingIndicator; | 16 class LoadingIndicator; |
| 19 class UiElement; | 17 class UiElement; |
| 20 class UiScene; | 18 class UiScene; |
| 21 class UrlBar; | 19 class UrlBar; |
| 22 class VrBrowserInterface; | 20 class VrBrowserInterface; |
| 23 | 21 |
| 24 class UiSceneManager { | 22 class UiSceneManager { |
| 25 public: | 23 public: |
| 26 UiSceneManager(VrBrowserInterface* browser, | 24 UiSceneManager(VrBrowserInterface* browser, |
| 27 UiScene* scene, | 25 UiScene* scene, |
| 28 bool in_cct, | 26 bool in_cct, |
| 29 bool in_web_vr); | 27 bool in_web_vr); |
| 30 ~UiSceneManager(); | 28 ~UiSceneManager(); |
| 31 | 29 |
| 32 base::WeakPtr<UiSceneManager> GetWeakPtr(); | 30 base::WeakPtr<UiSceneManager> GetWeakPtr(); |
| 33 | 31 |
| 34 void SetFullscreen(bool fullscreen); | 32 void SetFullscreen(bool fullscreen); |
| 35 void SetURL(const GURL& gurl); | 33 void SetURL(const GURL& gurl); |
| 36 void SetWebVrSecureOrigin(bool secure); | 34 void SetWebVrSecureOrigin(bool secure); |
| 37 void SetWebVrMode(bool web_vr); | 35 void SetWebVrMode(bool web_vr); |
| 38 void SetSecurityLevel(int level); | 36 void SetSecurityLevel(security_state::SecurityLevel level); |
| 39 void SetLoading(bool loading); | 37 void SetLoading(bool loading); |
| 40 void SetLoadProgress(float progress); | 38 void SetLoadProgress(float progress); |
| 41 void SetIsExiting(); | 39 void SetIsExiting(); |
| 42 // These methods are currently stubbed. | 40 // These methods are currently stubbed. |
| 43 void SetHistoryButtonsEnabled(bool can_go_back, bool can_go_forward); | 41 void SetHistoryButtonsEnabled(bool can_go_back, bool can_go_forward); |
| 44 void SetVideoCapturingIndicator(bool enabled); | 42 void SetVideoCapturingIndicator(bool enabled); |
| 45 void SetScreenCapturingIndicator(bool enabled); | 43 void SetScreenCapturingIndicator(bool enabled); |
| 46 void SetAudioCapturingIndicator(bool enabled); | 44 void SetAudioCapturingIndicator(bool enabled); |
| 47 | 45 |
| 48 void OnAppButtonClicked(); | 46 void OnAppButtonClicked(); |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 base::OneShotTimer security_warning_timer_; | 92 base::OneShotTimer security_warning_timer_; |
| 95 | 93 |
| 96 base::WeakPtrFactory<UiSceneManager> weak_ptr_factory_; | 94 base::WeakPtrFactory<UiSceneManager> weak_ptr_factory_; |
| 97 | 95 |
| 98 DISALLOW_COPY_AND_ASSIGN(UiSceneManager); | 96 DISALLOW_COPY_AND_ASSIGN(UiSceneManager); |
| 99 }; | 97 }; |
| 100 | 98 |
| 101 } // namespace vr_shell | 99 } // namespace vr_shell |
| 102 | 100 |
| 103 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_UI_SCENE_MANAGER_H_ | 101 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_UI_SCENE_MANAGER_H_ |
| OLD | NEW |