| 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_AURA_LAUNCHER_LAUNCHER_UPDATER_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_AURA_LAUNCHER_LAUNCHER_UPDATER_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_AURA_LAUNCHER_LAUNCHER_UPDATER_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_AURA_LAUNCHER_LAUNCHER_UPDATER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <map> | 9 #include <map> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 // Returns the title of the browser and/or tab identified by |id|. | 75 // Returns the title of the browser and/or tab identified by |id|. |
| 76 static string16 GetTitleByID(ash::LauncherID id); | 76 static string16 GetTitleByID(ash::LauncherID id); |
| 77 | 77 |
| 78 // Returns the LauncherUpdater managing the launcher with the specified | 78 // Returns the LauncherUpdater managing the launcher with the specified |
| 79 // id. If |id| corresponds to an app tab, |tab| is set appropriately. | 79 // id. If |id| corresponds to an app tab, |tab| is set appropriately. |
| 80 static const LauncherUpdater* GetLauncherByID(ash::LauncherID id, | 80 static const LauncherUpdater* GetLauncherByID(ash::LauncherID id, |
| 81 TabContentsWrapper** tab); | 81 TabContentsWrapper** tab); |
| 82 | 82 |
| 83 // Sets the image for an app tab. This is intended to be invoked from the | 83 // Sets the image for an app tab. This is intended to be invoked from the |
| 84 // AppIconLoader. | 84 // AppIconLoader. |
| 85 void SetAppImage(TabContentsWrapper* tab, SkBitmap* image); | 85 void SetAppImage(TabContentsWrapper* tab, const SkBitmap* image); |
| 86 | 86 |
| 87 // Sets the AppIconLoader, taking ownership of |loader|. This is intended for | 87 // Sets the AppIconLoader, taking ownership of |loader|. This is intended for |
| 88 // testing. | 88 // testing. |
| 89 void SetAppIconLoaderForTest(AppIconLoader* loader); | 89 void SetAppIconLoaderForTest(AppIconLoader* loader); |
| 90 | 90 |
| 91 // TabStripModel overrides: | 91 // TabStripModel overrides: |
| 92 virtual void ActiveTabChanged(TabContentsWrapper* old_contents, | 92 virtual void ActiveTabChanged(TabContentsWrapper* old_contents, |
| 93 TabContentsWrapper* new_contents, | 93 TabContentsWrapper* new_contents, |
| 94 int index, | 94 int index, |
| 95 bool user_gesture) OVERRIDE; | 95 bool user_gesture) OVERRIDE; |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 177 // Used to load the image for an app tab. | 177 // Used to load the image for an app tab. |
| 178 scoped_ptr<AppIconLoader> app_icon_loader_; | 178 scoped_ptr<AppIconLoader> app_icon_loader_; |
| 179 | 179 |
| 180 // Existing instances. | 180 // Existing instances. |
| 181 static Instances* instances_; | 181 static Instances* instances_; |
| 182 | 182 |
| 183 DISALLOW_COPY_AND_ASSIGN(LauncherUpdater); | 183 DISALLOW_COPY_AND_ASSIGN(LauncherUpdater); |
| 184 }; | 184 }; |
| 185 | 185 |
| 186 #endif // CHROME_BROWSER_UI_VIEWS_AURA_LAUNCHER_LAUNCHER_UPDATER_H_ | 186 #endif // CHROME_BROWSER_UI_VIEWS_AURA_LAUNCHER_LAUNCHER_UPDATER_H_ |
| OLD | NEW |