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_CHROME_LAUNCHER_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_ASH_LAUNCHER_CHROME_LAUNCHER_DELEGATE_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_ASH_LAUNCHER_CHROME_LAUNCHER_DELEGATE_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_ASH_LAUNCHER_CHROME_LAUNCHER_DELEGATE_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 #include <string> | 10 #include <string> |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
151 | 151 |
152 ash::LauncherModel* model() { return model_; } | 152 ash::LauncherModel* model() { return model_; } |
153 | 153 |
154 // ash::LauncherDelegate overrides: | 154 // ash::LauncherDelegate overrides: |
155 virtual void CreateNewWindow() OVERRIDE; | 155 virtual void CreateNewWindow() OVERRIDE; |
156 virtual void ItemClicked(const ash::LauncherItem& item) OVERRIDE; | 156 virtual void ItemClicked(const ash::LauncherItem& item) OVERRIDE; |
157 virtual int GetBrowserShortcutResourceId() OVERRIDE; | 157 virtual int GetBrowserShortcutResourceId() OVERRIDE; |
158 virtual string16 GetTitle(const ash::LauncherItem& item) OVERRIDE; | 158 virtual string16 GetTitle(const ash::LauncherItem& item) OVERRIDE; |
159 virtual ui::MenuModel* CreateContextMenu( | 159 virtual ui::MenuModel* CreateContextMenu( |
160 const ash::LauncherItem& item) OVERRIDE; | 160 const ash::LauncherItem& item) OVERRIDE; |
| 161 virtual ash::LauncherID GetIDByWindow(aura::Window* window) OVERRIDE; |
161 | 162 |
162 // ash::LauncherModelObserver overrides: | 163 // ash::LauncherModelObserver overrides: |
163 virtual void LauncherItemAdded(int index) OVERRIDE; | 164 virtual void LauncherItemAdded(int index) OVERRIDE; |
164 virtual void LauncherItemRemoved(int index, ash::LauncherID id) OVERRIDE; | 165 virtual void LauncherItemRemoved(int index, ash::LauncherID id) OVERRIDE; |
165 virtual void LauncherItemMoved(int start_index, int target_index) OVERRIDE; | 166 virtual void LauncherItemMoved(int start_index, int target_index) OVERRIDE; |
166 virtual void LauncherItemChanged(int index, | 167 virtual void LauncherItemChanged(int index, |
167 const ash::LauncherItem& old_item) OVERRIDE; | 168 const ash::LauncherItem& old_item) OVERRIDE; |
168 virtual void LauncherItemWillChange(int index) OVERRIDE; | 169 virtual void LauncherItemWillChange(int index) OVERRIDE; |
169 | 170 |
170 // Overridden from content::NotificationObserver: | 171 // Overridden from content::NotificationObserver: |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
230 | 231 |
231 // Used to load the image for an app tab. | 232 // Used to load the image for an app tab. |
232 scoped_ptr<AppIconLoader> app_icon_loader_; | 233 scoped_ptr<AppIconLoader> app_icon_loader_; |
233 | 234 |
234 content::NotificationRegistrar registrar_; | 235 content::NotificationRegistrar registrar_; |
235 | 236 |
236 DISALLOW_COPY_AND_ASSIGN(ChromeLauncherDelegate); | 237 DISALLOW_COPY_AND_ASSIGN(ChromeLauncherDelegate); |
237 }; | 238 }; |
238 | 239 |
239 #endif // CHROME_BROWSER_UI_VIEWS_ASH_LAUNCHER_CHROME_LAUNCHER_DELEGATE_H_ | 240 #endif // CHROME_BROWSER_UI_VIEWS_ASH_LAUNCHER_CHROME_LAUNCHER_DELEGATE_H_ |
OLD | NEW |