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 "base/time/time.h" | 10 #include "base/time/time.h" |
(...skipping 29 matching lines...) Expand all Loading... |
40 virtual bool IsOpen() const OVERRIDE; | 40 virtual bool IsOpen() const OVERRIDE; |
41 virtual bool IsVisible() const OVERRIDE; | 41 virtual bool IsVisible() const OVERRIDE; |
42 virtual void Launch(ash::LaunchSource source, int event_flags) OVERRIDE; | 42 virtual void Launch(ash::LaunchSource source, int event_flags) OVERRIDE; |
43 virtual void Activate(ash::LaunchSource source) OVERRIDE; | 43 virtual void Activate(ash::LaunchSource source) OVERRIDE; |
44 virtual void Close() OVERRIDE; | 44 virtual void Close() OVERRIDE; |
45 virtual ChromeLauncherAppMenuItems GetApplicationList( | 45 virtual ChromeLauncherAppMenuItems GetApplicationList( |
46 int event_flags) OVERRIDE; | 46 int event_flags) OVERRIDE; |
47 virtual void ItemSelected(const ui::Event& event) OVERRIDE; | 47 virtual void ItemSelected(const ui::Event& event) OVERRIDE; |
48 virtual base::string16 GetTitle() OVERRIDE; | 48 virtual base::string16 GetTitle() OVERRIDE; |
49 virtual ui::MenuModel* CreateContextMenu( | 49 virtual ui::MenuModel* CreateContextMenu( |
50 aura::RootWindow* root_window) OVERRIDE; | 50 aura::Window* root_window) OVERRIDE; |
51 virtual ash::LauncherMenuModel* CreateApplicationMenu( | 51 virtual ash::LauncherMenuModel* CreateApplicationMenu( |
52 int event_flags) OVERRIDE; | 52 int event_flags) OVERRIDE; |
53 virtual bool IsDraggable() OVERRIDE; | 53 virtual bool IsDraggable() OVERRIDE; |
54 virtual bool ShouldShowTooltip() OVERRIDE; | 54 virtual bool ShouldShowTooltip() OVERRIDE; |
55 | 55 |
56 // Get the refocus url pattern, which can be used to identify this application | 56 // Get the refocus url pattern, which can be used to identify this application |
57 // from a URL link. | 57 // from a URL link. |
58 const GURL& refocus_url() const { return refocus_url_; } | 58 const GURL& refocus_url() const { return refocus_url_; } |
59 // Set the refocus url pattern. Used by unit tests. | 59 // Set the refocus url pattern. Used by unit tests. |
60 void set_refocus_url(const GURL& refocus_url) { refocus_url_ = refocus_url; } | 60 void set_refocus_url(const GURL& refocus_url) { refocus_url_ = refocus_url; } |
(...skipping 27 matching lines...) Expand all Loading... |
88 // Since V2 applications can be undetectable after launching, this timer is | 88 // Since V2 applications can be undetectable after launching, this timer is |
89 // keeping track of the last launch attempt. | 89 // keeping track of the last launch attempt. |
90 base::Time last_launch_attempt_; | 90 base::Time last_launch_attempt_; |
91 | 91 |
92 ChromeLauncherController* chrome_launcher_controller_; | 92 ChromeLauncherController* chrome_launcher_controller_; |
93 | 93 |
94 DISALLOW_COPY_AND_ASSIGN(AppShortcutLauncherItemController); | 94 DISALLOW_COPY_AND_ASSIGN(AppShortcutLauncherItemController); |
95 }; | 95 }; |
96 | 96 |
97 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_APP_SHORTCUT_LAUNCHER_ITEM_CONTROLLER_
H_ | 97 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_APP_SHORTCUT_LAUNCHER_ITEM_CONTROLLER_
H_ |
OLD | NEW |