| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 COMPONENTS_WALLPAPER_WALLPAPER_MANAGER_BASE_H_ | 5 #ifndef COMPONENTS_WALLPAPER_WALLPAPER_MANAGER_BASE_H_ |
| 6 #define COMPONENTS_WALLPAPER_WALLPAPER_MANAGER_BASE_H_ | 6 #define COMPONENTS_WALLPAPER_WALLPAPER_MANAGER_BASE_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <deque> | 10 #include <deque> |
| (...skipping 373 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 384 const WallpaperInfo& info, | 384 const WallpaperInfo& info, |
| 385 const base::FilePath& wallpaper_path, | 385 const base::FilePath& wallpaper_path, |
| 386 bool update_wallpaper, | 386 bool update_wallpaper, |
| 387 const scoped_refptr<base::SingleThreadTaskRunner>& reply_task_runner, | 387 const scoped_refptr<base::SingleThreadTaskRunner>& reply_task_runner, |
| 388 MovableOnDestroyCallbackHolder on_finish, | 388 MovableOnDestroyCallbackHolder on_finish, |
| 389 base::WeakPtr<WallpaperManagerBase> weak_ptr); | 389 base::WeakPtr<WallpaperManagerBase> weak_ptr); |
| 390 | 390 |
| 391 // Resize and save customized default wallpaper. | 391 // Resize and save customized default wallpaper. |
| 392 static void ResizeCustomizedDefaultWallpaper( | 392 static void ResizeCustomizedDefaultWallpaper( |
| 393 scoped_ptr<gfx::ImageSkia> image, | 393 scoped_ptr<gfx::ImageSkia> image, |
| 394 const user_manager::UserImage::Bytes& image_bytes, | |
| 395 const CustomizedWallpaperRescaledFiles* rescaled_files, | 394 const CustomizedWallpaperRescaledFiles* rescaled_files, |
| 396 bool* success, | 395 bool* success, |
| 397 gfx::ImageSkia* small_wallpaper_image, | 396 gfx::ImageSkia* small_wallpaper_image, |
| 398 gfx::ImageSkia* large_wallpaper_image); | 397 gfx::ImageSkia* large_wallpaper_image); |
| 399 | 398 |
| 400 // Initialize wallpaper for the specified user to default and saves this | 399 // Initialize wallpaper for the specified user to default and saves this |
| 401 // settings in local state. | 400 // settings in local state. |
| 402 virtual void InitInitialUserWallpaper(const AccountId& account_id, | 401 virtual void InitInitialUserWallpaper(const AccountId& account_id, |
| 403 bool is_persistent); | 402 bool is_persistent); |
| 404 | 403 |
| (...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 604 | 603 |
| 605 base::WeakPtrFactory<WallpaperManagerBase> weak_factory_; | 604 base::WeakPtrFactory<WallpaperManagerBase> weak_factory_; |
| 606 | 605 |
| 607 private: | 606 private: |
| 608 DISALLOW_COPY_AND_ASSIGN(WallpaperManagerBase); | 607 DISALLOW_COPY_AND_ASSIGN(WallpaperManagerBase); |
| 609 }; | 608 }; |
| 610 | 609 |
| 611 } // namespace wallpaper | 610 } // namespace wallpaper |
| 612 | 611 |
| 613 #endif // COMPONENTS_WALLPAPER_WALLPAPER_MANAGER_BASE_H_ | 612 #endif // COMPONENTS_WALLPAPER_WALLPAPER_MANAGER_BASE_H_ |
| OLD | NEW |