summaryrefslogtreecommitdiffstats
path: root/extensions
diff options
context:
space:
mode:
authorfinnur@chromium.org <finnur@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-10-11 13:12:34 +0000
committerfinnur@chromium.org <finnur@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-10-11 13:12:34 +0000
commit3658534f9be85c5e5c2ea071ec21c0b1f3021728 (patch)
treea4400b0d77044bcf628f1d3cc1d8008b43352c9a /extensions
parentdf8c45110a92a4383ae2b834f60dc5d9c41eeb64 (diff)
downloadchromium_src-3658534f9be85c5e5c2ea071ec21c0b1f3021728.zip
chromium_src-3658534f9be85c5e5c2ea071ec21c0b1f3021728.tar.gz
chromium_src-3658534f9be85c5e5c2ea071ec21c0b1f3021728.tar.bz2
Implement first part of supporting global extension commands.
This first part simply reads the optional "global" flag from the manifest and registers the shortcut as global if it is set to true. The intent is to let developers register Ctrl+Shift+[0..9] (and nothing else) as global shortcuts but let users override that -- delete the shortcut, change it to whatever other combination (not restricted to Ctrl+Shift+[0..9] or even make it non-global. There's no UI at the moment to do so, but that is a separate CL that is almost ready. This CL implements this functionality for Windows and stubs out the other platforms. The GTK stub has been fleshed out in parallel, but that's also another CL. BUG=302437 R=erg@chromium.org, sky@chromium.org, thakis@chromium.org, yoz@chromium.org Review URL: https://codereview.chromium.org/23812010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@228176 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'extensions')
-rw-r--r--extensions/common/manifest_constants.cc1
-rw-r--r--extensions/common/manifest_constants.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/extensions/common/manifest_constants.cc b/extensions/common/manifest_constants.cc
index dccf628..c03e3f4 100644
--- a/extensions/common/manifest_constants.cc
+++ b/extensions/common/manifest_constants.cc
@@ -45,6 +45,7 @@ const char kFileHandlers[] = "file_handlers";
const char kFileHandlerExtensions[] = "extensions";
const char kFileHandlerTitle[] = "title";
const char kFileHandlerTypes[] = "types";
+const char kGlobal[] = "global";
const char kHomepageURL[] = "homepage_url";
const char kIcons[] = "icons";
const char kId[] = "id";
diff --git a/extensions/common/manifest_constants.h b/extensions/common/manifest_constants.h
index ca70780..bf78fa5 100644
--- a/extensions/common/manifest_constants.h
+++ b/extensions/common/manifest_constants.h
@@ -47,6 +47,7 @@ extern const char kFileHandlerTitle[];
extern const char kFileHandlerTypes[];
extern const char kFileFilters[];
extern const char kFileBrowserHandlers[];
+extern const char kGlobal[];
extern const char kMediaGalleriesHandlers[];
extern const char kHomepageURL[];
extern const char kIcons[];