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

Unified Diff: chrome/common/app_mode_common_mac.h

Issue 7691001: Move Mac-specific files in chrome/common to chrome/common/mac (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | chrome/common/app_mode_common_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/app_mode_common_mac.h
===================================================================
--- chrome/common/app_mode_common_mac.h (revision 97454)
+++ chrome/common/app_mode_common_mac.h (working copy)
@@ -1,67 +0,0 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CHROME_COMMON_APP_MODE_COMMON_MAC_H_
-#define CHROME_COMMON_APP_MODE_COMMON_MAC_H_
-#pragma once
-
-#include <CoreFoundation/CoreFoundation.h>
-
-// This file contains constants, interfaces, etc. which are common to the
-// browser application and the app mode loader (a.k.a. shim).
-
-namespace app_mode {
-
-// The key under which the browser's bundle ID will be stored in the
-// app mode launcher bundle's Info.plist.
-extern const CFStringRef kBrowserBundleIDKey;
-
-// The key under which to record the path to the (user-visible) application
-// bundle; this key is recorded under the ID given by |kAppPrefsID|.
-extern const CFStringRef kLastRunAppBundlePathPrefsKey;
-
-// Current major/minor version numbers of |ChromeAppModeInfo| (defined below).
-const unsigned kCurrentChromeAppModeInfoMajorVersion = 1;
-const unsigned kCurrentChromeAppModeInfoMinorVersion = 0;
-
-// The structure used to pass information from the app mode loader to the
-// (browser) framework. This is versioned using major and minor version numbers,
-// written below as v<major>.<minor>. Version-number checking is done by the
-// framework, and the framework must accept all structures with the same major
-// version number. It may refuse to load if the major version of the structure
-// is different from the one it accepts.
-struct ChromeAppModeInfo {
- // Major and minor version number of this structure.
- unsigned major_version; // Required: all versions
- unsigned minor_version; // Required: all versions
-
- // Original |argc| and |argv|.
- int argc; // Required: v1.0
- char** argv; // Required: v1.0
-
- // Versioned path to the browser which is being loaded.
- char* chrome_versioned_path; // Required: v1.0
-
- // Information about the App Mode shortcut:
-
- // Path to the App Mode Loader application bundle originally run.
- char* app_mode_bundle_path; // Optional: v1.0
-
- // Short ID string, preferably derived from |app_mode_short_name|. Should be
- // safe for the file system.
- char* app_mode_id; // Required: v1.0
-
- // Short (e.g., one-word) UTF8-encoded name for the shortcut.
- char* app_mode_short_name; // Optional: v1.0
-
- // Unrestricted (e.g., several-word) UTF8-encoded name for the shortcut.
- char* app_mode_name; // Optional: v1.0
-
- // URL for the shortcut. Must be a valid URL.
- char* app_mode_url; // Required: v1.0
-};
-
-} // namespace app_mode
-
-#endif // CHROME_COMMON_APP_MODE_COMMON_MAC_H_
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | chrome/common/app_mode_common_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698