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

Side by Side Diff: chrome/browser/chromeos/arc/arc_wallpaper_handler.h

Issue 2264743002: cheets: implement cros side of WallpaperManagerService. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: change instance getter / setter in SetWallpaperDelegate to snake_case. 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 unified diff | Download patch
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_CHROMEOS_ARC_ARC_WALLPAPER_HANDLER_H_
6 #define CHROME_BROWSER_CHROMEOS_ARC_ARC_WALLPAPER_HANDLER_H_
7
8 #include <stdint.h>
9
10 #include <memory>
11 #include <set>
12 #include <vector>
13
14 #include "base/macros.h"
15 #include "chrome/browser/image_decoder.h"
16 #include "components/arc/set_wallpaper_delegate.h"
17
18 class SkBitmap;
19
20 namespace arc {
21
22 // Lives on the UI thread.
23 class ArcWallpaperHandler : public SetWallpaperDelegate,
24 public ImageDecoder::ImageRequest {
25 public:
26 ArcWallpaperHandler();
27 ~ArcWallpaperHandler() override;
28
29 // SetWallpaperDelegate implementation.
30 void SetWallpaper(std::vector<uint8_t> jpeg_data) override;
31
32 // ImageDecoder::ImageRequest implementation.
33 void OnImageDecoded(const SkBitmap& bitmap) override;
34 void OnDecodeImageFailed() override;
35
36 private:
37 DISALLOW_COPY_AND_ASSIGN(ArcWallpaperHandler);
38 };
39
40 } // namespace arc
41
42 #endif // CHROME_BROWSER_CHROMEOS_ARC_ARC_WALLPAPER_HANDLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/arc/arc_service_launcher.cc ('k') | chrome/browser/chromeos/arc/arc_wallpaper_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698