| 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_H_ | 5 #ifndef CHROME_BROWSER_ANDROID_VR_SHELL_UI_SCENE_H_ |
| 6 #define CHROME_BROWSER_ANDROID_VR_SHELL_UI_SCENE_H_ | 6 #define CHROME_BROWSER_ANDROID_VR_SHELL_UI_SCENE_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/macros.h" | 11 #include "base/macros.h" |
| 12 #include "base/memory/ref_counted.h" |
| 12 #include "device/vr/vr_types.h" | 13 #include "device/vr/vr_types.h" |
| 13 | 14 |
| 14 namespace base { | 15 namespace base { |
| 15 class ListValue; | 16 class ListValue; |
| 16 class TimeTicks; | 17 class TimeTicks; |
| 17 } | 18 } |
| 18 | 19 |
| 19 namespace vr_shell { | 20 namespace vr_shell { |
| 20 | 21 |
| 21 class Animation; | 22 class Animation; |
| 22 struct UiElement; | 23 class UiElement; |
| 23 | 24 |
| 24 class UiScene { | 25 class UiScene { |
| 25 public: | 26 public: |
| 26 enum Command { | 27 enum Command { |
| 27 ADD_ELEMENT, | 28 ADD_ELEMENT, |
| 28 UPDATE_ELEMENT, | 29 UPDATE_ELEMENT, |
| 29 REMOVE_ELEMENT, | 30 REMOVE_ELEMENT, |
| 30 ADD_ANIMATION, | 31 ADD_ANIMATION, |
| 31 REMOVE_ANIMATION, | 32 REMOVE_ANIMATION, |
| 32 CONFIGURE_SCENE, | 33 CONFIGURE_SCENE, |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 float background_distance_ = 10.0f; | 82 float background_distance_ = 10.0f; |
| 82 bool webvr_rendering_enabled_ = true; | 83 bool webvr_rendering_enabled_ = true; |
| 83 bool gl_initialized_ = false; | 84 bool gl_initialized_ = false; |
| 84 | 85 |
| 85 DISALLOW_COPY_AND_ASSIGN(UiScene); | 86 DISALLOW_COPY_AND_ASSIGN(UiScene); |
| 86 }; | 87 }; |
| 87 | 88 |
| 88 } // namespace vr_shell | 89 } // namespace vr_shell |
| 89 | 90 |
| 90 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_UI_SCENE_H_ | 91 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_UI_SCENE_H_ |
| OLD | NEW |