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

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

Issue 2763103002: Move ImageDecoder to components/image_fetcher/content (Closed)
Patch Set: Rebased. Created 3 years, 9 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
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 #include "chrome/browser/chromeos/arc/wallpaper/arc_wallpaper_service.h" 5 #include "chrome/browser/chromeos/arc/wallpaper/arc_wallpaper_service.h"
6 6
7 #include <stdlib.h> 7 #include <stdlib.h>
8 8
9 #include <deque> 9 #include <deque>
10 10
11 #include "ash/common/wallpaper/wallpaper_controller.h" 11 #include "ash/common/wallpaper/wallpaper_controller.h"
12 #include "ash/shell.h" 12 #include "ash/shell.h"
13 #include "base/logging.h" 13 #include "base/logging.h"
14 #include "base/memory/ptr_util.h" 14 #include "base/memory/ptr_util.h"
15 #include "base/task_scheduler/post_task.h" 15 #include "base/task_scheduler/post_task.h"
16 #include "chrome/browser/chromeos/login/users/wallpaper/wallpaper_manager.h" 16 #include "chrome/browser/chromeos/login/users/wallpaper/wallpaper_manager.h"
17 #include "chrome/browser/image_decoder.h"
18 #include "components/arc/arc_bridge_service.h" 17 #include "components/arc/arc_bridge_service.h"
18 #include "components/image_fetcher/content/image_decoder.h"
19 #include "components/signin/core/account_id/account_id.h" 19 #include "components/signin/core/account_id/account_id.h"
20 #include "components/user_manager/user_manager.h" 20 #include "components/user_manager/user_manager.h"
21 #include "components/wallpaper/wallpaper_files_id.h" 21 #include "components/wallpaper/wallpaper_files_id.h"
22 #include "components/wallpaper/wallpaper_layout.h" 22 #include "components/wallpaper/wallpaper_layout.h"
23 #include "components/wallpaper/wallpaper_resizer.h" 23 #include "components/wallpaper/wallpaper_resizer.h"
24 #include "content/public/browser/browser_thread.h" 24 #include "content/public/browser/browser_thread.h"
25 #include "ui/gfx/codec/png_codec.h" 25 #include "ui/gfx/codec/png_codec.h"
26 #include "ui/gfx/geometry/size.h" 26 #include "ui/gfx/geometry/size.h"
27 #include "ui/gfx/image/image.h" 27 #include "ui/gfx/image/image.h"
28 #include "ui/gfx/image/image_skia.h" 28 #include "ui/gfx/image/image_skia.h"
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 arc_bridge_service()->wallpaper(), OnWallpaperChanged); 234 arc_bridge_service()->wallpaper(), OnWallpaperChanged);
235 const ash::WallpaperController* const wc = GetWallpaperController(); 235 const ash::WallpaperController* const wc = GetWallpaperController();
236 const int32_t android_id = 236 const int32_t android_id =
237 wc ? android_id_store_->Pop(wc->GetWallpaperOriginalImageId()) : -1; 237 wc ? android_id_store_->Pop(wc->GetWallpaperOriginalImageId()) : -1;
238 if (!wallpaper_instance) 238 if (!wallpaper_instance)
239 return; 239 return;
240 wallpaper_instance->OnWallpaperChanged(android_id); 240 wallpaper_instance->OnWallpaperChanged(android_id);
241 } 241 }
242 242
243 } // namespace arc 243 } // namespace arc
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/app_mode/kiosk_app_data.cc ('k') | chrome/browser/chromeos/extensions/wallpaper_function_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698