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

Side by Side Diff: chrome/browser/android/vr_shell/textures/button_texture.h

Issue 2926643003: [VrShell] Centralize color handling and enable close button on fullscreen (Closed)
Patch Set: 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_TEXTURES_BUTTON_TEXTURE_H_ 5 #ifndef CHROME_BROWSER_ANDROID_VR_SHELL_TEXTURES_BUTTON_TEXTURE_H_
6 #define CHROME_BROWSER_ANDROID_VR_SHELL_TEXTURES_BUTTON_TEXTURE_H_ 6 #define CHROME_BROWSER_ANDROID_VR_SHELL_TEXTURES_BUTTON_TEXTURE_H_
7 7
8 #include "chrome/browser/android/vr_shell/textures/ui_texture.h" 8 #include "chrome/browser/android/vr_shell/textures/ui_texture.h"
9 9
10 namespace vr_shell { 10 namespace vr_shell {
11 11
12 class ButtonTexture : public UiTexture { 12 class ButtonTexture : public UiTexture {
13 public: 13 public:
14 ButtonTexture(); 14 ButtonTexture();
15 ~ButtonTexture() override; 15 ~ButtonTexture() override;
16 16
17 void SetPressed(bool pressed); 17 void SetPressed(bool pressed);
18 bool pressed() const { return pressed_; } 18 bool pressed() const { return pressed_; }
19 19
20 void SetHovered(bool hovered); 20 void SetHovered(bool hovered);
21 bool hovered() const { return hovered_; } 21 bool hovered() const { return hovered_; }
22 22
23 private: 23 private:
24 void OnSetMode() override;
24 bool pressed_ = false; 25 bool pressed_ = false;
25 bool hovered_ = false; 26 bool hovered_ = false;
26 }; 27 };
27 28
28 } // namespace vr_shell 29 } // namespace vr_shell
29 30
30 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_TEXTURES_BUTTON_TEXTURE_H_ 31 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_TEXTURES_BUTTON_TEXTURE_H_
OLDNEW
« no previous file with comments | « chrome/browser/android/vr_shell/color_scheme.cc ('k') | chrome/browser/android/vr_shell/textures/button_texture.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698