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 #include "chrome/browser/android/vr_shell/ui_elements.h" | 5 #include "chrome/browser/android/vr_shell/ui_elements.h" |
6 | 6 |
7 #include <limits> | 7 #include <limits> |
8 | 8 |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "chrome/browser/android/vr_shell/animation.h" | 10 #include "chrome/browser/android/vr_shell/animation.h" |
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 ++it; | 189 ++it; |
190 } | 190 } |
191 } | 191 } |
192 } | 192 } |
193 | 193 |
194 bool ContentRectangle::IsVisible() const { | 194 bool ContentRectangle::IsVisible() const { |
195 return visible && computed_opacity > 0.0f; | 195 return visible && computed_opacity > 0.0f; |
196 } | 196 } |
197 | 197 |
198 bool ContentRectangle::IsHitTestable() const { | 198 bool ContentRectangle::IsHitTestable() const { |
199 return hit_testable; | 199 return IsVisible() && hit_testable; |
200 } | 200 } |
201 | 201 |
202 } // namespace vr_shell | 202 } // namespace vr_shell |
203 | 203 |
OLD | NEW |