Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(198)

Side by Side Diff: chrome/browser/ui/extensions/application_launch.h

Issue 105733003: Move LaunchType out of ExtensionPrefs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix indenting Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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/files/file_path.h" 8 #include "base/files/file_path.h"
9 #include "chrome/browser/ui/host_desktop.h" 9 #include "chrome/browser/ui/host_desktop.h"
10 #include "extensions/common/constants.h" 10 #include "extensions/common/constants.h"
(...skipping 13 matching lines...) Expand all
24 class Extension; 24 class Extension;
25 } 25 }
26 26
27 struct AppLaunchParams { 27 struct AppLaunchParams {
28 AppLaunchParams(Profile* profile, 28 AppLaunchParams(Profile* profile,
29 const extensions::Extension* extension, 29 const extensions::Extension* extension,
30 extensions::LaunchContainer container, 30 extensions::LaunchContainer container,
31 WindowOpenDisposition disposition); 31 WindowOpenDisposition disposition);
32 32
33 // Helper to create AppLaunchParams using ExtensionPrefs::GetLaunchContainer 33 // Helper to create AppLaunchParams using ExtensionPrefs::GetLaunchContainer
34 // with ExtensionPrefs::LAUNCH_TYPE_REGULAR to check for a user-configured 34 // with LAUNCH_TYPE_REGULAR to check for a user-configured container.
35 // container.
36 AppLaunchParams(Profile* profile, 35 AppLaunchParams(Profile* profile,
37 const extensions::Extension* extension, 36 const extensions::Extension* extension,
38 WindowOpenDisposition disposition); 37 WindowOpenDisposition disposition);
39 38
40 // Helper to create AppLaunchParams using event flags that allows user to 39 // Helper to create AppLaunchParams using event flags that allows user to
41 // override the user-configured container using modifier keys, falling back to 40 // override the user-configured container using modifier keys, falling back to
42 // ExtensionPrefs::GetLaunchContainer() with no modifiers. |desktop_type| 41 // ExtensionPrefs::GetLaunchContainer() with no modifiers. |desktop_type|
43 // indicates the desktop upon which to launch (Ash or Native). 42 // indicates the desktop upon which to launch (Ash or Native).
44 AppLaunchParams(Profile* profile, 43 AppLaunchParams(Profile* profile,
45 const extensions::Extension* extension, 44 const extensions::Extension* extension,
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 // Open |url| in an app shortcut window. |override_bounds| param is optional. 85 // Open |url| in an app shortcut window. |override_bounds| param is optional.
87 // There are two kinds of app shortcuts: Shortcuts to a URL, 86 // There are two kinds of app shortcuts: Shortcuts to a URL,
88 // and shortcuts that open an installed application. This function 87 // and shortcuts that open an installed application. This function
89 // is used to open the former. To open the latter, use 88 // is used to open the former. To open the latter, use
90 // application_launch::OpenApplication(). 89 // application_launch::OpenApplication().
91 content::WebContents* OpenAppShortcutWindow(Profile* profile, 90 content::WebContents* OpenAppShortcutWindow(Profile* profile,
92 const GURL& url, 91 const GURL& url,
93 const gfx::Rect& override_bounds); 92 const gfx::Rect& override_bounds);
94 93
95 #endif // CHROME_BROWSER_UI_EXTENSIONS_APPLICATION_LAUNCH_H_ 94 #endif // CHROME_BROWSER_UI_EXTENSIONS_APPLICATION_LAUNCH_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/ash/launcher/shell_window_launcher_controller.cc ('k') | chrome/browser/ui/extensions/application_launch.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698