OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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_APP_LIST_APP_LIST_CONTROLLER_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_UI_APP_LIST_APP_LIST_CONTROLLER_DELEGATE_H_ |
6 #define CHROME_BROWSER_UI_APP_LIST_APP_LIST_CONTROLLER_DELEGATE_H_ | 6 #define CHROME_BROWSER_UI_APP_LIST_APP_LIST_CONTROLLER_DELEGATE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "chrome/common/extensions/extension_constants.h" | 10 #include "chrome/common/extensions/extension_constants.h" |
| 11 #include "ui/base/page_transition_types.h" |
| 12 #include "ui/base/window_open_disposition.h" |
11 #include "ui/gfx/native_widget_types.h" | 13 #include "ui/gfx/native_widget_types.h" |
12 | 14 |
13 class Profile; | 15 class Profile; |
14 | 16 |
15 namespace base { | 17 namespace base { |
16 class FilePath; | 18 class FilePath; |
17 } | 19 } |
18 | 20 |
19 namespace extensions { | 21 namespace extensions { |
20 class Extension; | 22 class Extension; |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 | 95 |
94 // Show the dialog with the application's information. Call only if | 96 // Show the dialog with the application's information. Call only if |
95 // CanDoShowAppInfoFlow() returns true. | 97 // CanDoShowAppInfoFlow() returns true. |
96 virtual void DoShowAppInfoFlow(Profile* profile, | 98 virtual void DoShowAppInfoFlow(Profile* profile, |
97 const std::string& extension_id); | 99 const std::string& extension_id); |
98 | 100 |
99 // Handle the "create window" context menu items of Chrome App. | 101 // Handle the "create window" context menu items of Chrome App. |
100 // |incognito| is true to create an incognito window. | 102 // |incognito| is true to create an incognito window. |
101 virtual void CreateNewWindow(Profile* profile, bool incognito) = 0; | 103 virtual void CreateNewWindow(Profile* profile, bool incognito) = 0; |
102 | 104 |
| 105 // Opens the URL. |
| 106 virtual void OpenURL(Profile* profile, |
| 107 const GURL& url, |
| 108 ui::PageTransition transition, |
| 109 WindowOpenDisposition disposition) = 0; |
| 110 |
103 // Show the app's most recent window, or launch it if it is not running. | 111 // Show the app's most recent window, or launch it if it is not running. |
104 virtual void ActivateApp(Profile* profile, | 112 virtual void ActivateApp(Profile* profile, |
105 const extensions::Extension* extension, | 113 const extensions::Extension* extension, |
106 AppListSource source, | 114 AppListSource source, |
107 int event_flags) = 0; | 115 int event_flags) = 0; |
108 | 116 |
109 // Launch the app. | 117 // Launch the app. |
110 virtual void LaunchApp(Profile* profile, | 118 virtual void LaunchApp(Profile* profile, |
111 const extensions::Extension* extension, | 119 const extensions::Extension* extension, |
112 AppListSource source, | 120 AppListSource source, |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 extensions::InstallTracker* GetInstallTrackerFor(Profile* profile); | 166 extensions::InstallTracker* GetInstallTrackerFor(Profile* profile); |
159 | 167 |
160 // Get the list of installed apps for the given profile. | 168 // Get the list of installed apps for the given profile. |
161 void GetApps(Profile* profile, extensions::ExtensionSet* out_apps); | 169 void GetApps(Profile* profile, extensions::ExtensionSet* out_apps); |
162 | 170 |
163 // Called when a search is started using the app list search box. | 171 // Called when a search is started using the app list search box. |
164 void OnSearchStarted(); | 172 void OnSearchStarted(); |
165 }; | 173 }; |
166 | 174 |
167 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_CONTROLLER_DELEGATE_H_ | 175 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_CONTROLLER_DELEGATE_H_ |
OLD | NEW |