| 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_LAUNCHER_UPDATER_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_ASH_LAUNCHER_LAUNCHER_UPDATER_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_ASH_LAUNCHER_LAUNCHER_UPDATER_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_ASH_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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 | 106 |
| 107 // Invoked when a tab changes in some way. Updates the Launcher appropriately. | 107 // Invoked when a tab changes in some way. Updates the Launcher appropriately. |
| 108 void UpdateAppTabState(TabContentsWrapper* tab, UpdateType update_type); | 108 void UpdateAppTabState(TabContentsWrapper* tab, UpdateType update_type); |
| 109 | 109 |
| 110 // Creates a launcher item for |tab|. | 110 // Creates a launcher item for |tab|. |
| 111 void AddAppItem(TabContentsWrapper* tab); | 111 void AddAppItem(TabContentsWrapper* tab); |
| 112 | 112 |
| 113 void RegisterAppItem(ash::LauncherID id, TabContentsWrapper* tab); | 113 void RegisterAppItem(ash::LauncherID id, TabContentsWrapper* tab); |
| 114 | 114 |
| 115 // Creates a tabbed launcher item. | 115 // Creates a tabbed launcher item. |
| 116 void CreateTabbedItem(); | 116 void CreateTabbedItem(bool is_private); |
| 117 | 117 |
| 118 // Returns true if this LauncherUpdater created the launcher item with the | 118 // Returns true if this LauncherUpdater created the launcher item with the |
| 119 // specified id. Returns true if it did. If the id corresponds to an app tab, | 119 // specified id. Returns true if it did. If the id corresponds to an app tab, |
| 120 // |tab| is set to the TabContentsWrapper for the app tab. | 120 // |tab| is set to the TabContentsWrapper for the app tab. |
| 121 bool ContainsID(ash::LauncherID id, TabContentsWrapper** tab); | 121 bool ContainsID(ash::LauncherID id, TabContentsWrapper** tab); |
| 122 | 122 |
| 123 ash::LauncherModel* launcher_model(); | 123 ash::LauncherModel* launcher_model(); |
| 124 | 124 |
| 125 // Browser window we're in. | 125 // Browser window we're in. |
| 126 aura::Window* window_; | 126 aura::Window* window_; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 140 // . Otherwise this is the id of the TYPE_TABBED item. | 140 // . Otherwise this is the id of the TYPE_TABBED item. |
| 141 ash::LauncherID item_id_; | 141 ash::LauncherID item_id_; |
| 142 | 142 |
| 143 // Used for any app tabs. | 143 // Used for any app tabs. |
| 144 AppTabMap app_map_; | 144 AppTabMap app_map_; |
| 145 | 145 |
| 146 DISALLOW_COPY_AND_ASSIGN(LauncherUpdater); | 146 DISALLOW_COPY_AND_ASSIGN(LauncherUpdater); |
| 147 }; | 147 }; |
| 148 | 148 |
| 149 #endif // CHROME_BROWSER_UI_VIEWS_ASH_LAUNCHER_LAUNCHER_UPDATER_H_ | 149 #endif // CHROME_BROWSER_UI_VIEWS_ASH_LAUNCHER_LAUNCHER_UPDATER_H_ |
| OLD | NEW |