| OLD | NEW |
| 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 19 matching lines...) Expand all Loading... |
| 30 extern const char kAppShimSocketSymlinkName[]; | 30 extern const char kAppShimSocketSymlinkName[]; |
| 31 | 31 |
| 32 // Special app mode id used for the App Launcher. | 32 // Special app mode id used for the App Launcher. |
| 33 extern const char kAppListModeId[]; | 33 extern const char kAppListModeId[]; |
| 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 // Keys for specifying the file types handled by an app. |
| 41 extern NSString* const kCFBundleDocumentTypesKey; |
| 42 extern NSString* const kCFBundleTypeExtensionsKey; |
| 43 extern NSString* const kCFBundleTypeIconFileKey; |
| 44 extern NSString* const kCFBundleTypeNameKey; |
| 45 extern NSString* const kCFBundleTypeMIMETypesKey; |
| 46 extern NSString* const kCFBundleTypeRoleKey; |
| 47 extern NSString* const kBundleTypeRoleViewer; |
| 48 |
| 40 // The display name of the bundle as shown in Finder and the Dock. For localized | 49 // The display name of the bundle as shown in Finder and the Dock. For localized |
| 41 // bundles, this overrides the bundle's file name. | 50 // bundles, this overrides the bundle's file name. |
| 42 extern NSString* const kCFBundleDisplayNameKey; | 51 extern NSString* const kCFBundleDisplayNameKey; |
| 43 | 52 |
| 44 // The key specifying whether the display name should be localized. This makes | 53 // The key specifying whether the display name should be localized. This makes |
| 45 // Finder look in localization folders in the app bundle for a display name. | 54 // Finder look in localization folders in the app bundle for a display name. |
| 46 // (e.g. Content/Resources/en.lproj/) | 55 // (e.g. Content/Resources/en.lproj/) |
| 47 extern NSString* const kLSHasLocalizedDisplayNameKey; | 56 extern NSString* const kLSHasLocalizedDisplayNameKey; |
| 48 | 57 |
| 49 // The key under which the browser's bundle ID will be stored in the | 58 // 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 Loading... |
| 130 base::FilePath profile_dir; | 139 base::FilePath profile_dir; |
| 131 }; | 140 }; |
| 132 | 141 |
| 133 // Check that the socket and its parent directory have the correct permissions | 142 // Check that the socket and its parent directory have the correct permissions |
| 134 // and are owned by the user. | 143 // and are owned by the user. |
| 135 void VerifySocketPermissions(const base::FilePath& socket_path); | 144 void VerifySocketPermissions(const base::FilePath& socket_path); |
| 136 | 145 |
| 137 } // namespace app_mode | 146 } // namespace app_mode |
| 138 | 147 |
| 139 #endif // CHROME_COMMON_MAC_APP_MODE_COMMON_H_ | 148 #endif // CHROME_COMMON_MAC_APP_MODE_COMMON_H_ |
| OLD | NEW |