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

Unified Diff: components/arc/set_wallpaper_delegate.h

Issue 2264743002: cheets: implement cros side of WallpaperManagerService. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 3 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
Index: components/arc/set_wallpaper_delegate.h
diff --git a/components/arc/set_wallpaper_delegate.h b/components/arc/set_wallpaper_delegate.h
index 28e5ed038c5248a219b2b3f78e1294c8d4a7cd5a..c38856ce66ccc489a25e8a60431d7a635dc2deff 100644
--- a/components/arc/set_wallpaper_delegate.h
+++ b/components/arc/set_wallpaper_delegate.h
@@ -12,12 +12,22 @@
namespace arc {
// Delegate to allow setting the wallpaper.
+// TODO(muyuanli): This class will be removed once ArcIntentHelper migrates to
+// WallpaperManager API.
class SetWallpaperDelegate {
public:
virtual ~SetWallpaperDelegate() = default;
+ static SetWallpaperDelegate* GetInstance() { return instance_; }
Luis Héctor Chávez 2016/09/08 19:14:24 nit: Chromium style guide prefers having these inl
Muyuan 2016/09/08 21:05:25 Done.
+ static void SetSetWallpaperDelegate(SetWallpaperDelegate* instance) {
+ instance_ = instance;
+ }
+
// Sets an image represented in JPEG format as the wallpaper.
- virtual void SetWallpaper(std::vector<uint8_t> jpeg_data) = 0;
+ virtual void SetWallpaperJpeg(const std::vector<uint8_t>& jpeg_data) = 0;
+
+ private:
+ static SetWallpaperDelegate* instance_;
};
} // namespace arc

Powered by Google App Engine
This is Rietveld 408576698