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

Unified Diff: chrome/browser/chromeos/arc/arc_wallpaper_service.h

Issue 2320323002: Revert of cheets: implement cros side of WallpaperManagerService. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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: chrome/browser/chromeos/arc/arc_wallpaper_service.h
diff --git a/chrome/browser/chromeos/arc/arc_wallpaper_service.h b/chrome/browser/chromeos/arc/arc_wallpaper_service.h
deleted file mode 100644
index 5af0150bcde4db8236eb0508ec36f1c8d4a371f4..0000000000000000000000000000000000000000
--- a/chrome/browser/chromeos/arc/arc_wallpaper_service.h
+++ /dev/null
@@ -1,59 +0,0 @@
-// 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 CHROME_BROWSER_CHROMEOS_ARC_ARC_WALLPAPER_SERVICE_H_
-#define CHROME_BROWSER_CHROMEOS_ARC_ARC_WALLPAPER_SERVICE_H_
-
-#include <stdint.h>
-
-#include <memory>
-#include <set>
-#include <vector>
-
-#include "base/macros.h"
-#include "chrome/browser/image_decoder.h"
-#include "components/arc/arc_service.h"
-#include "components/arc/common/wallpaper.mojom.h"
-#include "components/arc/instance_holder.h"
-#include "components/arc/set_wallpaper_delegate.h"
-#include "mojo/public/cpp/bindings/binding.h"
-
-class SkBitmap;
-
-namespace arc {
-
-// Lives on the UI thread.
-class ArcWallpaperService
- : public ArcService,
- public SetWallpaperDelegate,
- public ImageDecoder::ImageRequest,
- public InstanceHolder<mojom::WallpaperInstance>::Observer,
- public mojom::WallpaperHost {
- public:
- explicit ArcWallpaperService(ArcBridgeService* bridge_service);
- ~ArcWallpaperService() override;
-
- // InstanceHolder<mojom::WallpaperInstance>::Observer overrides.
- void OnInstanceReady() override;
-
- // mojom::WallpaperHost overrides.
- // TODO(muyuanli): change callback prototype when use_new_wrapper_types is
- // updated and merge them with the functions below.
- void SetWallpaper(mojo::Array<uint8_t> png_data) override;
- void GetWallpaper(const GetWallpaperCallback& callback) override;
-
- // SetWallpaperDelegate implementation.
- void SetWallpaperJpeg(const std::vector<uint8_t>& jpeg_data) override;
- // ImageDecoder::ImageRequest implementation.
- void OnImageDecoded(const SkBitmap& bitmap) override;
- void OnDecodeImageFailed() override;
-
- private:
- mojo::Binding<mojom::WallpaperHost> binding_;
- DISALLOW_COPY_AND_ASSIGN(ArcWallpaperService);
-};
-
-} // namespace arc
-
-#endif // CHROME_BROWSER_CHROMEOS_ARC_ARC_WALLPAPER_SERVICE_H_
« no previous file with comments | « chrome/browser/chromeos/arc/arc_wallpaper_handler.cc ('k') | chrome/browser/chromeos/arc/arc_wallpaper_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698