OLD | NEW |
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 Loading... |
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_ |
OLD | NEW |