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

Side by Side Diff: chrome/common/app_mode_common_mac.h

Issue 2066004: Mac: app mode loader (shim). (Closed)
Patch Set: more changes per mark + merged ToT Created 10 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
« no previous file with comments | « chrome/chrome_dll.gypi ('k') | chrome/common/app_mode_common_mac.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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_APP_MODE_COMMON_MAC_H_ 5 #ifndef CHROME_COMMON_APP_MODE_COMMON_MAC_H_
6 #define CHROME_COMMON_APP_MODE_COMMON_MAC_H_ 6 #define CHROME_COMMON_APP_MODE_COMMON_MAC_H_
7 7
8 #include <CoreFoundation/CoreFoundation.h> 8 #include <CoreFoundation/CoreFoundation.h>
9 9
10 // This file contains constants, interfaces, etc. which are common to the 10 // This file contains constants, interfaces, etc. which are common to the
11 // browser application and the app mode loader (a.k.a. shim). 11 // browser application and the app mode loader (a.k.a. shim).
12 12
13 namespace app_mode { 13 namespace app_mode {
14 14
15 // The ID under which app mode preferences will be recorded 15 // The ID under which app mode preferences will be recorded
16 // ("org.chromium.Chromium" or "com.google.Chrome"). 16 // ("org.chromium.Chromium" or "com.google.Chrome").
17 extern const CFStringRef kAppPrefsID; 17 extern const CFStringRef kAppPrefsID;
18 18
19 // The key under which to record the path to the (user-visible) application 19 // The key under which to record the path to the (user-visible) application
20 // bundle; this key is recorded under the ID given by |kAppPrefsID|. 20 // bundle; this key is recorded under the ID given by |kAppPrefsID|.
21 extern const CFStringRef kLastRunAppBundlePathPrefsKey; 21 extern const CFStringRef kLastRunAppBundlePathPrefsKey;
22 22
23 // Current major/minor version numbers of |ChromeAppModeInfo| (defined below).
24 const unsigned kCurrentChromeAppModeInfoMajorVersion = 0;
25 const unsigned kCurrentChromeAppModeInfoMinorVersion = 1;
26
27 // The structure used to pass information from the app mode loader to the
28 // (browser) framework. This is versioned using major and minor version numbers,
29 // written below as v<major>.<minor>. Version-number checking is done by the
30 // framework, and the framework must accept all structures with the same major
31 // version number. It may refuse to load if the major version of the structure
32 // is different from the one it accepts.
33 struct ChromeAppModeInfo {
34 // Major and minor version number of this structure.
35 unsigned major_version; // Required: all versions
36 unsigned minor_version; // Required: all versions
37
38 // Original |argc| and |argv|.
39 int argc; // Required: v0.1
40 char** argv; // Required: v0.1
41
42 // Versioned path to the browser which is being loaded.
43 char* chrome_versioned_path; // Required: v0.1
44
45 // Information about the App Mode shortcut:
46
47 // Path to the App Mode Loader application bundle originally run.
48 char* app_mode_bundle_path; // Optional: v0.1
49
50 // Short ID string, preferably derived from |app_mode_short_name|. Should be
51 // safe for the file system.
52 char* app_mode_id; // Required: v0.1
53
54 // Short (e.g., one-word) UTF8-encoded name for the shortcut.
55 char* app_mode_short_name; // Optional: v0.1
56
57 // Unrestricted (e.g., several-word) UTF8-encoded name for the shortcut.
58 char* app_mode_name; // Optional: v0.1
59
60 // URL for the shortcut. Must be a valid URL.
61 char* app_mode_url; // Required: v0.1
62 };
63
23 } // namespace app_mode 64 } // namespace app_mode
24 65
25 #endif // CHROME_COMMON_APP_MODE_COMMON_MAC_H_ 66 #endif // CHROME_COMMON_APP_MODE_COMMON_MAC_H_
OLDNEW
« no previous file with comments | « chrome/chrome_dll.gypi ('k') | chrome/common/app_mode_common_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698