| 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 <list> | 8 #include <list> |
| 9 #include <map> | 9 #include <map> |
| 10 #include <set> | 10 #include <set> |
| (...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 353 | 353 |
| 354 // Get the favicon for the application list entry for |web_contents|. | 354 // Get the favicon for the application list entry for |web_contents|. |
| 355 // Note that for incognito windows the incognito icon will be returned. | 355 // Note that for incognito windows the incognito icon will be returned. |
| 356 // If |web_contents| has not loaded, returns the default favicon. | 356 // If |web_contents| has not loaded, returns the default favicon. |
| 357 gfx::Image GetAppListIcon(content::WebContents* web_contents) const; | 357 gfx::Image GetAppListIcon(content::WebContents* web_contents) const; |
| 358 | 358 |
| 359 // Get the title for the applicatoin list entry for |web_contents|. | 359 // Get the title for the applicatoin list entry for |web_contents|. |
| 360 // If |web_contents| has not loaded, returns "Net Tab". | 360 // If |web_contents| has not loaded, returns "Net Tab". |
| 361 string16 GetAppListTitle(content::WebContents* web_contents) const; | 361 string16 GetAppListTitle(content::WebContents* web_contents) const; |
| 362 | 362 |
| 363 // Returns true when the given |browser| is listed in the browser application | |
| 364 // list. | |
| 365 bool IsBrowserRepresentedInBrowserList(Browser* browser); | |
| 366 | |
| 367 // Returns the LauncherItemController of BrowserShortcut. | 363 // Returns the LauncherItemController of BrowserShortcut. |
| 368 LauncherItemController* GetBrowserShortcutLauncherItemController(); | 364 BrowserShortcutLauncherItemController* |
| 369 | 365 GetBrowserShortcutLauncherItemController(); |
| 370 // Updates the activation state of the Broswer item. | |
| 371 void UpdateBrowserItemStatus(); | |
| 372 | 366 |
| 373 protected: | 367 protected: |
| 374 // Creates a new app shortcut item and controller on the launcher at |index|. | 368 // Creates a new app shortcut item and controller on the launcher at |index|. |
| 375 // Use kInsertItemAtEnd to add a shortcut as the last item. | 369 // Use kInsertItemAtEnd to add a shortcut as the last item. |
| 376 ash::LauncherID CreateAppShortcutLauncherItem(const std::string& app_id, | 370 ash::LauncherID CreateAppShortcutLauncherItem(const std::string& app_id, |
| 377 int index); | 371 int index); |
| 378 | 372 |
| 379 // Sets the AppTabHelper/AppIconLoader, taking ownership of the helper class. | 373 // Sets the AppTabHelper/AppIconLoader, taking ownership of the helper class. |
| 380 // These are intended for testing. | 374 // These are intended for testing. |
| 381 void SetAppTabHelperForTest(AppTabHelper* helper); | 375 void SetAppTabHelperForTest(AppTabHelper* helper); |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 512 // The owned browser status monitor. | 506 // The owned browser status monitor. |
| 513 scoped_ptr<BrowserStatusMonitor> browser_status_monitor_; | 507 scoped_ptr<BrowserStatusMonitor> browser_status_monitor_; |
| 514 | 508 |
| 515 // If true, incoming pinned state changes should be ignored. | 509 // If true, incoming pinned state changes should be ignored. |
| 516 bool ignore_persist_pinned_state_change_; | 510 bool ignore_persist_pinned_state_change_; |
| 517 | 511 |
| 518 DISALLOW_COPY_AND_ASSIGN(ChromeLauncherController); | 512 DISALLOW_COPY_AND_ASSIGN(ChromeLauncherController); |
| 519 }; | 513 }; |
| 520 | 514 |
| 521 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_H_ | 515 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_H_ |
| OLD | NEW |