| 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_APP_SHORTCUT_LAUNCHER_ITEM_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_UI_ASH_LAUNCHER_APP_SHORTCUT_LAUNCHER_ITEM_CONTROLLER_H_ |
| 6 #define CHROME_BROWSER_UI_ASH_LAUNCHER_APP_SHORTCUT_LAUNCHER_ITEM_CONTROLLER_H_ | 6 #define CHROME_BROWSER_UI_ASH_LAUNCHER_APP_SHORTCUT_LAUNCHER_ITEM_CONTROLLER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "chrome/browser/ui/ash/launcher/chrome_launcher_controller_per_app.h" | 10 #include "chrome/browser/ui/ash/launcher/chrome_launcher_controller_per_app.h" |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 | 26 |
| 27 virtual ~AppShortcutLauncherItemController(); | 27 virtual ~AppShortcutLauncherItemController(); |
| 28 | 28 |
| 29 // LauncherItemController overrides: | 29 // LauncherItemController overrides: |
| 30 virtual string16 GetTitle() OVERRIDE; | 30 virtual string16 GetTitle() OVERRIDE; |
| 31 virtual bool HasWindow(aura::Window* window) const OVERRIDE; | 31 virtual bool HasWindow(aura::Window* window) const OVERRIDE; |
| 32 virtual bool IsOpen() const OVERRIDE; | 32 virtual bool IsOpen() const OVERRIDE; |
| 33 virtual void Launch(int event_flags) OVERRIDE; | 33 virtual void Launch(int event_flags) OVERRIDE; |
| 34 virtual void Activate() OVERRIDE; | 34 virtual void Activate() OVERRIDE; |
| 35 virtual void Close() OVERRIDE; | 35 virtual void Close() OVERRIDE; |
| 36 virtual void Clicked() OVERRIDE; | 36 virtual void Clicked(const ui::Event& event) OVERRIDE; |
| 37 virtual void OnRemoved() OVERRIDE; | 37 virtual void OnRemoved() OVERRIDE; |
| 38 virtual void LauncherItemChanged( | 38 virtual void LauncherItemChanged( |
| 39 int model_index, | 39 int model_index, |
| 40 const ash::LauncherItem& old_item) OVERRIDE; | 40 const ash::LauncherItem& old_item) OVERRIDE; |
| 41 virtual ChromeLauncherAppMenuItems* GetApplicationList() OVERRIDE; | 41 virtual ChromeLauncherAppMenuItems* GetApplicationList() OVERRIDE; |
| 42 std::vector<content::WebContents*> GetRunningApplications(); | 42 std::vector<content::WebContents*> GetRunningApplications(); |
| 43 | 43 |
| 44 // Get the refocus url pattern, which can be used to identify this application | 44 // Get the refocus url pattern, which can be used to identify this application |
| 45 // from a URL link. | 45 // from a URL link. |
| 46 const GURL& refocus_url() const { return refocus_url_; } | 46 const GURL& refocus_url() const { return refocus_url_; } |
| 47 // Set the refocus url pattern. Used by unit tests. | 47 // Set the refocus url pattern. Used by unit tests. |
| 48 void set_refocus_url(const GURL& refocus_url) { refocus_url_ = refocus_url; } | 48 void set_refocus_url(const GURL& refocus_url) { refocus_url_ = refocus_url; } |
| 49 | 49 |
| 50 private: | 50 private: |
| 51 GURL refocus_url_; | 51 GURL refocus_url_; |
| 52 ChromeLauncherControllerPerApp* app_controller_; | 52 ChromeLauncherControllerPerApp* app_controller_; |
| 53 | 53 |
| 54 DISALLOW_COPY_AND_ASSIGN(AppShortcutLauncherItemController); | 54 DISALLOW_COPY_AND_ASSIGN(AppShortcutLauncherItemController); |
| 55 }; | 55 }; |
| 56 | 56 |
| 57 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_APP_SHORTCUT_LAUNCHER_ITEM_CONTROLLER_
H_ | 57 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_APP_SHORTCUT_LAUNCHER_ITEM_CONTROLLER_
H_ |
| OLD | NEW |