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

Side by Side Diff: components/wallpaper/wallpaper_manager_base.h

Issue 1747843002: Rename raw_image() to image_bytes() in UserImage (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address comments Created 4 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 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 366 matching lines...) Expand 10 before | Expand all | Expand 10 after
377 const WallpaperInfo& info, 377 const WallpaperInfo& info,
378 const base::FilePath& wallpaper_path, 378 const base::FilePath& wallpaper_path,
379 bool update_wallpaper, 379 bool update_wallpaper,
380 const scoped_refptr<base::SingleThreadTaskRunner>& reply_task_runner, 380 const scoped_refptr<base::SingleThreadTaskRunner>& reply_task_runner,
381 MovableOnDestroyCallbackHolder on_finish, 381 MovableOnDestroyCallbackHolder on_finish,
382 base::WeakPtr<WallpaperManagerBase> weak_ptr); 382 base::WeakPtr<WallpaperManagerBase> weak_ptr);
383 383
384 // Resize and save customized default wallpaper. 384 // Resize and save customized default wallpaper.
385 static void ResizeCustomizedDefaultWallpaper( 385 static void ResizeCustomizedDefaultWallpaper(
386 scoped_ptr<gfx::ImageSkia> image, 386 scoped_ptr<gfx::ImageSkia> image,
387 const user_manager::UserImage::RawImage& raw_image, 387 const user_manager::UserImage::Bytes& image_bytes,
388 const CustomizedWallpaperRescaledFiles* rescaled_files, 388 const CustomizedWallpaperRescaledFiles* rescaled_files,
389 bool* success, 389 bool* success,
390 gfx::ImageSkia* small_wallpaper_image, 390 gfx::ImageSkia* small_wallpaper_image,
391 gfx::ImageSkia* large_wallpaper_image); 391 gfx::ImageSkia* large_wallpaper_image);
392 392
393 // Initialize wallpaper for the specified user to default and saves this 393 // Initialize wallpaper for the specified user to default and saves this
394 // settings in local state. 394 // settings in local state.
395 virtual void InitInitialUserWallpaper(const AccountId& account_id, 395 virtual void InitInitialUserWallpaper(const AccountId& account_id,
396 bool is_persistent); 396 bool is_persistent);
397 397
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
597 597
598 base::WeakPtrFactory<WallpaperManagerBase> weak_factory_; 598 base::WeakPtrFactory<WallpaperManagerBase> weak_factory_;
599 599
600 private: 600 private:
601 DISALLOW_COPY_AND_ASSIGN(WallpaperManagerBase); 601 DISALLOW_COPY_AND_ASSIGN(WallpaperManagerBase);
602 }; 602 };
603 603
604 } // namespace wallpaper 604 } // namespace wallpaper
605 605
606 #endif // COMPONENTS_WALLPAPER_WALLPAPER_MANAGER_BASE_H_ 606 #endif // COMPONENTS_WALLPAPER_WALLPAPER_MANAGER_BASE_H_
OLDNEW
« no previous file with comments | « components/user_manager/user_image/user_image.cc ('k') | components/wallpaper/wallpaper_manager_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698