Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(375)

Unified Diff: ash/sysui/user_wallpaper_delegate_mus.h

Issue 1984433002: Hook up Chrome's wallpaper picker for mash. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add explicit WallpaperLayout enum conversion functions. Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/sysui/sysui_application.cc ('k') | ash/sysui/user_wallpaper_delegate_mus.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_
« no previous file with comments | « ash/sysui/sysui_application.cc ('k') | ash/sysui/user_wallpaper_delegate_mus.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698