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 16 matching lines...) Expand all Loading... | |
27 namespace aura { | 27 namespace aura { |
28 class Window; | 28 class Window; |
29 } | 29 } |
30 | 30 |
31 // LauncherUpdater is responsible for keeping the launcher representation of a | 31 // LauncherUpdater is responsible for keeping the launcher representation of a |
32 // window up to date as the tab strip changes. | 32 // window up to date as the tab strip changes. |
33 class LauncherUpdater : public TabStripModelObserver { | 33 class LauncherUpdater : public TabStripModelObserver { |
34 public: | 34 public: |
35 enum Type { | 35 enum Type { |
36 TYPE_APP, | 36 TYPE_APP, |
37 TYPE_PANEL, | |
sky
2012/03/02 23:08:53
Why does the launcher need to know about panel?
stevenjb
2012/03/03 00:02:06
See next comment.
| |
37 TYPE_TABBED | 38 TYPE_TABBED |
38 }; | 39 }; |
39 | 40 |
40 LauncherUpdater(aura::Window* window, | 41 LauncherUpdater(aura::Window* window, |
41 TabStripModel* tab_model, | 42 TabStripModel* tab_model, |
42 ChromeLauncherDelegate* launcher_delegate, | 43 ChromeLauncherDelegate* launcher_delegate, |
43 Type type, | 44 Type type, |
44 const std::string& app_id); | 45 const std::string& app_id); |
45 virtual ~LauncherUpdater(); | 46 virtual ~LauncherUpdater(); |
46 | 47 |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
137 // . Otherwise this is the id of the TYPE_TABBED item. | 138 // . Otherwise this is the id of the TYPE_TABBED item. |
138 ash::LauncherID item_id_; | 139 ash::LauncherID item_id_; |
139 | 140 |
140 // Used for any app tabs. | 141 // Used for any app tabs. |
141 AppTabMap app_map_; | 142 AppTabMap app_map_; |
142 | 143 |
143 DISALLOW_COPY_AND_ASSIGN(LauncherUpdater); | 144 DISALLOW_COPY_AND_ASSIGN(LauncherUpdater); |
144 }; | 145 }; |
145 | 146 |
146 #endif // CHROME_BROWSER_UI_VIEWS_AURA_LAUNCHER_LAUNCHER_UPDATER_H_ | 147 #endif // CHROME_BROWSER_UI_VIEWS_AURA_LAUNCHER_LAUNCHER_UPDATER_H_ |
OLD | NEW |