OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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_SCREEN_DIMMER_H_ | 5 #ifndef CHROME_BROWSER_ANDROID_VR_SHELL_UI_ELEMENTS_SCREEN_DIMMER_H_ |
6 #define CHROME_BROWSER_ANDROID_VR_SHELL_UI_ELEMENTS_SCREEN_DIMMER_H_ | 6 #define CHROME_BROWSER_ANDROID_VR_SHELL_UI_ELEMENTS_SCREEN_DIMMER_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "chrome/browser/android/vr_shell/ui_elements/ui_element.h" | 9 #include "chrome/browser/android/vr_shell/ui_elements/ui_element.h" |
10 | 10 |
11 namespace vr_shell { | 11 namespace vr_shell { |
12 | 12 |
13 class ScreenDimmer : public UiElement { | 13 class ScreenDimmer : public UiElement { |
14 public: | 14 public: |
15 ScreenDimmer(); | 15 ScreenDimmer(); |
16 ~ScreenDimmer() override; | 16 ~ScreenDimmer() override; |
17 | 17 |
18 void Initialize() final; | 18 void Initialize() final; |
19 | 19 |
20 // UiElement interface. | 20 // UiElement interface. |
21 void Render(VrShellRenderer* renderer, | 21 void Render(UiElementRenderer* renderer, |
22 vr::Mat4f view_proj_matrix) const final; | 22 vr::Mat4f view_proj_matrix) const final; |
23 | 23 |
24 DISALLOW_COPY_AND_ASSIGN(ScreenDimmer); | 24 DISALLOW_COPY_AND_ASSIGN(ScreenDimmer); |
25 }; | 25 }; |
26 | 26 |
27 } // namespace vr_shell | 27 } // namespace vr_shell |
28 | 28 |
29 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_UI_ELEMENTS_SCREEN_DIMMER_H_ | 29 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_UI_ELEMENTS_SCREEN_DIMMER_H_ |
OLD | NEW |