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

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: Move unrelated style changes to a separate CL 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 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 virtual void OnWallpaperAnimationFinished(const AccountId& account_id) = 0; 197 virtual void OnWallpaperAnimationFinished(const AccountId& account_id) = 0;
198 virtual void OnColorCalculationComplete() {}
xiyuan 2017/06/13 23:23:48 Document this and other methods in this interface.
Wenzhao (Colin) Zang 2017/06/14 00:44:50 I've tried my best to add comments to the other th
198 virtual void OnUpdateWallpaperForTesting() {} 199 virtual void OnUpdateWallpaperForTesting() {}
199 virtual void OnPendingListEmptyForTesting() {} 200 virtual void OnPendingListEmptyForTesting() {}
200 }; 201 };
201 202
202 // set path IDs for used directories 203 // set path IDs for used directories
203 static void SetPathIds(int dir_user_data_enum, 204 static void SetPathIds(int dir_user_data_enum,
204 int dir_chromeos_wallpapers_enum, 205 int dir_chromeos_wallpapers_enum,
205 int dir_chromeos_custom_wallpapers_enum); 206 int dir_chromeos_custom_wallpapers_enum);
206 207
207 // Returns custom wallpaper directory by appending corresponding |sub_dir|. 208 // Returns custom wallpaper directory by appending corresponding |sub_dir|.
(...skipping 424 matching lines...) Expand 10 before | Expand all | Expand 10 after
632 633
633 base::WeakPtrFactory<WallpaperManagerBase> weak_factory_; 634 base::WeakPtrFactory<WallpaperManagerBase> weak_factory_;
634 635
635 private: 636 private:
636 DISALLOW_COPY_AND_ASSIGN(WallpaperManagerBase); 637 DISALLOW_COPY_AND_ASSIGN(WallpaperManagerBase);
637 }; 638 };
638 639
639 } // namespace wallpaper 640 } // namespace wallpaper
640 641
641 #endif // COMPONENTS_WALLPAPER_WALLPAPER_MANAGER_BASE_H_ 642 #endif // COMPONENTS_WALLPAPER_WALLPAPER_MANAGER_BASE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698