Index: ash/sysui/user_wallpaper_delegate_mus.h |
diff --git a/ash/default_user_wallpaper_delegate.h b/ash/sysui/user_wallpaper_delegate_mus.h |
similarity index 51% |
copy from ash/default_user_wallpaper_delegate.h |
copy to ash/sysui/user_wallpaper_delegate_mus.h |
index 80e20b1bbf33a108da5d738e42596a20472426f4..94261048f8164e409d5b1eb7ea60dd9975e72971 100644 |
--- a/ash/default_user_wallpaper_delegate.h |
+++ b/ash/sysui/user_wallpaper_delegate_mus.h |
@@ -1,22 +1,24 @@ |
-// Copyright 2013 The Chromium Authors. All rights reserved. |
+// Copyright 2016 The Chromium Authors. All rights reserved. |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
-#ifndef ASH_DEFAULT_USER_WALLPAPER_DELEGATE_H_ |
-#define ASH_DEFAULT_USER_WALLPAPER_DELEGATE_H_ |
+#ifndef ASH_SYSUI_USER_WALLPAPER_DELEGATE_MUS_H_ |
+#define ASH_SYSUI_USER_WALLPAPER_DELEGATE_MUS_H_ |
-#include "ash/ash_export.h" |
#include "ash/desktop_background/user_wallpaper_delegate.h" |
-#include "base/compiler_specific.h" |
+#include "ash/sysui/public/interfaces/wallpaper.mojom.h" |
#include "base/macros.h" |
namespace ash { |
+namespace sysui { |
-class ASH_EXPORT DefaultUserWallpaperDelegate : public UserWallpaperDelegate { |
+class UserWallpaperDelegateMus : public UserWallpaperDelegate, |
+ public mojom::WallpaperController { |
public: |
- DefaultUserWallpaperDelegate() {} |
- ~DefaultUserWallpaperDelegate() override {} |
+ UserWallpaperDelegateMus(); |
+ ~UserWallpaperDelegateMus() override; |
+ private: |
// UserWallpaperDelegate overrides: |
int GetAnimationType() override; |
int GetAnimationDurationOverride() override; |
@@ -29,10 +31,14 @@ class ASH_EXPORT DefaultUserWallpaperDelegate : public UserWallpaperDelegate { |
void OnWallpaperAnimationFinished() override; |
void OnWallpaperBootAnimationFinished() override; |
- private: |
- DISALLOW_COPY_AND_ASSIGN(DefaultUserWallpaperDelegate); |
+ // mojom::WallpaperController overrides: |
+ void SetWallpaper(const SkBitmap& wallpaper, |
+ mojom::WallpaperLayout layout) override; |
+ |
+ DISALLOW_COPY_AND_ASSIGN(UserWallpaperDelegateMus); |
}; |
+} // namespace sysui |
} // namespace ash |
-#endif // ASH_DEFAULT_USER_WALLPAPER_DELEGATE_H_ |
+#endif // ASH_SYSUI_USER_WALLPAPER_DELEGATE_MUS_H_ |