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

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

Issue 2931063004: Extract colors from wallpaper and dynamically update login screen overlay (Closed)
Patch Set: Will clean up this CL when crbug.com/733709 is fixed Created 3 years, 6 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 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 187
188 private: 188 private:
189 WallpaperManagerBase* wallpaper_manager_; // not owned 189 WallpaperManagerBase* wallpaper_manager_; // not owned
190 190
191 DISALLOW_COPY_AND_ASSIGN(TestApi); 191 DISALLOW_COPY_AND_ASSIGN(TestApi);
192 }; 192 };
193 193
194 class Observer { 194 class Observer {
195 public: 195 public:
196 virtual ~Observer() {} 196 virtual ~Observer() {}
197 // Notified when the wallpaper animation finishes.
197 virtual void OnWallpaperAnimationFinished(const AccountId& account_id) = 0; 198 virtual void OnWallpaperAnimationFinished(const AccountId& account_id) = 0;
199 // Notified when the wallpaper is updated and the color calculation results
200 // change.
201 virtual void OnWallpaperColorsChanged() {}
202 // Notified when the wallpaper is updated.
198 virtual void OnUpdateWallpaperForTesting() {} 203 virtual void OnUpdateWallpaperForTesting() {}
204 // Notified when the wallpaper pending list is empty.
199 virtual void OnPendingListEmptyForTesting() {} 205 virtual void OnPendingListEmptyForTesting() {}
200 }; 206 };
201 207
202 // set path IDs for used directories 208 // set path IDs for used directories
203 static void SetPathIds(int dir_user_data_enum, 209 static void SetPathIds(int dir_user_data_enum,
204 int dir_chromeos_wallpapers_enum, 210 int dir_chromeos_wallpapers_enum,
205 int dir_chromeos_custom_wallpapers_enum); 211 int dir_chromeos_custom_wallpapers_enum);
206 212
207 // Returns custom wallpaper directory by appending corresponding |sub_dir|. 213 // Returns custom wallpaper directory by appending corresponding |sub_dir|.
208 static base::FilePath GetCustomWallpaperDir(const char* sub_dir); 214 static base::FilePath GetCustomWallpaperDir(const char* sub_dir);
(...skipping 422 matching lines...) Expand 10 before | Expand all | Expand 10 after
631 std::unique_ptr<user_manager::UserImage> default_wallpaper_image_; 637 std::unique_ptr<user_manager::UserImage> default_wallpaper_image_;
632 638
633 base::WeakPtrFactory<WallpaperManagerBase> weak_factory_; 639 base::WeakPtrFactory<WallpaperManagerBase> weak_factory_;
634 640
635 private: 641 private:
636 DISALLOW_COPY_AND_ASSIGN(WallpaperManagerBase); 642 DISALLOW_COPY_AND_ASSIGN(WallpaperManagerBase);
637 }; 643 };
638 644
639 } // namespace wallpaper 645 } // namespace wallpaper
640 646
641 #endif // COMPONENTS_WALLPAPER_WALLPAPER_MANAGER_BASE_H_ 647 #endif // COMPONENTS_WALLPAPER_WALLPAPER_MANAGER_BASE_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/chromeos/login/signin_screen_handler.cc ('k') | ui/login/account_picker/md_screen_account_picker.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698