| 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_UI_ELEMENTS_SPLASH_SCREEN_ICON_H_ | 5 #ifndef CHROME_BROWSER_ANDROID_VR_SHELL_UI_ELEMENTS_SPLASH_SCREEN_ICON_H_ |
| 6 #define CHROME_BROWSER_ANDROID_VR_SHELL_UI_ELEMENTS_SPLASH_SCREEN_ICON_H_ | 6 #define CHROME_BROWSER_ANDROID_VR_SHELL_UI_ELEMENTS_SPLASH_SCREEN_ICON_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| 11 #include "chrome/browser/android/vr_shell/ui_elements/textured_element.h" | 11 #include "chrome/browser/android/vr_shell/ui_elements/textured_element.h" |
| 12 | 12 |
| 13 class SkBitmap; | 13 class SkBitmap; |
| 14 | 14 |
| 15 namespace vr_shell { | 15 namespace vr_shell { |
| 16 | 16 |
| 17 class SplashScreenIconTexture; | 17 class SplashScreenIconTexture; |
| 18 | 18 |
| 19 class SplashScreenIcon : public TexturedElement { | 19 class SplashScreenIcon : public TexturedElement { |
| 20 public: | 20 public: |
| 21 explicit SplashScreenIcon(int preferred_width); | 21 explicit SplashScreenIcon(int id, int preferred_width); |
| 22 ~SplashScreenIcon() override; | 22 ~SplashScreenIcon() override; |
| 23 | 23 |
| 24 void SetSplashScreenIconBitmap(const SkBitmap& bitmap); | 24 void SetSplashScreenIconBitmap(const SkBitmap& bitmap); |
| 25 | 25 |
| 26 private: | 26 private: |
| 27 UiTexture* GetTexture() const override; | 27 UiTexture* GetTexture() const override; |
| 28 | 28 |
| 29 std::unique_ptr<SplashScreenIconTexture> texture_; | 29 std::unique_ptr<SplashScreenIconTexture> texture_; |
| 30 | 30 |
| 31 DISALLOW_COPY_AND_ASSIGN(SplashScreenIcon); | 31 DISALLOW_COPY_AND_ASSIGN(SplashScreenIcon); |
| 32 }; | 32 }; |
| 33 | 33 |
| 34 } // namespace vr_shell | 34 } // namespace vr_shell |
| 35 | 35 |
| 36 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_UI_ELEMENTS_SPLASH_SCREEN_ICON_H_ | 36 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_UI_ELEMENTS_SPLASH_SCREEN_ICON_H_ |
| OLD | NEW |