| 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/gtest_prod_util.h" | 8 #include "base/gtest_prod_util.h" |
| 9 #include "base/macros.h" | 9 #include "base/macros.h" |
| 10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 UiScene* scene, | 29 UiScene* scene, |
| 30 bool in_cct, | 30 bool in_cct, |
| 31 bool in_web_vr, | 31 bool in_web_vr, |
| 32 bool web_vr_autopresented); | 32 bool web_vr_autopresented); |
| 33 ~UiSceneManager(); | 33 ~UiSceneManager(); |
| 34 | 34 |
| 35 base::WeakPtr<UiSceneManager> GetWeakPtr(); | 35 base::WeakPtr<UiSceneManager> GetWeakPtr(); |
| 36 | 36 |
| 37 void SetFullscreen(bool fullscreen); | 37 void SetFullscreen(bool fullscreen); |
| 38 void SetIncognito(bool incognito); | 38 void SetIncognito(bool incognito); |
| 39 void SetURL(const GURL& gurl); | 39 void SetToolbarState(const ToolbarState& state); |
| 40 void SetWebVrSecureOrigin(bool secure); | 40 void SetWebVrSecureOrigin(bool secure); |
| 41 void SetWebVrMode(bool web_vr, bool auto_presented, bool show_toast); | 41 void SetWebVrMode(bool web_vr, bool auto_presented, bool show_toast); |
| 42 void SetSecurityInfo(security_state::SecurityLevel level, bool malware); | |
| 43 void SetLoading(bool loading); | 42 void SetLoading(bool loading); |
| 44 void SetLoadProgress(float progress); | 43 void SetLoadProgress(float progress); |
| 45 void SetIsExiting(); | 44 void SetIsExiting(); |
| 46 void SetVideoCapturingIndicator(bool enabled); | 45 void SetVideoCapturingIndicator(bool enabled); |
| 47 void SetScreenCapturingIndicator(bool enabled); | 46 void SetScreenCapturingIndicator(bool enabled); |
| 48 void SetAudioCapturingIndicator(bool enabled); | 47 void SetAudioCapturingIndicator(bool enabled); |
| 49 void SetLocationAccessIndicator(bool enabled); | 48 void SetLocationAccessIndicator(bool enabled); |
| 50 | 49 |
| 51 // These methods are currently stubbed. | 50 // These methods are currently stubbed. |
| 52 void SetHistoryButtonsEnabled(bool can_go_back, bool can_go_forward); | 51 void SetHistoryButtonsEnabled(bool can_go_back, bool can_go_forward); |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 base::OneShotTimer presentation_toast_timer_; | 144 base::OneShotTimer presentation_toast_timer_; |
| 146 | 145 |
| 147 base::WeakPtrFactory<UiSceneManager> weak_ptr_factory_; | 146 base::WeakPtrFactory<UiSceneManager> weak_ptr_factory_; |
| 148 | 147 |
| 149 DISALLOW_COPY_AND_ASSIGN(UiSceneManager); | 148 DISALLOW_COPY_AND_ASSIGN(UiSceneManager); |
| 150 }; | 149 }; |
| 151 | 150 |
| 152 } // namespace vr_shell | 151 } // namespace vr_shell |
| 153 | 152 |
| 154 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_UI_SCENE_MANAGER_H_ | 153 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_UI_SCENE_MANAGER_H_ |
| OLD | NEW |