| 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 "chrome/browser/android/vr_shell/ui_unsupported_mode.h" |
| 13 #include "device/vr/vr_types.h" | 14 #include "device/vr/vr_types.h" |
| 14 | 15 |
| 15 namespace vr_shell { | 16 namespace vr_shell { |
| 16 | 17 |
| 17 class LoadingIndicator; | 18 class LoadingIndicator; |
| 18 class UiElement; | 19 class UiElement; |
| 19 class UiScene; | 20 class UiScene; |
| 20 class UrlBar; | 21 class UrlBar; |
| 21 class VrBrowserInterface; | 22 class VrBrowserInterface; |
| 22 | 23 |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 void CreateUrlBar(); | 60 void CreateUrlBar(); |
| 60 void CreateCloseButton(); | 61 void CreateCloseButton(); |
| 61 void CreateExitWarning(); | 62 void CreateExitWarning(); |
| 62 | 63 |
| 63 void ConfigureScene(); | 64 void ConfigureScene(); |
| 64 void ConfigureSecurityWarnings(); | 65 void ConfigureSecurityWarnings(); |
| 65 void UpdateBackgroundColor(); | 66 void UpdateBackgroundColor(); |
| 66 void OnSecurityWarningTimer(); | 67 void OnSecurityWarningTimer(); |
| 67 void OnBackButtonClicked(); | 68 void OnBackButtonClicked(); |
| 68 void OnCloseButtonClicked(); | 69 void OnCloseButtonClicked(); |
| 70 void OnUnsupportedMode(UiUnsupportedMode mode); |
| 69 int AllocateId(); | 71 int AllocateId(); |
| 70 const ColorScheme& color_scheme() const; | 72 const ColorScheme& color_scheme() const; |
| 71 | 73 |
| 72 VrBrowserInterface* browser_; | 74 VrBrowserInterface* browser_; |
| 73 UiScene* scene_; | 75 UiScene* scene_; |
| 74 | 76 |
| 75 // UI element pointers (not owned by the scene manager). | 77 // UI element pointers (not owned by the scene manager). |
| 76 UiElement* permanent_security_warning_ = nullptr; | 78 UiElement* permanent_security_warning_ = nullptr; |
| 77 UiElement* transient_security_warning_ = nullptr; | 79 UiElement* transient_security_warning_ = nullptr; |
| 78 UiElement* exit_warning_ = nullptr; | 80 UiElement* exit_warning_ = nullptr; |
| (...skipping 25 matching lines...) Expand all Loading... |
| 104 base::OneShotTimer security_warning_timer_; | 106 base::OneShotTimer security_warning_timer_; |
| 105 | 107 |
| 106 base::WeakPtrFactory<UiSceneManager> weak_ptr_factory_; | 108 base::WeakPtrFactory<UiSceneManager> weak_ptr_factory_; |
| 107 | 109 |
| 108 DISALLOW_COPY_AND_ASSIGN(UiSceneManager); | 110 DISALLOW_COPY_AND_ASSIGN(UiSceneManager); |
| 109 }; | 111 }; |
| 110 | 112 |
| 111 } // namespace vr_shell | 113 } // namespace vr_shell |
| 112 | 114 |
| 113 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_UI_SCENE_MANAGER_H_ | 115 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_UI_SCENE_MANAGER_H_ |
| OLD | NEW |