| 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_ELEMENTS_H_ | 5 #ifndef CHROME_BROWSER_ANDROID_VR_SHELL_UI_ELEMENTS_H_ |
| 6 #define CHROME_BROWSER_ANDROID_VR_SHELL_UI_ELEMENTS_H_ | 6 #define CHROME_BROWSER_ANDROID_VR_SHELL_UI_ELEMENTS_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> |
| 9 #include <vector> | 10 #include <vector> |
| 10 | 11 |
| 11 #include "base/macros.h" | 12 #include "base/macros.h" |
| 12 #include "chrome/browser/android/vr_shell/vr_math.h" | 13 #include "chrome/browser/android/vr_shell/vr_math.h" |
| 13 #include "third_party/gvr-android-sdk/src/libraries/headers/vr/gvr/capi/include/
gvr_types.h" | 14 #include "third_party/gvr-android-sdk/src/libraries/headers/vr/gvr/capi/include/
gvr_types.h" |
| 14 | 15 |
| 15 namespace vr_shell { | 16 namespace vr_shell { |
| 16 | 17 |
| 17 class Animation; | 18 class Animation; |
| 18 | 19 |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 | 93 |
| 93 // Indicates whether the element should be visually rendered. | 94 // Indicates whether the element should be visually rendered. |
| 94 bool IsVisible() const; | 95 bool IsVisible() const; |
| 95 | 96 |
| 96 // Indicates whether the element should be tested for cursor input. | 97 // Indicates whether the element should be tested for cursor input. |
| 97 bool IsHitTestable() const; | 98 bool IsHitTestable() const; |
| 98 | 99 |
| 99 // Valid IDs are non-negative. | 100 // Valid IDs are non-negative. |
| 100 int id = -1; | 101 int id = -1; |
| 101 | 102 |
| 103 // Name string for debugging and testing purposes. |
| 104 std::string name; |
| 105 |
| 102 // If a non-negative parent ID is specified, applicable transformations | 106 // If a non-negative parent ID is specified, applicable transformations |
| 103 // are applied relative to the parent, rather than absolutely. | 107 // are applied relative to the parent, rather than absolutely. |
| 104 int parent_id = -1; | 108 int parent_id = -1; |
| 105 | 109 |
| 106 // If true, this object will be visible. | 110 // If true, this object will be visible. |
| 107 bool visible = true; | 111 bool visible = true; |
| 108 | 112 |
| 109 // If false, the reticle will not hit the element, even if visible. | 113 // If false, the reticle will not hit the element, even if visible. |
| 110 bool hit_testable = true; | 114 bool hit_testable = true; |
| 111 | 115 |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 // A flag usable during transformation calculates to avoid duplicate work. | 166 // A flag usable during transformation calculates to avoid duplicate work. |
| 163 bool dirty; | 167 bool dirty; |
| 164 | 168 |
| 165 private: | 169 private: |
| 166 DISALLOW_COPY_AND_ASSIGN(ContentRectangle); | 170 DISALLOW_COPY_AND_ASSIGN(ContentRectangle); |
| 167 }; | 171 }; |
| 168 | 172 |
| 169 } // namespace vr_shell | 173 } // namespace vr_shell |
| 170 | 174 |
| 171 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_UI_ELEMENTS_H_ | 175 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_UI_ELEMENTS_H_ |
| OLD | NEW |