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

Side by Side Diff: chrome/common/mac/app_mode_common.h

Issue 64803005: File association for app shims. (Mac) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Missed a comma. Created 6 years, 7 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
« no previous file with comments | « chrome/common/extensions/file_handler_info.cc ('k') | chrome/common/mac/app_mode_common.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_COMMON_MAC_APP_MODE_COMMON_H_ 5 #ifndef CHROME_COMMON_MAC_APP_MODE_COMMON_H_
6 #define CHROME_COMMON_MAC_APP_MODE_COMMON_H_ 6 #define CHROME_COMMON_MAC_APP_MODE_COMMON_H_
7 7
8 #import <Foundation/Foundation.h> 8 #import <Foundation/Foundation.h>
9 9
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
(...skipping 23 matching lines...) Expand all
34 34
35 // The process ID of the Chrome process that launched the app shim. 35 // The process ID of the Chrome process that launched the app shim.
36 // The presence of this switch instructs the app shim to send LaunchApp with 36 // The presence of this switch instructs the app shim to send LaunchApp with
37 // launch_now = false. This associates the shim without launching the app. 37 // launch_now = false. This associates the shim without launching the app.
38 extern const char kLaunchedByChromeProcessId[]; 38 extern const char kLaunchedByChromeProcessId[];
39 39
40 // Path to an app shim bundle. Indicates to Chrome that this shim attempted to 40 // Path to an app shim bundle. Indicates to Chrome that this shim attempted to
41 // launch but failed. 41 // launch but failed.
42 extern const char kAppShimError[]; 42 extern const char kAppShimError[];
43 43
44 // Keys for specifying the file types handled by an app.
45 extern NSString* const kCFBundleDocumentTypesKey;
46 extern NSString* const kCFBundleTypeExtensionsKey;
47 extern NSString* const kCFBundleTypeIconFileKey;
48 extern NSString* const kCFBundleTypeNameKey;
49 extern NSString* const kCFBundleTypeMIMETypesKey;
50 extern NSString* const kCFBundleTypeRoleKey;
51 extern NSString* const kBundleTypeRoleViewer;
52
44 // The display name of the bundle as shown in Finder and the Dock. For localized 53 // The display name of the bundle as shown in Finder and the Dock. For localized
45 // bundles, this overrides the bundle's file name. 54 // bundles, this overrides the bundle's file name.
46 extern NSString* const kCFBundleDisplayNameKey; 55 extern NSString* const kCFBundleDisplayNameKey;
47 56
48 // The key specifying whether the display name should be localized. This makes 57 // The key specifying whether the display name should be localized. This makes
49 // Finder look in localization folders in the app bundle for a display name. 58 // Finder look in localization folders in the app bundle for a display name.
50 // (e.g. Content/Resources/en.lproj/) 59 // (e.g. Content/Resources/en.lproj/)
51 extern NSString* const kLSHasLocalizedDisplayNameKey; 60 extern NSString* const kLSHasLocalizedDisplayNameKey;
52 61
53 // The key under which the browser's bundle ID will be stored in the 62 // The key under which the browser's bundle ID will be stored in the
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 base::FilePath profile_dir; 143 base::FilePath profile_dir;
135 }; 144 };
136 145
137 // Check that the socket and its parent directory have the correct permissions 146 // Check that the socket and its parent directory have the correct permissions
138 // and are owned by the user. 147 // and are owned by the user.
139 void VerifySocketPermissions(const base::FilePath& socket_path); 148 void VerifySocketPermissions(const base::FilePath& socket_path);
140 149
141 } // namespace app_mode 150 } // namespace app_mode
142 151
143 #endif // CHROME_COMMON_MAC_APP_MODE_COMMON_H_ 152 #endif // CHROME_COMMON_MAC_APP_MODE_COMMON_H_
OLDNEW
« no previous file with comments | « chrome/common/extensions/file_handler_info.cc ('k') | chrome/common/mac/app_mode_common.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698