| 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_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_H_ |
| 6 #define CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_H_ | 6 #define CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "ash/launcher/launcher_delegate.h" | 10 #include "ash/launcher/launcher_delegate.h" |
| (...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 243 virtual void SetRefocusURLPatternForTest(ash::LauncherID id, | 243 virtual void SetRefocusURLPatternForTest(ash::LauncherID id, |
| 244 const GURL& url) = 0; | 244 const GURL& url) = 0; |
| 245 | 245 |
| 246 // Returns the extension identified by |app_id|. | 246 // Returns the extension identified by |app_id|. |
| 247 virtual const extensions::Extension* GetExtensionForAppID( | 247 virtual const extensions::Extension* GetExtensionForAppID( |
| 248 const std::string& app_id) = 0; | 248 const std::string& app_id) = 0; |
| 249 | 249 |
| 250 // ash::LauncherDelegate overrides: | 250 // ash::LauncherDelegate overrides: |
| 251 virtual void OnBrowserShortcutClicked(int event_flags) OVERRIDE = 0; | 251 virtual void OnBrowserShortcutClicked(int event_flags) OVERRIDE = 0; |
| 252 virtual void ItemClicked(const ash::LauncherItem& item, | 252 virtual void ItemClicked(const ash::LauncherItem& item, |
| 253 int event_flags) OVERRIDE = 0; | 253 const ui::Event& event) OVERRIDE = 0; |
| 254 virtual int GetBrowserShortcutResourceId() OVERRIDE = 0; | 254 virtual int GetBrowserShortcutResourceId() OVERRIDE = 0; |
| 255 virtual string16 GetTitle(const ash::LauncherItem& item) OVERRIDE = 0; | 255 virtual string16 GetTitle(const ash::LauncherItem& item) OVERRIDE = 0; |
| 256 virtual ui::MenuModel* CreateContextMenu( | 256 virtual ui::MenuModel* CreateContextMenu( |
| 257 const ash::LauncherItem& item, aura::RootWindow* root) OVERRIDE = 0; | 257 const ash::LauncherItem& item, aura::RootWindow* root) OVERRIDE = 0; |
| 258 virtual ui::MenuModel* CreateApplicationMenu( | 258 virtual ui::MenuModel* CreateApplicationMenu( |
| 259 const ash::LauncherItem& item) OVERRIDE = 0; | 259 const ash::LauncherItem& item) OVERRIDE = 0; |
| 260 virtual ash::LauncherID GetIDByWindow(aura::Window* window) OVERRIDE = 0; | 260 virtual ash::LauncherID GetIDByWindow(aura::Window* window) OVERRIDE = 0; |
| 261 virtual bool IsDraggable(const ash::LauncherItem& item) OVERRIDE = 0; | 261 virtual bool IsDraggable(const ash::LauncherItem& item) OVERRIDE = 0; |
| 262 | 262 |
| 263 // ash::AppIconLoader overrides: | 263 // ash::AppIconLoader overrides: |
| (...skipping 19 matching lines...) Expand all Loading... |
| 283 virtual void SetAppTabHelperForTest(AppTabHelper* helper) = 0; | 283 virtual void SetAppTabHelperForTest(AppTabHelper* helper) = 0; |
| 284 virtual void SetAppIconLoaderForTest(ash::AppIconLoader* loader) = 0; | 284 virtual void SetAppIconLoaderForTest(ash::AppIconLoader* loader) = 0; |
| 285 virtual const std::string& GetAppIdFromLauncherIdForTest( | 285 virtual const std::string& GetAppIdFromLauncherIdForTest( |
| 286 ash::LauncherID id) = 0; | 286 ash::LauncherID id) = 0; |
| 287 | 287 |
| 288 private: | 288 private: |
| 289 static ChromeLauncherController* instance_; | 289 static ChromeLauncherController* instance_; |
| 290 }; | 290 }; |
| 291 | 291 |
| 292 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_H_ | 292 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_H_ |
| OLD | NEW |