| 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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 // Modifies an app shortcut to open with the new |app_type|. | 142 // Modifies an app shortcut to open with the new |app_type|. |
| 143 void SetAppType(ash::LauncherID id, AppType app_type); | 143 void SetAppType(ash::LauncherID id, AppType app_type); |
| 144 | 144 |
| 145 // Unpins any app items whose id is |app_id|. | 145 // Unpins any app items whose id is |app_id|. |
| 146 void UnpinAppsWithID(const std::string& app_id); | 146 void UnpinAppsWithID(const std::string& app_id); |
| 147 | 147 |
| 148 ash::LauncherModel* model() { return model_; } | 148 ash::LauncherModel* model() { return model_; } |
| 149 | 149 |
| 150 // ash::LauncherDelegate overrides: | 150 // ash::LauncherDelegate overrides: |
| 151 virtual void CreateNewTab() OVERRIDE; | 151 virtual void CreateNewTab() OVERRIDE; |
| 152 virtual void CreateNewWindow() OVERRIDE; |
| 152 virtual void ItemClicked(const ash::LauncherItem& item) OVERRIDE; | 153 virtual void ItemClicked(const ash::LauncherItem& item) OVERRIDE; |
| 153 virtual int GetBrowserShortcutResourceId() OVERRIDE; | 154 virtual int GetBrowserShortcutResourceId() OVERRIDE; |
| 154 virtual string16 GetTitle(const ash::LauncherItem& item) OVERRIDE; | 155 virtual string16 GetTitle(const ash::LauncherItem& item) OVERRIDE; |
| 155 virtual ui::MenuModel* CreateContextMenu( | 156 virtual ui::MenuModel* CreateContextMenu( |
| 156 const ash::LauncherItem& item) OVERRIDE; | 157 const ash::LauncherItem& item) OVERRIDE; |
| 157 virtual ash::LauncherID GetIDByWindow(aura::Window* window) OVERRIDE; | 158 virtual ash::LauncherID GetIDByWindow(aura::Window* window) OVERRIDE; |
| 158 | 159 |
| 159 // ash::LauncherModelObserver overrides: | 160 // ash::LauncherModelObserver overrides: |
| 160 virtual void LauncherItemAdded(int index) OVERRIDE; | 161 virtual void LauncherItemAdded(int index) OVERRIDE; |
| 161 virtual void LauncherItemRemoved(int index, ash::LauncherID id) OVERRIDE; | 162 virtual void LauncherItemRemoved(int index, ash::LauncherID id) OVERRIDE; |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 223 | 224 |
| 224 // Used to load the image for an app tab. | 225 // Used to load the image for an app tab. |
| 225 scoped_ptr<AppIconLoader> app_icon_loader_; | 226 scoped_ptr<AppIconLoader> app_icon_loader_; |
| 226 | 227 |
| 227 content::NotificationRegistrar registrar_; | 228 content::NotificationRegistrar registrar_; |
| 228 | 229 |
| 229 DISALLOW_COPY_AND_ASSIGN(ChromeLauncherDelegate); | 230 DISALLOW_COPY_AND_ASSIGN(ChromeLauncherDelegate); |
| 230 }; | 231 }; |
| 231 | 232 |
| 232 #endif // CHROME_BROWSER_UI_VIEWS_ASH_LAUNCHER_CHROME_LAUNCHER_DELEGATE_H_ | 233 #endif // CHROME_BROWSER_UI_VIEWS_ASH_LAUNCHER_CHROME_LAUNCHER_DELEGATE_H_ |
| OLD | NEW |