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 #pragma once | 7 #pragma once |
8 | 8 |
9 #import <Foundation/Foundation.h> | 9 #import <Foundation/Foundation.h> |
10 | 10 |
(...skipping 11 matching lines...) Expand all Loading... | |
22 | 22 |
23 // Key for the shortcut ID. | 23 // Key for the shortcut ID. |
24 extern NSString* const kCrAppModeShortcutIDKey; | 24 extern NSString* const kCrAppModeShortcutIDKey; |
25 | 25 |
26 // Key for the app's name. | 26 // Key for the app's name. |
27 extern NSString* const kCrAppModeShortcutNameKey; | 27 extern NSString* const kCrAppModeShortcutNameKey; |
28 | 28 |
29 // Key for the app's URL. | 29 // Key for the app's URL. |
30 extern NSString* const kCrAppModeShortcutURLKey; | 30 extern NSString* const kCrAppModeShortcutURLKey; |
31 | 31 |
32 // Key for the app user data directory. | |
33 extern NSString * const kCrAppModeUserDataDirKey; | |
jeremy
2012/02/21 12:17:59
' *' -> '*'
sail
2012/02/22 22:10:08
Done.
| |
34 | |
32 // When the Chrome browser is run, it stores it's location in the defaults | 35 // When the Chrome browser is run, it stores it's location in the defaults |
33 // system using this key. | 36 // system using this key. |
34 extern NSString* const kLastRunAppBundlePathPrefsKey; | 37 extern NSString* const kLastRunAppBundlePathPrefsKey; |
35 | 38 |
36 // Placeholders used in the app mode loader bundle' Info.plist: | 39 // Placeholders used in the app mode loader bundle' Info.plist: |
37 extern NSString* const kShortcutIdPlaceholder; // Extension shortcut ID. | 40 extern NSString* const kShortcutIdPlaceholder; // Extension shortcut ID. |
38 extern NSString* const kShortcutNamePlaceholder; // Extension name. | 41 extern NSString* const kShortcutNamePlaceholder; // Extension name. |
39 extern NSString* const kShortcutURLPlaceholder; | 42 extern NSString* const kShortcutURLPlaceholder; |
40 // Bundle ID of the Chrome browser bundle. | 43 // Bundle ID of the Chrome browser bundle. |
41 extern NSString* const kShortcutBrowserBundleIDPlaceholder; | 44 extern NSString* const kShortcutBrowserBundleIDPlaceholder; |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
76 | 79 |
77 // Short ID string, preferably derived from |app_mode_short_name|. Should be | 80 // Short ID string, preferably derived from |app_mode_short_name|. Should be |
78 // safe for the file system. | 81 // safe for the file system. |
79 std::string app_mode_id; // Required: v1.0 | 82 std::string app_mode_id; // Required: v1.0 |
80 | 83 |
81 // Unrestricted (e.g., several-word) UTF8-encoded name for the shortcut. | 84 // Unrestricted (e.g., several-word) UTF8-encoded name for the shortcut. |
82 string16 app_mode_name; // Optional: v1.0 | 85 string16 app_mode_name; // Optional: v1.0 |
83 | 86 |
84 // URL for the shortcut. Must be a valid URL. | 87 // URL for the shortcut. Must be a valid URL. |
85 std::string app_mode_url; // Optional: v1.0 | 88 std::string app_mode_url; // Optional: v1.0 |
89 | |
90 // Path to the app's user data directory. | |
91 FilePath user_data_dir; | |
86 }; | 92 }; |
87 | 93 |
88 } // namespace app_mode | 94 } // namespace app_mode |
89 | 95 |
90 #endif // CHROME_COMMON_MAC_APP_MODE_COMMON_H_ | 96 #endif // CHROME_COMMON_MAC_APP_MODE_COMMON_H_ |
OLD | NEW |