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 #include "chrome/common/mac/app_mode_common.h" | 5 #include "chrome/common/mac/app_mode_common.h" |
6 | 6 |
7 namespace app_mode { | 7 namespace app_mode { |
8 | 8 |
9 NSString* const kBrowserBundleIDKey = @"CrBundleIdentifier"; | 9 NSString* const kBrowserBundleIDKey = @"CrBundleIdentifier"; |
10 NSString* const kCrAppModeShortcutIDKey = @"CrAppModeShortcutID"; | 10 NSString* const kCrAppModeShortcutIDKey = @"CrAppModeShortcutID"; |
11 NSString* const kCrAppModeShortcutNameKey = @"CrAppModeShortcutName"; | 11 NSString* const kCrAppModeShortcutNameKey = @"CrAppModeShortcutName"; |
12 NSString* const kCrAppModeShortcutURLKey = @"CrAppModeShortcutURL"; | 12 NSString* const kCrAppModeShortcutURLKey = @"CrAppModeShortcutURL"; |
13 NSString* const kCrAppModeUserDataDirKey = @"CrAppModeUserDataDir"; | 13 NSString* const kCrAppModeUserDataDirKey = @"CrAppModeUserDataDir"; |
14 NSString* const kCrAppModeExtensionPathKey = @"CrAppModeExtensionPath"; | 14 NSString* const kCrAppModeExtensionPathKey = @"CrAppModeExtensionPath"; |
15 | 15 |
16 NSString* const kLastRunAppBundlePathPrefsKey = @"LastRunAppBundlePath"; | 16 NSString* const kLastRunAppBundlePathPrefsKey = @"LastRunAppBundlePath"; |
17 | 17 |
18 NSString* const kShortcutIdPlaceholder = @"APP_MODE_SHORTCUT_ID"; | 18 NSString* const kShortcutIdPlaceholder = @"APP_MODE_SHORTCUT_ID"; |
19 NSString* const kShortcutNamePlaceholder = @"APP_MODE_SHORTCUT_NAME"; | 19 NSString* const kShortcutNamePlaceholder = @"APP_MODE_SHORTCUT_NAME"; |
20 NSString* const kShortcutURLPlaceholder = @"APP_MODE_SHORTCUT_URL"; | 20 NSString* const kShortcutURLPlaceholder = @"APP_MODE_SHORTCUT_URL"; |
21 NSString* const kShortcutBrowserBundleIDPlaceholder = | 21 NSString* const kShortcutBrowserBundleIDPlaceholder = |
22 @"APP_MODE_BROWSER_BUNDLE_ID"; | 22 @"APP_MODE_BROWSER_BUNDLE_ID"; |
23 | 23 |
| 24 static const ChromeAppModeInfo* gAppModeInfo = NULL; |
| 25 |
| 26 void SetAppModeInfo(const ChromeAppModeInfo* info) { |
| 27 gAppModeInfo = info; |
| 28 } |
| 29 |
| 30 const ChromeAppModeInfo* AppModeInfo() { |
| 31 return gAppModeInfo; |
| 32 } |
| 33 |
24 ChromeAppModeInfo::ChromeAppModeInfo() | 34 ChromeAppModeInfo::ChromeAppModeInfo() |
25 : major_version(0), | 35 : major_version(0), |
26 minor_version(0), | 36 minor_version(0), |
27 argc(0), | 37 argc(0), |
28 argv(0) { | 38 argv(0) { |
29 } | 39 } |
30 | 40 |
31 ChromeAppModeInfo::~ChromeAppModeInfo() { | 41 ChromeAppModeInfo::~ChromeAppModeInfo() { |
32 } | 42 } |
33 | 43 |
34 } // namespace app_mode | 44 } // namespace app_mode |
OLD | NEW |