| OLD | NEW |
| (Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_ANDROID_VR_SHELL_UI_SCENE_MANAGER_H_ |
| 6 #define CHROME_BROWSER_ANDROID_VR_SHELL_UI_SCENE_MANAGER_H_ |
| 7 |
| 8 #include "base/macros.h" |
| 9 #include "base/memory/weak_ptr.h" |
| 10 #include "base/values.h" |
| 11 |
| 12 namespace vr_shell { |
| 13 |
| 14 class UiScene; |
| 15 |
| 16 class UiSceneManager { |
| 17 public: |
| 18 explicit UiSceneManager(UiScene* scene); |
| 19 ~UiSceneManager(); |
| 20 |
| 21 base::WeakPtr<UiSceneManager> GetWeakPtr(); |
| 22 |
| 23 void UpdateScene(std::unique_ptr<base::ListValue> commands); |
| 24 |
| 25 void SetWebVRSecureOrigin(bool secure); |
| 26 void SetWebVRMode(bool web_vr); |
| 27 |
| 28 private: |
| 29 UiScene* scene_; |
| 30 |
| 31 bool web_vr_mode_ = false; |
| 32 bool secure_origin_ = false; |
| 33 |
| 34 base::WeakPtrFactory<UiSceneManager> weak_ptr_factory_; |
| 35 |
| 36 DISALLOW_COPY_AND_ASSIGN(UiSceneManager); |
| 37 }; |
| 38 |
| 39 } // namespace vr_shell |
| 40 |
| 41 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_UI_SCENE_MANAGER_H_ |
| OLD | NEW |