| 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_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_ |
| OLD | NEW |