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_UI_VIEWS_ASH_LAUNCHER_CHROME_LAUNCHER_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_ASH_LAUNCHER_CHROME_LAUNCHER_DELEGATE_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_ASH_LAUNCHER_CHROME_LAUNCHER_DELEGATE_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_ASH_LAUNCHER_CHROME_LAUNCHER_DELEGATE_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 #include <string> | 10 #include <string> |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
68 // Initializes this ChromeLauncherDelegate. | 68 // Initializes this ChromeLauncherDelegate. |
69 void Init(); | 69 void Init(); |
70 | 70 |
71 // Returns the single ChromeLauncherDelegate instnace. | 71 // Returns the single ChromeLauncherDelegate instnace. |
72 static ChromeLauncherDelegate* instance() { return instance_; } | 72 static ChromeLauncherDelegate* instance() { return instance_; } |
73 | 73 |
74 // Registers the prefs used by ChromeLauncherDelegate. | 74 // Registers the prefs used by ChromeLauncherDelegate. |
75 static void RegisterUserPrefs(PrefService* user_prefs); | 75 static void RegisterUserPrefs(PrefService* user_prefs); |
76 | 76 |
77 // Creates a new tabbed item on the launcher for |updater|. | 77 // Creates a new tabbed item on the launcher for |updater|. |
78 ash::LauncherID CreateTabbedLauncherItem(LauncherUpdater* updater); | 78 ash::LauncherID CreateTabbedLauncherItem(LauncherUpdater* updater, |
79 bool is_private); | |
sky
2012/03/09 18:18:08
I don't like mysterious booleans. Use an enum.
Zachary Kuznia
2012/03/09 22:17:35
Done.
| |
79 | 80 |
80 // Creates a new app item on the launcher for |updater|. If there is an | 81 // Creates a new app item on the launcher for |updater|. If there is an |
81 // existing pinned app that isn't running on the launcher, its id is returned. | 82 // existing pinned app that isn't running on the launcher, its id is returned. |
82 ash::LauncherID CreateAppLauncherItem(LauncherUpdater* updater, | 83 ash::LauncherID CreateAppLauncherItem(LauncherUpdater* updater, |
83 const std::string& app_id, | 84 const std::string& app_id, |
84 AppType app_type); | 85 AppType app_type); |
85 | 86 |
86 // Converts an app item to a tabbed item. | 87 // Converts an app item to a tabbed item. |
87 void ConvertAppToTabbed(ash::LauncherID id); | 88 void ConvertAppToTabbed(ash::LauncherID id); |
88 | 89 |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
219 | 220 |
220 // Used to load the image for an app tab. | 221 // Used to load the image for an app tab. |
221 scoped_ptr<AppIconLoader> app_icon_loader_; | 222 scoped_ptr<AppIconLoader> app_icon_loader_; |
222 | 223 |
223 content::NotificationRegistrar registrar_; | 224 content::NotificationRegistrar registrar_; |
224 | 225 |
225 DISALLOW_COPY_AND_ASSIGN(ChromeLauncherDelegate); | 226 DISALLOW_COPY_AND_ASSIGN(ChromeLauncherDelegate); |
226 }; | 227 }; |
227 | 228 |
228 #endif // CHROME_BROWSER_UI_VIEWS_ASH_LAUNCHER_CHROME_LAUNCHER_DELEGATE_H_ | 229 #endif // CHROME_BROWSER_UI_VIEWS_ASH_LAUNCHER_CHROME_LAUNCHER_DELEGATE_H_ |
OLD | NEW |