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

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

Issue 10949023: Add switch to provide app window size on startup (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove hack Created 8 years, 3 months 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/file_path.h" 8 #include "base/file_path.h"
9 #include "chrome/common/extensions/extension_constants.h" 9 #include "chrome/common/extensions/extension_constants.h"
10 #include "googleurl/src/gurl.h" 10 #include "googleurl/src/gurl.h"
11 #include "webkit/glue/window_open_disposition.h" 11 #include "webkit/glue/window_open_disposition.h"
12 12
13 class Browser; 13 class Browser;
14 class CommandLine; 14 class CommandLine;
15 class Profile; 15 class Profile;
16 16
17 namespace content { 17 namespace content {
18 class WebContents; 18 class WebContents;
19 } 19 }
20 20
21 namespace extensions { 21 namespace extensions {
22 class Extension; 22 class Extension;
23 } 23 }
24 24
25 namespace gfx {
26 class Rect;
27 }
28
25 namespace application_launch { 29 namespace application_launch {
26 30
27 struct LaunchParams { 31 struct LaunchParams {
28 LaunchParams(Profile* profile, 32 LaunchParams(Profile* profile,
29 const extensions::Extension* extension, 33 const extensions::Extension* extension,
30 extension_misc::LaunchContainer container, 34 extension_misc::LaunchContainer container,
31 WindowOpenDisposition disposition); 35 WindowOpenDisposition disposition);
32 36
33 // The profile to load the application from. 37 // The profile to load the application from.
34 Profile* profile; 38 Profile* profile;
(...skipping 15 matching lines...) Expand all
50 const CommandLine* command_line; 54 const CommandLine* command_line;
51 55
52 // If non-empty, the current directory from which any relative paths on the 56 // If non-empty, the current directory from which any relative paths on the
53 // command line should be expanded from. 57 // command line should be expanded from.
54 FilePath current_directory; 58 FilePath current_directory;
55 }; 59 };
56 60
57 // Open the application in a way specified by |params|. 61 // Open the application in a way specified by |params|.
58 content::WebContents* OpenApplication(const LaunchParams& params); 62 content::WebContents* OpenApplication(const LaunchParams& params);
59 63
60 // Open |url| in an app shortcut window. If |update_shortcut| is true, 64 // Open |url| in an app shortcut window. |override_bounds| param is optional.
61 // update the name, description, and favicon of the shortcut.
62 // There are two kinds of app shortcuts: Shortcuts to a URL, 65 // There are two kinds of app shortcuts: Shortcuts to a URL,
63 // and shortcuts that open an installed application. This function 66 // and shortcuts that open an installed application. This function
64 // is used to open the former. To open the latter, use 67 // is used to open the former. To open the latter, use
65 // application_launch::OpenApplication(). 68 // application_launch::OpenApplication().
66 content::WebContents* OpenAppShortcutWindow(Profile* profile, 69 content::WebContents* OpenAppShortcutWindow(Profile* profile,
67 const GURL& url); 70 const GURL& url,
71 const gfx::Rect& override_bounds);
68 72
69 } // namespace application_launch 73 } // namespace application_launch
70 74
71 #endif // CHROME_BROWSER_UI_EXTENSIONS_APPLICATION_LAUNCH_H_ 75 #endif // CHROME_BROWSER_UI_EXTENSIONS_APPLICATION_LAUNCH_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/existing_user_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