Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(455)

Side by Side Diff: chrome/browser/android/vr_shell/ui_elements/screen_dimmer.h

Issue 2903363002: VR: Split off UI code into a library to ease future unit testing. (Closed)
Patch Set: More tweaks. Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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_
OLDNEW
« no previous file with comments | « chrome/browser/android/vr_shell/ui_element_renderer.h ('k') | chrome/browser/android/vr_shell/ui_elements/screen_dimmer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698