summaryrefslogtreecommitdiffstats
path: root/chrome/common
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/common')
-rw-r--r--chrome/common/chrome_plugin_api.h2
-rw-r--r--chrome/common/gears_api.h17
2 files changed, 16 insertions, 3 deletions
diff --git a/chrome/common/chrome_plugin_api.h b/chrome/common/chrome_plugin_api.h
index af21699..00c4da8 100644
--- a/chrome/common/chrome_plugin_api.h
+++ b/chrome/common/chrome_plugin_api.h
@@ -55,7 +55,7 @@ extern "C" {
// The current version of the API, used by the 'version' field of CPPluginFuncs
// and CPBrowserFuncs.
#define CP_MAJOR_VERSION 0
-#define CP_MINOR_VERSION 5
+#define CP_MINOR_VERSION 6
#define CP_VERSION ((CP_MAJOR_VERSION << 8) | (CP_MINOR_VERSION))
#define CP_GET_MAJOR_VERSION(version) ((version & 0xff00) >> 8)
diff --git a/chrome/common/gears_api.h b/chrome/common/gears_api.h
index a30654b..b0bf1cd 100644
--- a/chrome/common/gears_api.h
+++ b/chrome/common/gears_api.h
@@ -86,6 +86,19 @@ typedef struct _GearsShortcutData {
GearsShortcutIcon icons[4]; // list of icons to use for this shortcut
} GearsShortcutData;
+// Command data for GEARSPLUGINCOMMAND_CREATE_SHORTCUT used in 0.6 and later.
+// This struct is backwards compatible with the first version.
+// http://b/viewIssue?id=1331408 - Chrome sanitizes 'name' for compatibility
+// with older versions of Gears that expect this. 'orig_name' is unsanitized,
+// which allows Gears to do its own validation.
+typedef struct _GearsShortcutData2 {
+ const char* name; // unused - for back compat with above struct
+ const char* url; // the URL that the shortcut should launch
+ const char* description; // an optional description
+ GearsShortcutIcon icons[4]; // list of icons to use for this shortcut
+ const char* orig_name; // the shortcut's unmodified filename (added in 0.6)
+} GearsShortcutData2;
+
// Command data for GEARSPLUGINCOMMAND_GET_SHORTCUT_LIST.
typedef struct _GearsShortcutList {
// Note: these are output params, set by Gears. There are no input params.
@@ -97,8 +110,8 @@ typedef struct _GearsShortcutList {
// Command data for GEARSBROWSERCOMMAND_CREATE_SHORTCUT_DONE
typedef struct _GearsCreateShortcutResult {
- GearsShortcutData* shortcut; // pointer to struct passed to
- // GEARSPLUGINCOMMAND_CREATE_SHORTCUT
+ GearsShortcutData2* shortcut; // pointer to struct passed to
+ // GEARSPLUGINCOMMAND_CREATE_SHORTCUT
CPError result; // CPERR_SUCCESS if shortcut was created, or error otherwise
} GearsCreateShortcutResult;