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" |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 const GURL& url, | 92 const GURL& url, |
93 ui::PageTransition transition, | 93 ui::PageTransition transition, |
94 WindowOpenDisposition disposition) = 0; | 94 WindowOpenDisposition disposition) = 0; |
95 | 95 |
96 // Show the app's most recent window, or launch it if it is not running. | 96 // Show the app's most recent window, or launch it if it is not running. |
97 virtual void ActivateApp(Profile* profile, | 97 virtual void ActivateApp(Profile* profile, |
98 const extensions::Extension* extension, | 98 const extensions::Extension* extension, |
99 AppListSource source, | 99 AppListSource source, |
100 int event_flags) = 0; | 100 int event_flags) = 0; |
101 | 101 |
102 // Launch the app. | 102 // Launch the app on the display identified by |display_id|. |
103 virtual void LaunchApp(Profile* profile, | 103 virtual void LaunchApp(Profile* profile, |
104 const extensions::Extension* extension, | 104 const extensions::Extension* extension, |
105 AppListSource source, | 105 AppListSource source, |
106 int event_flags) = 0; | 106 int event_flags, |
| 107 int64_t display_id) = 0; |
107 | 108 |
108 static std::string AppListSourceToString(AppListSource source); | 109 static std::string AppListSourceToString(AppListSource source); |
109 | 110 |
110 // True if the user has permission to modify the given app's settings. | 111 // True if the user has permission to modify the given app's settings. |
111 bool UserMayModifySettings(Profile* profile, const std::string& app_id); | 112 bool UserMayModifySettings(Profile* profile, const std::string& app_id); |
112 | 113 |
113 // Uninstall the app identified by |app_id| from |profile|. | 114 // Uninstall the app identified by |app_id| from |profile|. |
114 void UninstallApp(Profile* profile, const std::string& app_id); | 115 void UninstallApp(Profile* profile, const std::string& app_id); |
115 | 116 |
116 // True if the app was installed from the web store. | 117 // True if the app was installed from the web store. |
(...skipping 28 matching lines...) Expand all Loading... |
145 extensions::InstallTracker* GetInstallTrackerFor(Profile* profile); | 146 extensions::InstallTracker* GetInstallTrackerFor(Profile* profile); |
146 | 147 |
147 // Get the list of installed apps for the given profile. | 148 // Get the list of installed apps for the given profile. |
148 void GetApps(Profile* profile, extensions::ExtensionSet* out_apps); | 149 void GetApps(Profile* profile, extensions::ExtensionSet* out_apps); |
149 | 150 |
150 // Called when a search is started using the app list search box. | 151 // Called when a search is started using the app list search box. |
151 void OnSearchStarted(); | 152 void OnSearchStarted(); |
152 }; | 153 }; |
153 | 154 |
154 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_CONTROLLER_DELEGATE_H_ | 155 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_CONTROLLER_DELEGATE_H_ |
OLD | NEW |