| 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_CHROME_LAUNCHER_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_AURA_LAUNCHER_CHROME_LAUNCHER_DELEGATE_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_AURA_LAUNCHER_CHROME_LAUNCHER_DELEGATE_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_AURA_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 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 bool IsOpen(ash::LauncherID id); | 128 bool IsOpen(ash::LauncherID id); |
| 129 | 129 |
| 130 // Returns the type of app for the specified id. | 130 // Returns the type of app for the specified id. |
| 131 AppType GetAppType(ash::LauncherID id); | 131 AppType GetAppType(ash::LauncherID id); |
| 132 | 132 |
| 133 // Returns the id of the app for the specified tab. | 133 // Returns the id of the app for the specified tab. |
| 134 std::string GetAppID(TabContentsWrapper* tab); | 134 std::string GetAppID(TabContentsWrapper* tab); |
| 135 | 135 |
| 136 // Sets the image for an app tab. This is intended to be invoked from the | 136 // Sets the image for an app tab. This is intended to be invoked from the |
| 137 // AppIconLoader. | 137 // AppIconLoader. |
| 138 void SetAppImage(const std::string& app_id, SkBitmap* image); | 138 void SetAppImage(const std::string& app_id, const SkBitmap* image); |
| 139 | 139 |
| 140 ash::LauncherModel* model() { return model_; } | 140 ash::LauncherModel* model() { return model_; } |
| 141 | 141 |
| 142 // ash::LauncherDelegate overrides: | 142 // ash::LauncherDelegate overrides: |
| 143 virtual void CreateNewWindow() OVERRIDE; | 143 virtual void CreateNewWindow() OVERRIDE; |
| 144 virtual void ItemClicked(const ash::LauncherItem& item) OVERRIDE; | 144 virtual void ItemClicked(const ash::LauncherItem& item) OVERRIDE; |
| 145 virtual int GetBrowserShortcutResourceId() OVERRIDE; | 145 virtual int GetBrowserShortcutResourceId() OVERRIDE; |
| 146 virtual string16 GetTitle(const ash::LauncherItem& item) OVERRIDE; | 146 virtual string16 GetTitle(const ash::LauncherItem& item) OVERRIDE; |
| 147 virtual ui::MenuModel* CreateContextMenu( | 147 virtual ui::MenuModel* CreateContextMenu( |
| 148 const ash::LauncherItem& item) OVERRIDE; | 148 const ash::LauncherItem& item) OVERRIDE; |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 218 | 218 |
| 219 // Used to load the image for an app tab. | 219 // Used to load the image for an app tab. |
| 220 scoped_ptr<AppIconLoader> app_icon_loader_; | 220 scoped_ptr<AppIconLoader> app_icon_loader_; |
| 221 | 221 |
| 222 content::NotificationRegistrar registrar_; | 222 content::NotificationRegistrar registrar_; |
| 223 | 223 |
| 224 DISALLOW_COPY_AND_ASSIGN(ChromeLauncherDelegate); | 224 DISALLOW_COPY_AND_ASSIGN(ChromeLauncherDelegate); |
| 225 }; | 225 }; |
| 226 | 226 |
| 227 #endif // CHROME_BROWSER_UI_VIEWS_AURA_LAUNCHER_CHROME_LAUNCHER_DELEGATE_H_ | 227 #endif // CHROME_BROWSER_UI_VIEWS_AURA_LAUNCHER_CHROME_LAUNCHER_DELEGATE_H_ |
| OLD | NEW |