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

Side by Side Diff: chrome/browser/chromeos/login/users/wallpaper/wallpaper_manager.h

Issue 449913002: Add Ash.Wallpaper.{DefaultIndex,Type} to histograms.xml. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Cosmetic fix. Created 6 years, 4 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
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/users/wallpaper/wallpaper_manager.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 CHROME_BROWSER_CHROMEOS_LOGIN_USERS_WALLPAPER_WALLPAPER_MANAGER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_USERS_WALLPAPER_WALLPAPER_MANAGER_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_USERS_WALLPAPER_WALLPAPER_MANAGER_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_USERS_WALLPAPER_WALLPAPER_MANAGER_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after
355 private: 355 private:
356 friend class TestApi; 356 friend class TestApi;
357 friend class PendingWallpaper; 357 friend class PendingWallpaper;
358 friend class WallpaperManagerBrowserTest; 358 friend class WallpaperManagerBrowserTest;
359 friend class WallpaperManagerBrowserTestDefaultWallpaper; 359 friend class WallpaperManagerBrowserTestDefaultWallpaper;
360 friend class WallpaperManagerPolicyTest; 360 friend class WallpaperManagerPolicyTest;
361 361
362 typedef std::map<std::string, gfx::ImageSkia> CustomWallpaperMap; 362 typedef std::map<std::string, gfx::ImageSkia> CustomWallpaperMap;
363 363
364 364
365 // Record data for User Metrics Analysis.
366 static void RecordUma(user_manager::User::WallpaperType type, int index);
367
368 // Saves original custom wallpaper to |path| (absolute path) on filesystem 365 // Saves original custom wallpaper to |path| (absolute path) on filesystem
369 // and starts resizing operation of the custom wallpaper if necessary. 366 // and starts resizing operation of the custom wallpaper if necessary.
370 static void SaveCustomWallpaper(const std::string& user_id_hash, 367 static void SaveCustomWallpaper(const std::string& user_id_hash,
371 const base::FilePath& path, 368 const base::FilePath& path,
372 ash::WallpaperLayout layout, 369 ash::WallpaperLayout layout,
373 scoped_ptr<gfx::ImageSkia> image); 370 scoped_ptr<gfx::ImageSkia> image);
374 371
375 // Moves custom wallpapers from |user_id| directory to |user_id_hash| 372 // Moves custom wallpapers from |user_id| directory to |user_id_hash|
376 // directory. 373 // directory.
377 static void MoveCustomWallpapersOnWorker( 374 static void MoveCustomWallpapersOnWorker(
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after
625 622
626 // Current decoded default image is stored in cache. 623 // Current decoded default image is stored in cache.
627 scoped_ptr<user_manager::UserImage> default_wallpaper_image_; 624 scoped_ptr<user_manager::UserImage> default_wallpaper_image_;
628 625
629 DISALLOW_COPY_AND_ASSIGN(WallpaperManager); 626 DISALLOW_COPY_AND_ASSIGN(WallpaperManager);
630 }; 627 };
631 628
632 } // namespace chromeos 629 } // namespace chromeos
633 630
634 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USERS_WALLPAPER_WALLPAPER_MANAGER_H_ 631 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USERS_WALLPAPER_WALLPAPER_MANAGER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/users/wallpaper/wallpaper_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698