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

Side by Side Diff: base/mac/launch_services_util.h

Issue 2416313002: Prepare chrome_main_app_mode_mac.mm for 10.9 (Closed)
Patch Set: Cleaned up Created 4 years, 1 month 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
« no previous file with comments | « no previous file | base/mac/launch_services_util.mm » ('j') | base/mac/launch_services_util.mm » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 BASE_MAC_LAUNCH_SERVICES_UTIL_H_ 5 #ifndef BASE_MAC_LAUNCH_SERVICES_UTIL_H_
6 #define BASE_MAC_LAUNCH_SERVICES_UTIL_H_ 6 #define BASE_MAC_LAUNCH_SERVICES_UTIL_H_
7 7
8 #import <AppKit/AppKit.h> 8 #import <AppKit/AppKit.h>
9 9
10 #include "base/base_export.h" 10 #include "base/base_export.h"
11 #include "base/command_line.h" 11 #include "base/command_line.h"
12 #include "base/files/file_path.h" 12 #include "base/files/file_path.h"
13 #include "base/process/process.h" 13 #include "base/process/process.h"
14 14
15 namespace base { 15 namespace base {
16 namespace mac { 16 namespace mac {
17 17
18 // Launches the application bundle at |bundle_path|, passing argv[1..] from 18 // Launches the application bundle at |bundle_path|, passing argv[1..] from
19 // |command_line| as command line arguments if the app isn't already running. 19 // |command_line| as command line arguments if the app isn't already running.
20 // |launch_options| are passed directly to 20 // |launch_options| are passed directly to
21 // -[NSWorkspace launchApplicationAtURL:options:configuration:error:]. 21 // -[NSWorkspace launchApplicationAtURL:options:configuration:error:]. If
22 // provided, |descriptor| is also passed directly to it.
22 // Returns a valid process if the app was successfully launched. 23 // Returns a valid process if the app was successfully launched.
23 BASE_EXPORT Process 24 BASE_EXPORT Process
24 OpenApplicationWithPath(const FilePath& bundle_path, 25 OpenApplicationWithPath(const FilePath& bundle_path,
25 const CommandLine& command_line, 26 const CommandLine& command_line,
26 NSWorkspaceLaunchOptions launch_options); 27 NSWorkspaceLaunchOptions launch_options,
28 NSAppleEventDescriptor* descriptor);
27 29
28 } // namespace mac 30 } // namespace mac
29 } // namespace base 31 } // namespace base
30 32
31 #endif // BASE_MAC_LAUNCH_SERVICES_UTIL_H_ 33 #endif // BASE_MAC_LAUNCH_SERVICES_UTIL_H_
OLDNEW
« no previous file with comments | « no previous file | base/mac/launch_services_util.mm » ('j') | base/mac/launch_services_util.mm » ('J')

Powered by Google App Engine
This is Rietveld 408576698