| Index: ash/mus/user_wallpaper_delegate_mus.h
|
| diff --git a/ash/default_user_wallpaper_delegate.h b/ash/mus/user_wallpaper_delegate_mus.h
|
| similarity index 53%
|
| copy from ash/default_user_wallpaper_delegate.h
|
| copy to ash/mus/user_wallpaper_delegate_mus.h
|
| index 80e20b1bbf33a108da5d738e42596a20472426f4..c3aa0d483de189f5bfbd6bccfca4b4b63fd8bcc4 100644
|
| --- a/ash/default_user_wallpaper_delegate.h
|
| +++ b/ash/mus/user_wallpaper_delegate_mus.h
|
| @@ -1,22 +1,23 @@
|
| -// 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_USER_WALLPAPER_DELEGATE_MUS_H_
|
| +#define ASH_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/mus/public/interfaces/wallpaper.mojom.h"
|
| #include "base/macros.h"
|
|
|
| namespace ash {
|
|
|
| -class ASH_EXPORT DefaultUserWallpaperDelegate : public UserWallpaperDelegate {
|
| +class UserWallpaperDelegateMus : public UserWallpaperDelegate,
|
| + public mus::mojom::WallpaperController {
|
| public:
|
| - DefaultUserWallpaperDelegate() {}
|
| - ~DefaultUserWallpaperDelegate() override {}
|
| + UserWallpaperDelegateMus();
|
| + ~UserWallpaperDelegateMus() override;
|
|
|
| + private:
|
| // UserWallpaperDelegate overrides:
|
| int GetAnimationType() override;
|
| int GetAnimationDurationOverride() override;
|
| @@ -29,10 +30,13 @@ class ASH_EXPORT DefaultUserWallpaperDelegate : public UserWallpaperDelegate {
|
| void OnWallpaperAnimationFinished() override;
|
| void OnWallpaperBootAnimationFinished() override;
|
|
|
| - private:
|
| - DISALLOW_COPY_AND_ASSIGN(DefaultUserWallpaperDelegate);
|
| + // mus::mojom::WallpaperController overrides:
|
| + void SetWallpaper(skia::mojom::BitmapPtr wallpaper,
|
| + mus::mojom::WallpaperLayout layout) override;
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(UserWallpaperDelegateMus);
|
| };
|
|
|
| } // namespace ash
|
|
|
| -#endif // ASH_DEFAULT_USER_WALLPAPER_DELEGATE_H_
|
| +#endif // ASH_USER_WALLPAPER_DELEGATE_MUS_H_
|
|
|