OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 ASH_MUS_WALLPAPER_DELEGATE_MUS_H_ | 5 #ifndef ASH_MUS_WALLPAPER_DELEGATE_MUS_H_ |
6 #define ASH_MUS_WALLPAPER_DELEGATE_MUS_H_ | 6 #define ASH_MUS_WALLPAPER_DELEGATE_MUS_H_ |
7 | 7 |
8 #include "ash/common/wallpaper/wallpaper_delegate.h" | 8 #include "ash/common/wallpaper/wallpaper_delegate.h" |
9 #include "ash/public/interfaces/wallpaper.mojom.h" | |
10 #include "base/macros.h" | 9 #include "base/macros.h" |
11 | 10 |
12 namespace service_manager { | |
13 class Connector; | |
14 } | |
15 | |
16 namespace ash { | 11 namespace ash { |
17 | 12 |
18 class WallpaperDelegateMus : public WallpaperDelegate, | 13 class WallpaperDelegateMus : public WallpaperDelegate { |
19 public mojom::WallpaperController { | |
20 public: | 14 public: |
21 explicit WallpaperDelegateMus(service_manager::Connector* connector); | 15 WallpaperDelegateMus(); |
22 ~WallpaperDelegateMus() override; | 16 ~WallpaperDelegateMus() override; |
23 | 17 |
24 private: | 18 private: |
25 // WallpaperDelegate overrides: | 19 // WallpaperDelegate overrides: |
26 int GetAnimationType() override; | 20 int GetAnimationType() override; |
27 int GetAnimationDurationOverride() override; | 21 int GetAnimationDurationOverride() override; |
28 void SetAnimationDurationOverride(int animation_duration_in_ms) override; | 22 void SetAnimationDurationOverride(int animation_duration_in_ms) override; |
29 bool ShouldShowInitialAnimation() override; | 23 bool ShouldShowInitialAnimation() override; |
30 void UpdateWallpaper(bool clear_cache) override; | 24 void UpdateWallpaper(bool clear_cache) override; |
31 void InitializeWallpaper() override; | 25 void InitializeWallpaper() override; |
32 void OpenSetWallpaperPage() override; | |
33 bool CanOpenSetWallpaperPage() override; | 26 bool CanOpenSetWallpaperPage() override; |
34 void OnWallpaperAnimationFinished() override; | 27 void OnWallpaperAnimationFinished() override; |
35 void OnWallpaperBootAnimationFinished() override; | 28 void OnWallpaperBootAnimationFinished() override; |
36 | 29 |
37 // mojom::WallpaperController overrides: | |
38 void SetWallpaper(const SkBitmap& wallpaper, | |
39 mojom::WallpaperLayout layout) override; | |
40 | |
41 service_manager::Connector* connector_; | |
42 | |
43 DISALLOW_COPY_AND_ASSIGN(WallpaperDelegateMus); | 30 DISALLOW_COPY_AND_ASSIGN(WallpaperDelegateMus); |
44 }; | 31 }; |
45 | 32 |
46 } // namespace ash | 33 } // namespace ash |
47 | 34 |
48 #endif // ASH_MUS_WALLPAPER_DELEGATE_MUS_H_ | 35 #endif // ASH_MUS_WALLPAPER_DELEGATE_MUS_H_ |
OLD | NEW |