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

Side by Side Diff: chrome/browser/chromeos/arc/wallpaper/arc_wallpaper_service.h

Issue 2332063004: cheets: remove setWallpaper from ArcIntentHelper. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: reduce setting wallpaper latency. Created 4 years, 1 month 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
« no previous file with comments | « no previous file | chrome/browser/chromeos/arc/wallpaper/arc_wallpaper_service.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_CHROMEOS_ARC_WALLPAPER_ARC_WALLPAPER_SERVICE_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_ARC_WALLPAPER_ARC_WALLPAPER_SERVICE_H_
6 #define CHROME_BROWSER_CHROMEOS_ARC_WALLPAPER_ARC_WALLPAPER_SERVICE_H_ 6 #define CHROME_BROWSER_CHROMEOS_ARC_WALLPAPER_ARC_WALLPAPER_SERVICE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 20 matching lines...) Expand all
31 explicit ArcWallpaperService(ArcBridgeService* bridge_service); 31 explicit ArcWallpaperService(ArcBridgeService* bridge_service);
32 ~ArcWallpaperService() override; 32 ~ArcWallpaperService() override;
33 33
34 // InstanceHolder<mojom::WallpaperInstance>::Observer overrides. 34 // InstanceHolder<mojom::WallpaperInstance>::Observer overrides.
35 void OnInstanceReady() override; 35 void OnInstanceReady() override;
36 void OnInstanceClosed() override; 36 void OnInstanceClosed() override;
37 37
38 // mojom::WallpaperHost overrides. 38 // mojom::WallpaperHost overrides.
39 // TODO(muyuanli): change callback prototype when use_new_wrapper_types is 39 // TODO(muyuanli): change callback prototype when use_new_wrapper_types is
40 // updated and merge them with the functions below. 40 // updated and merge them with the functions below.
41 void SetWallpaper(const std::vector<uint8_t>& png_data) override; 41 void SetWallpaper(const std::vector<uint8_t>& data) override;
42 void GetWallpaper(const GetWallpaperCallback& callback) override; 42 void GetWallpaper(const GetWallpaperCallback& callback) override;
43 43
44 // ImageDecoder::ImageRequest implementation. 44 // ImageDecoder::ImageRequest implementation.
45 void OnImageDecoded(const SkBitmap& bitmap) override; 45 void OnImageDecoded(const SkBitmap& bitmap) override;
46 void OnDecodeImageFailed() override; 46 void OnDecodeImageFailed() override;
47 47
48 // WallpaperControllerObserver implementation. 48 // WallpaperControllerObserver implementation.
49 void OnWallpaperDataChanged() override; 49 void OnWallpaperDataChanged() override;
50 50
51 private: 51 private:
52 mojo::Binding<mojom::WallpaperHost> binding_; 52 mojo::Binding<mojom::WallpaperHost> binding_;
53 DISALLOW_COPY_AND_ASSIGN(ArcWallpaperService); 53 DISALLOW_COPY_AND_ASSIGN(ArcWallpaperService);
54 }; 54 };
55 55
56 } // namespace arc 56 } // namespace arc
57 57
58 #endif // CHROME_BROWSER_CHROMEOS_ARC_WALLPAPER_ARC_WALLPAPER_SERVICE_H_ 58 #endif // CHROME_BROWSER_CHROMEOS_ARC_WALLPAPER_ARC_WALLPAPER_SERVICE_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/arc/wallpaper/arc_wallpaper_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698