| 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_CLOSE_BUTTON_TEXTURE_H_ | 5 #ifndef CHROME_BROWSER_ANDROID_VR_SHELL_TEXTURES_CLOSE_BUTTON_TEXTURE_H_ |
| 6 #define CHROME_BROWSER_ANDROID_VR_SHELL_TEXTURES_CLOSE_BUTTON_TEXTURE_H_ | 6 #define CHROME_BROWSER_ANDROID_VR_SHELL_TEXTURES_CLOSE_BUTTON_TEXTURE_H_ |
| 7 | 7 |
| 8 #include "chrome/browser/android/vr_shell/textures/button_texture.h" | 8 #include "chrome/browser/android/vr_shell/textures/button_texture.h" |
| 9 | 9 |
| 10 namespace gfx { | 10 namespace gfx { |
| 11 class PointF; | 11 class PointF; |
| 12 } // namespace gfx | 12 } // namespace gfx |
| 13 | 13 |
| 14 namespace vr_shell { | 14 namespace vr_shell { |
| 15 | 15 |
| 16 struct ColorScheme; |
| 17 |
| 16 class CloseButtonTexture : public ButtonTexture { | 18 class CloseButtonTexture : public ButtonTexture { |
| 17 public: | 19 public: |
| 18 CloseButtonTexture(); | 20 CloseButtonTexture(); |
| 19 ~CloseButtonTexture() override; | 21 ~CloseButtonTexture() override; |
| 20 gfx::Size GetPreferredTextureSize(int width) const override; | 22 gfx::Size GetPreferredTextureSize(int width) const override; |
| 21 gfx::SizeF GetDrawnSize() const override; | 23 gfx::SizeF GetDrawnSize() const override; |
| 22 bool HitTest(const gfx::PointF& point) const override; | 24 bool HitTest(const gfx::PointF& point) const override; |
| 23 | 25 |
| 24 private: | 26 private: |
| 25 void Draw(SkCanvas* sk_canvas, const gfx::Size& texture_size) override; | 27 void Draw(SkCanvas* sk_canvas, const gfx::Size& texture_size) override; |
| 28 const ColorScheme& color_scheme() const; |
| 26 | 29 |
| 27 gfx::SizeF size_; | 30 gfx::SizeF size_; |
| 28 }; | 31 }; |
| 29 | 32 |
| 30 } // namespace vr_shell | 33 } // namespace vr_shell |
| 31 | 34 |
| 32 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_TEXTURES_CLOSE_BUTTON_TEXTURE_H_ | 35 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_TEXTURES_CLOSE_BUTTON_TEXTURE_H_ |
| OLD | NEW |