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

Side by Side Diff: chrome/common/extensions/extension_manifest_constants.cc

Issue 23445013: Parse media keys for named command in the manifest. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nit fix. Created 7 years, 3 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
OLDNEW
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/extensions/extension_manifest_constants.h" 5 #include "chrome/common/extensions/extension_manifest_constants.h"
6 6
7 namespace extension_manifest_values { 7 namespace extension_manifest_values {
8 const char kBrowserActionCommandEvent[] = "_execute_browser_action"; 8 const char kBrowserActionCommandEvent[] = "_execute_browser_action";
9 const char kIncognitoSplit[] = "split"; 9 const char kIncognitoSplit[] = "split";
10 const char kIncognitoSpanning[] = "spanning"; 10 const char kIncognitoSpanning[] = "spanning";
11 const char kIntentDispositionWindow[] = "window"; 11 const char kIntentDispositionWindow[] = "window";
12 const char kIntentDispositionInline[] = "inline"; 12 const char kIntentDispositionInline[] = "inline";
13 const char kIsolatedStorage[] = "storage"; 13 const char kIsolatedStorage[] = "storage";
14 const char kKeybindingPlatformChromeOs[] = "chromeos"; 14 const char kKeybindingPlatformChromeOs[] = "chromeos";
15 const char kKeybindingPlatformDefault[] = "default"; 15 const char kKeybindingPlatformDefault[] = "default";
16 const char kKeybindingPlatformLinux[] = "linux"; 16 const char kKeybindingPlatformLinux[] = "linux";
17 const char kKeybindingPlatformMac[] = "mac"; 17 const char kKeybindingPlatformMac[] = "mac";
18 const char kKeybindingPlatformWin[] = "windows"; 18 const char kKeybindingPlatformWin[] = "windows";
19 const char kKeyAlt[] = "Alt"; 19 const char kKeyAlt[] = "Alt";
20 const char kKeyComma[] = "Comma"; 20 const char kKeyComma[] = "Comma";
21 const char kKeyCommand[] = "Command"; 21 const char kKeyCommand[] = "Command";
22 const char kKeyCtrl[] = "Ctrl"; 22 const char kKeyCtrl[] = "Ctrl";
23 const char kKeyDel[] = "Delete"; 23 const char kKeyDel[] = "Delete";
24 const char kKeyDown[] = "Down"; 24 const char kKeyDown[] = "Down";
25 const char kKeyEnd[] = "End"; 25 const char kKeyEnd[] = "End";
26 const char kKeyHome[] = "Home"; 26 const char kKeyHome[] = "Home";
27 const char kKeyIns[] = "Insert"; 27 const char kKeyIns[] = "Insert";
28 const char kKeyLeft[] = "Left"; 28 const char kKeyLeft[] = "Left";
29 const char kKeyMacCtrl[] = "MacCtrl"; 29 const char kKeyMacCtrl[] = "MacCtrl";
30 const char kKeyMediaNextTrack[] = "MediaNextTrack";
31 const char kKeyMediaPlayPause[] = "MediaPlayPause";
32 const char kKeyMediaPrevTrack[] = "MediaPrevTrack";
33 const char kKeyMediaStop[] = "MediaStop";
30 const char kKeyPgDwn[] = "PageDown"; 34 const char kKeyPgDwn[] = "PageDown";
31 const char kKeyPgUp[] = "PageUp"; 35 const char kKeyPgUp[] = "PageUp";
32 const char kKeyPeriod[] = "Period"; 36 const char kKeyPeriod[] = "Period";
33 const char kKeyRight[] = "Right"; 37 const char kKeyRight[] = "Right";
34 const char kKeySeparator[] = "+"; 38 const char kKeySeparator[] = "+";
35 const char kKeyShift[] = "Shift"; 39 const char kKeyShift[] = "Shift";
36 const char kKeyTab[] = "Tab"; 40 const char kKeyTab[] = "Tab";
37 const char kKeyUp[] = "Up"; 41 const char kKeyUp[] = "Up";
38 const char kRunAtDocumentStart[] = "document_start"; 42 const char kRunAtDocumentStart[] = "document_start";
39 const char kRunAtDocumentEnd[] = "document_end"; 43 const char kRunAtDocumentEnd[] = "document_end";
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 const char kInvalidJsList[] = 248 const char kInvalidJsList[] =
245 "Required value 'content_scripts[*].js' is invalid."; 249 "Required value 'content_scripts[*].js' is invalid.";
246 const char kInvalidKey[] = 250 const char kInvalidKey[] =
247 "Value 'key' is missing or invalid."; 251 "Value 'key' is missing or invalid.";
248 const char kInvalidKeyBinding[] = 252 const char kInvalidKeyBinding[] =
249 "Invalid value for 'commands[*].*': *."; 253 "Invalid value for 'commands[*].*': *.";
250 const char kInvalidKeyBindingDescription[] = 254 const char kInvalidKeyBindingDescription[] =
251 "Invalid value for 'commands[*].description'."; 255 "Invalid value for 'commands[*].description'.";
252 const char kInvalidKeyBindingDictionary[] = 256 const char kInvalidKeyBindingDictionary[] =
253 "Contents of 'commands[*]' invalid."; 257 "Contents of 'commands[*]' invalid.";
258 const char kInvalidKeyBindingMediaKeyWithModifier[] =
259 "Media key cannot have any modifier for 'commands[*].*': *.";
254 const char kInvalidKeyBindingMissingPlatform[] = 260 const char kInvalidKeyBindingMissingPlatform[] =
255 "Could not find key specification for 'command[*].*': Either specify a key " 261 "Could not find key specification for 'command[*].*': Either specify a key "
256 "for '*', or specify a default key."; 262 "for '*', or specify a default key.";
257 const char kInvalidKeyBindingTooMany[] = 263 const char kInvalidKeyBindingTooMany[] =
258 "Too many shortcuts specified for 'commands': The maximum is *."; 264 "Too many shortcuts specified for 'commands': The maximum is *.";
259 const char kInvalidKeyBindingUnknownPlatform[] = 265 const char kInvalidKeyBindingUnknownPlatform[] =
260 "Unknown platform for 'command[*]': *. Valid values are: 'windows', 'mac'" 266 "Unknown platform for 'command[*]': *. Valid values are: 'windows', 'mac'"
261 " 'chromeos', 'linux' and 'default'."; 267 " 'chromeos', 'linux' and 'default'.";
262 const char kInvalidKioskEnabled[] = 268 const char kInvalidKioskEnabled[] =
263 "Invalid value for 'kiosk_enabled'."; 269 "Invalid value for 'kiosk_enabled'.";
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
474 const char kScriptBadgeTitleIgnored[] = 480 const char kScriptBadgeTitleIgnored[] =
475 "default_title specified in script_badge manifest section will not be " 481 "default_title specified in script_badge manifest section will not be "
476 "used."; 482 "used.";
477 const char kWebRequestConflictsWithLazyBackground[] = 483 const char kWebRequestConflictsWithLazyBackground[] =
478 "The 'webRequest' API cannot be used with event pages."; 484 "The 'webRequest' API cannot be used with event pages.";
479 #if defined(OS_CHROMEOS) 485 #if defined(OS_CHROMEOS)
480 const char kIllegalPlugins[] = 486 const char kIllegalPlugins[] =
481 "Extensions cannot install plugins on Chrome OS"; 487 "Extensions cannot install plugins on Chrome OS";
482 #endif 488 #endif
483 } // namespace extension_manifest_errors 489 } // namespace extension_manifest_errors
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698