| 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_EXTENSIONS_APPLICATION_LAUNCH_H_ | 5 #ifndef CHROME_BROWSER_UI_EXTENSIONS_APPLICATION_LAUNCH_H_ |
| 6 #define CHROME_BROWSER_UI_EXTENSIONS_APPLICATION_LAUNCH_H_ | 6 #define CHROME_BROWSER_UI_EXTENSIONS_APPLICATION_LAUNCH_H_ |
| 7 | 7 |
| 8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
| 9 #include "base/files/file_path.h" | 9 #include "base/files/file_path.h" |
| 10 #include "chrome/browser/ui/host_desktop.h" | 10 #include "chrome/browser/ui/host_desktop.h" |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 content::WebContents* OpenApplication(const AppLaunchParams& params); | 89 content::WebContents* OpenApplication(const AppLaunchParams& params); |
| 90 | 90 |
| 91 // Open |url| in an app shortcut window. | 91 // Open |url| in an app shortcut window. |
| 92 // There are two kinds of app shortcuts: Shortcuts to a URL, | 92 // There are two kinds of app shortcuts: Shortcuts to a URL, |
| 93 // and shortcuts that open an installed application. This function | 93 // and shortcuts that open an installed application. This function |
| 94 // is used to open the former. To open the latter, use | 94 // is used to open the former. To open the latter, use |
| 95 // application_launch::OpenApplication(). | 95 // application_launch::OpenApplication(). |
| 96 content::WebContents* OpenAppShortcutWindow(Profile* profile, | 96 content::WebContents* OpenAppShortcutWindow(Profile* profile, |
| 97 const GURL& url); | 97 const GURL& url); |
| 98 | 98 |
| 99 bool LaunchesViaEvent(const extensions::Extension* extension); |
| 100 |
| 99 #endif // CHROME_BROWSER_UI_EXTENSIONS_APPLICATION_LAUNCH_H_ | 101 #endif // CHROME_BROWSER_UI_EXTENSIONS_APPLICATION_LAUNCH_H_ |
| OLD | NEW |