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 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/macros.h" | 11 #include "base/macros.h" |
12 #include "base/time/time.h" | 12 #include "base/time/time.h" |
13 #include "chrome/browser/ui/ash/launcher/launcher_item_controller.h" | 13 #include "chrome/browser/ui/ash/launcher/launcher_item_controller.h" |
14 #include "url/gurl.h" | 14 #include "url/gurl.h" |
15 | 15 |
16 class Browser; | 16 class Browser; |
17 class URLPattern; | 17 class URLPattern; |
18 | 18 |
| 19 namespace content { |
| 20 class WebContents; |
| 21 } |
| 22 |
19 namespace extensions { | 23 namespace extensions { |
20 class Extension; | 24 class Extension; |
21 } | 25 } |
22 | 26 |
23 class ChromeLauncherController; | 27 class ChromeLauncherController; |
24 | 28 |
25 // Item controller for an app shortcut. Shortcuts track app and launcher ids, | 29 // Item controller for an app shortcut. Shortcuts track app and launcher ids, |
26 // but do not have any associated windows (opening a shortcut will replace the | 30 // but do not have any associated windows (opening a shortcut will replace the |
27 // item with the appropriate LauncherItemController type). | 31 // item with the appropriate LauncherItemController type). |
28 class AppShortcutLauncherItemController : public LauncherItemController { | 32 class AppShortcutLauncherItemController : public LauncherItemController { |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 // Since V2 applications can be undetectable after launching, this timer is | 102 // Since V2 applications can be undetectable after launching, this timer is |
99 // keeping track of the last launch attempt. | 103 // keeping track of the last launch attempt. |
100 base::Time last_launch_attempt_; | 104 base::Time last_launch_attempt_; |
101 | 105 |
102 ChromeLauncherController* chrome_launcher_controller_; | 106 ChromeLauncherController* chrome_launcher_controller_; |
103 | 107 |
104 DISALLOW_COPY_AND_ASSIGN(AppShortcutLauncherItemController); | 108 DISALLOW_COPY_AND_ASSIGN(AppShortcutLauncherItemController); |
105 }; | 109 }; |
106 | 110 |
107 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_APP_SHORTCUT_LAUNCHER_ITEM_CONTROLLER_
H_ | 111 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_APP_SHORTCUT_LAUNCHER_ITEM_CONTROLLER_
H_ |
OLD | NEW |