summaryrefslogtreecommitdiffstats
path: root/chrome/common/mac
diff options
context:
space:
mode:
authorjackhou@chromium.org <jackhou@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-04-29 11:07:52 +0000
committerjackhou@chromium.org <jackhou@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-04-29 11:07:52 +0000
commit64505f763b8e787849861185c7f3b9e8729cf136 (patch)
tree76a80b64a7c13a0ec4ad9fe732ca61148cd6b95f /chrome/common/mac
parent24df4224ed1493459f24756a2e95e05ea117bc6f (diff)
downloadchromium_src-64505f763b8e787849861185c7f3b9e8729cf136.zip
chromium_src-64505f763b8e787849861185c7f3b9e8729cf136.tar.gz
chromium_src-64505f763b8e787849861185c7f3b9e8729cf136.tar.bz2
File association for app shims. (Mac)
This enables file associations behind a flag in chrome://flags. This flag will be used in future for file associations on Windows and Linux. BUG=168080 Review URL: https://codereview.chromium.org/64803005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@266840 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/mac')
-rw-r--r--chrome/common/mac/app_mode_common.h9
-rw-r--r--chrome/common/mac/app_mode_common.mm8
2 files changed, 17 insertions, 0 deletions
diff --git a/chrome/common/mac/app_mode_common.h b/chrome/common/mac/app_mode_common.h
index b6e404a..2022217 100644
--- a/chrome/common/mac/app_mode_common.h
+++ b/chrome/common/mac/app_mode_common.h
@@ -41,6 +41,15 @@ extern const char kLaunchedByChromeProcessId[];
// launch but failed.
extern const char kAppShimError[];
+// Keys for specifying the file types handled by an app.
+extern NSString* const kCFBundleDocumentTypesKey;
+extern NSString* const kCFBundleTypeExtensionsKey;
+extern NSString* const kCFBundleTypeIconFileKey;
+extern NSString* const kCFBundleTypeNameKey;
+extern NSString* const kCFBundleTypeMIMETypesKey;
+extern NSString* const kCFBundleTypeRoleKey;
+extern NSString* const kBundleTypeRoleViewer;
+
// The display name of the bundle as shown in Finder and the Dock. For localized
// bundles, this overrides the bundle's file name.
extern NSString* const kCFBundleDisplayNameKey;
diff --git a/chrome/common/mac/app_mode_common.mm b/chrome/common/mac/app_mode_common.mm
index 7f07f32..977bc14 100644
--- a/chrome/common/mac/app_mode_common.mm
+++ b/chrome/common/mac/app_mode_common.mm
@@ -17,6 +17,14 @@ const char kLaunchedByChromeProcessId[] = "launched-by-chrome-process-id";
const char kAppShimError[] = "app-shim-error";
+NSString* const kCFBundleDocumentTypesKey = @"CFBundleDocumentTypes";
+NSString* const kCFBundleTypeExtensionsKey = @"CFBundleTypeExtensions";
+NSString* const kCFBundleTypeIconFileKey = @"CFBundleTypeIconFile";
+NSString* const kCFBundleTypeNameKey = @"CFBundleTypeName";
+NSString* const kCFBundleTypeMIMETypesKey = @"CFBundleTypeMIMETypes";
+NSString* const kCFBundleTypeRoleKey = @"CFBundleTypeRole";
+NSString* const kBundleTypeRoleViewer = @"Viewer";
+
NSString* const kCFBundleDisplayNameKey = @"CFBundleDisplayName";
NSString* const kLSHasLocalizedDisplayNameKey = @"LSHasLocalizedDisplayName";
NSString* const kBrowserBundleIDKey = @"CrBundleIdentifier";