OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_H_ |
6 #define CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_H_ | 6 #define CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
228 | 228 |
229 // Get the title for the applicatoin list entry for |web_contents|. | 229 // Get the title for the applicatoin list entry for |web_contents|. |
230 // If |web_contents| has not loaded, returns "Net Tab". | 230 // If |web_contents| has not loaded, returns "Net Tab". |
231 virtual base::string16 GetAppListTitle( | 231 virtual base::string16 GetAppListTitle( |
232 content::WebContents* web_contents) const = 0; | 232 content::WebContents* web_contents) const = 0; |
233 | 233 |
234 // Returns the LauncherItemController of BrowserShortcut. | 234 // Returns the LauncherItemController of BrowserShortcut. |
235 virtual BrowserShortcutLauncherItemController* | 235 virtual BrowserShortcutLauncherItemController* |
236 GetBrowserShortcutLauncherItemController() = 0; | 236 GetBrowserShortcutLauncherItemController() = 0; |
237 | 237 |
| 238 // Apply the Chrome badge to the browser short cut icon if applicable. |
| 239 virtual void MayUpdateBrowserShortcutItem() = 0; |
| 240 |
238 virtual LauncherItemController* GetLauncherItemController( | 241 virtual LauncherItemController* GetLauncherItemController( |
239 const ash::ShelfID id) = 0; | 242 const ash::ShelfID id) = 0; |
240 | 243 |
241 // Returns true if |browser| is owned by the active user. | 244 // Returns true if |browser| is owned by the active user. |
242 virtual bool IsBrowserFromActiveUser(Browser* browser) = 0; | 245 virtual bool IsBrowserFromActiveUser(Browser* browser) = 0; |
243 | 246 |
244 // Check if the shelf visibility (location, visibility) will change with a new | 247 // Check if the shelf visibility (location, visibility) will change with a new |
245 // user profile or not. However, since the full visibility calculation of the | 248 // user profile or not. However, since the full visibility calculation of the |
246 // shelf cannot be performed here, this is only a probability used for | 249 // shelf cannot be performed here, this is only a probability used for |
247 // animation predictions. | 250 // animation predictions. |
(...skipping 14 matching lines...) Expand all Loading... |
262 protected: | 265 protected: |
263 ChromeLauncherController(); | 266 ChromeLauncherController(); |
264 | 267 |
265 private: | 268 private: |
266 static ChromeLauncherController* instance_; | 269 static ChromeLauncherController* instance_; |
267 | 270 |
268 DISALLOW_COPY_AND_ASSIGN(ChromeLauncherController); | 271 DISALLOW_COPY_AND_ASSIGN(ChromeLauncherController); |
269 }; | 272 }; |
270 | 273 |
271 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_H_ | 274 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_H_ |
OLD | NEW |