OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_ANDROID_VR_SHELL_TEXTURES_CLOSE_BUTTON_TEXTURE_H_ |
| 6 #define CHROME_BROWSER_ANDROID_VR_SHELL_TEXTURES_CLOSE_BUTTON_TEXTURE_H_ |
| 7 |
| 8 #include "chrome/browser/android/vr_shell/textures/ui_texture.h" |
| 9 |
| 10 namespace vr_shell { |
| 11 |
| 12 class CloseButtonTexture : public UiTexture { |
| 13 public: |
| 14 enum DrawFlags { |
| 15 FLAG_HOVER = 1 << 0, |
| 16 FLAG_DOWN = 1 << 1, |
| 17 }; |
| 18 |
| 19 CloseButtonTexture(); |
| 20 ~CloseButtonTexture() override; |
| 21 gfx::Size GetPreferredTextureSize(int width) const override; |
| 22 gfx::SizeF GetDrawnSize() const override; |
| 23 |
| 24 private: |
| 25 void Draw(SkCanvas* sk_canvas, const gfx::Size& texture_size) override; |
| 26 |
| 27 gfx::SizeF size_; |
| 28 }; |
| 29 |
| 30 } // namespace vr_shell |
| 31 |
| 32 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_TEXTURES_CLOSE_BUTTON_TEXTURE_H_ |
OLD | NEW |