| 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" |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 | 27 |
| 28 private: | 28 private: |
| 29 void ConfigureSecurityWarnings(); | 29 void ConfigureSecurityWarnings(); |
| 30 void OnSecurityWarningTimer(); | 30 void OnSecurityWarningTimer(); |
| 31 | 31 |
| 32 UiScene* scene_; | 32 UiScene* scene_; |
| 33 | 33 |
| 34 // UI elemenet pointers (not owned by the scene manager). | 34 // UI elemenet pointers (not owned by the scene manager). |
| 35 UiElement* permanent_security_warning_ = nullptr; | 35 UiElement* permanent_security_warning_ = nullptr; |
| 36 UiElement* transient_security_warning_ = nullptr; | 36 UiElement* transient_security_warning_ = nullptr; |
| 37 UiElement* main_content_ = nullptr; |
| 37 | 38 |
| 38 bool web_vr_mode_ = false; | 39 bool web_vr_mode_ = false; |
| 39 bool secure_origin_ = false; | 40 bool secure_origin_ = false; |
| 40 | 41 |
| 41 base::OneShotTimer security_warning_timer_; | 42 base::OneShotTimer security_warning_timer_; |
| 42 | 43 |
| 43 base::WeakPtrFactory<UiSceneManager> weak_ptr_factory_; | 44 base::WeakPtrFactory<UiSceneManager> weak_ptr_factory_; |
| 44 | 45 |
| 45 DISALLOW_COPY_AND_ASSIGN(UiSceneManager); | 46 DISALLOW_COPY_AND_ASSIGN(UiSceneManager); |
| 46 }; | 47 }; |
| 47 | 48 |
| 48 } // namespace vr_shell | 49 } // namespace vr_shell |
| 49 | 50 |
| 50 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_UI_SCENE_MANAGER_H_ | 51 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_UI_SCENE_MANAGER_H_ |
| OLD | NEW |