OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_PROFILES_PROFILE_SHORTCUT_MANAGER_WIN_H_ | 5 #ifndef CHROME_BROWSER_PROFILES_PROFILE_SHORTCUT_MANAGER_WIN_H_ |
6 #define CHROME_BROWSER_PROFILES_PROFILE_SHORTCUT_MANAGER_WIN_H_ | 6 #define CHROME_BROWSER_PROFILES_PROFILE_SHORTCUT_MANAGER_WIN_H_ |
7 | 7 |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
9 #include "chrome/browser/profiles/profile_shortcut_manager.h" | 9 #include "chrome/browser/profiles/profile_shortcut_manager.h" |
10 #include "content/public/browser/notification_observer.h" | 10 #include "content/public/browser/notification_observer.h" |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
76 const base::FilePath& profile_path, | 76 const base::FilePath& profile_path, |
77 const base::string16& old_profile_name) override; | 77 const base::string16& old_profile_name) override; |
78 virtual void OnProfileAvatarChanged( | 78 virtual void OnProfileAvatarChanged( |
79 const base::FilePath& profile_path) override; | 79 const base::FilePath& profile_path) override; |
80 | 80 |
81 // content::NotificationObserver implementation: | 81 // content::NotificationObserver implementation: |
82 virtual void Observe(int type, | 82 virtual void Observe(int type, |
83 const content::NotificationSource& source, | 83 const content::NotificationSource& source, |
84 const content::NotificationDetails& details) override; | 84 const content::NotificationDetails& details) override; |
85 | 85 |
86 private: | 86 // Returns the avatar icons for the given profile that should be used for |
87 // badging. These icons will have correct transparency. | |
noms (inactive)
2014/10/30 17:39:08
I would maybe change the "correct transparency" bi
Roger Tawa OOO till Jul 10th
2014/10/31 19:44:39
Removed this code from CL.
| |
88 static void GetBadgingAvatarImages(ProfileManager* profile_manager, | |
89 const base::FilePath& profile_path, | |
90 gfx::Image* image_1x, | |
91 gfx::Image* image_2x); | |
92 | |
93 private: | |
87 // Gives the profile path of an alternate profile than |profile_path|. | 94 // Gives the profile path of an alternate profile than |profile_path|. |
88 // Must only be called when the number profiles is 2. | 95 // Must only be called when the number profiles is 2. |
89 base::FilePath GetOtherProfilePath(const base::FilePath& profile_path); | 96 base::FilePath GetOtherProfilePath(const base::FilePath& profile_path); |
90 | 97 |
91 // Creates or updates shortcuts for the profile at |profile_path| according | 98 // Creates or updates shortcuts for the profile at |profile_path| according |
92 // to the specified |create_mode| and |action|. This will always involve | 99 // to the specified |create_mode| and |action|. This will always involve |
93 // creating or updating the icon file for this profile. | 100 // creating or updating the icon file for this profile. |
94 void CreateOrUpdateShortcutsForProfileAtPath( | 101 void CreateOrUpdateShortcutsForProfileAtPath( |
95 const base::FilePath& profile_path, | 102 const base::FilePath& profile_path, |
96 CreateOrUpdateMode create_mode, | 103 CreateOrUpdateMode create_mode, |
97 NonProfileShortcutAction action); | 104 NonProfileShortcutAction action); |
98 | 105 |
99 ProfileManager* profile_manager_; | 106 ProfileManager* profile_manager_; |
100 | 107 |
101 content::NotificationRegistrar registrar_; | 108 content::NotificationRegistrar registrar_; |
102 | 109 |
103 DISALLOW_COPY_AND_ASSIGN(ProfileShortcutManagerWin); | 110 DISALLOW_COPY_AND_ASSIGN(ProfileShortcutManagerWin); |
104 }; | 111 }; |
105 | 112 |
106 #endif // CHROME_BROWSER_PROFILES_PROFILE_SHORTCUT_MANAGER_WIN_H_ | 113 #endif // CHROME_BROWSER_PROFILES_PROFILE_SHORTCUT_MANAGER_WIN_H_ |
OLD | NEW |