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

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

Issue 545068: Allow extensions to add, remove, or change their page action popup. (Closed)
Patch Set: Rebase, to run trybots with test data in place. Created 10 years, 10 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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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_constants.h" 5 #include "chrome/common/extensions/extension_constants.h"
6 6
7 namespace extension_manifest_keys { 7 namespace extension_manifest_keys {
8 8
9 const wchar_t* kAllFrames = L"all_frames"; 9 const wchar_t* kAllFrames = L"all_frames";
10 const wchar_t* kApp = L"app"; 10 const wchar_t* kApp = L"app";
(...skipping 13 matching lines...) Expand all
24 const wchar_t* kMatches = L"matches"; 24 const wchar_t* kMatches = L"matches";
25 const wchar_t* kMinimumChromeVersion = L"minimum_chrome_version"; 25 const wchar_t* kMinimumChromeVersion = L"minimum_chrome_version";
26 const wchar_t* kIncludeGlobs = L"include_globs"; 26 const wchar_t* kIncludeGlobs = L"include_globs";
27 const wchar_t* kExcludeGlobs = L"exclude_globs"; 27 const wchar_t* kExcludeGlobs = L"exclude_globs";
28 const wchar_t* kName = L"name"; 28 const wchar_t* kName = L"name";
29 const wchar_t* kPageActionId = L"id"; 29 const wchar_t* kPageActionId = L"id";
30 const wchar_t* kPageAction = L"page_action"; 30 const wchar_t* kPageAction = L"page_action";
31 const wchar_t* kPageActions = L"page_actions"; 31 const wchar_t* kPageActions = L"page_actions";
32 const wchar_t* kPageActionIcons = L"icons"; 32 const wchar_t* kPageActionIcons = L"icons";
33 const wchar_t* kPageActionDefaultIcon = L"default_icon"; 33 const wchar_t* kPageActionDefaultIcon = L"default_icon";
34 const wchar_t* kPageActionDefaultPopup = L"default_popup";
34 const wchar_t* kPageActionDefaultTitle = L"default_title"; 35 const wchar_t* kPageActionDefaultTitle = L"default_title";
35 const wchar_t* kPageActionPopup = L"popup"; 36 const wchar_t* kPageActionPopup = L"popup";
36 const wchar_t* kPageActionPopupHeight = L"height"; 37 const wchar_t* kPageActionPopupHeight = L"height";
37 const wchar_t* kPageActionPopupPath = L"path"; 38 const wchar_t* kPageActionPopupPath = L"path";
38 const wchar_t* kPermissions = L"permissions"; 39 const wchar_t* kPermissions = L"permissions";
39 const wchar_t* kPlugins = L"plugins"; 40 const wchar_t* kPlugins = L"plugins";
40 const wchar_t* kPluginsPath = L"path"; 41 const wchar_t* kPluginsPath = L"path";
41 const wchar_t* kPluginsPublic = L"public"; 42 const wchar_t* kPluginsPublic = L"public";
42 const wchar_t* kPublicKey = L"key"; 43 const wchar_t* kPublicKey = L"key";
43 const wchar_t* kRunAt = L"run_at"; 44 const wchar_t* kRunAt = L"run_at";
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 const char* kInvalidPageActionIconPath = 127 const char* kInvalidPageActionIconPath =
127 "Invalid value for 'page_action.default_icon'."; 128 "Invalid value for 'page_action.default_icon'.";
128 const char* kInvalidPageActionsList = 129 const char* kInvalidPageActionsList =
129 "Invalid value for 'page_actions'."; 130 "Invalid value for 'page_actions'.";
130 const char* kInvalidPageActionsListSize = 131 const char* kInvalidPageActionsListSize =
131 "Invalid value for 'page_actions'. There can be at most one page action."; 132 "Invalid value for 'page_actions'. There can be at most one page action.";
132 const char* kInvalidPageActionId = 133 const char* kInvalidPageActionId =
133 "Required value 'id' is missing or invalid."; 134 "Required value 'id' is missing or invalid.";
134 const char* kInvalidPageActionDefaultTitle = 135 const char* kInvalidPageActionDefaultTitle =
135 "Invalid value for 'default_title'."; 136 "Invalid value for 'default_title'.";
137 const char* kInvalidPageActionOldAndNewKeys =
138 "Key \"*\" is deprecated. Key \"*\" has the same meaning. You can not "
139 "use both.";
136 const char* kInvalidPageActionPopup = 140 const char* kInvalidPageActionPopup =
137 "Invalid type for page action popup."; 141 "Invalid type for page action popup.";
138 const char* kInvalidPageActionPopupHeight = 142 const char* kInvalidPageActionPopupHeight =
139 "Invalid value for page action popup height [*]."; 143 "Invalid value for page action popup height [*].";
140 const char* kInvalidPageActionPopupPath = 144 const char* kInvalidPageActionPopupPath =
141 "Invalid value for page action popup path [*]."; 145 "Invalid value for page action popup path [*].";
142 const char* kInvalidPageActionTypeValue = 146 const char* kInvalidPageActionTypeValue =
143 "Invalid value for 'page_actions[*].type', expected 'tab' or 'permanent'."; 147 "Invalid value for 'page_actions[*].type', expected 'tab' or 'permanent'.";
144 const char* kInvalidPermissions = 148 const char* kInvalidPermissions =
145 "Required value 'permissions' is missing or invalid."; 149 "Required value 'permissions' is missing or invalid.";
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 "Invalid value for 'options_page'."; 211 "Invalid value for 'options_page'.";
208 } // namespace extension_manifest_errors 212 } // namespace extension_manifest_errors
209 213
210 namespace extension_urls { 214 namespace extension_urls {
211 const char* kGalleryBrowsePrefix = "https://chrome.google.com/extensions"; 215 const char* kGalleryBrowsePrefix = "https://chrome.google.com/extensions";
212 const char* kGalleryDownloadPrefix = 216 const char* kGalleryDownloadPrefix =
213 "https://clients2.googleusercontent.com/crx/download"; 217 "https://clients2.googleusercontent.com/crx/download";
214 const char* kMiniGalleryBrowsePrefix = "https://tools.google.com/chrome/"; 218 const char* kMiniGalleryBrowsePrefix = "https://tools.google.com/chrome/";
215 const char* kMiniGalleryDownloadPrefix = "https://dl-ssl.google.com/chrome/"; 219 const char* kMiniGalleryDownloadPrefix = "https://dl-ssl.google.com/chrome/";
216 } 220 }
OLDNEW
« no previous file with comments | « chrome/common/extensions/extension_constants.h ('k') | chrome/common/extensions/extension_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698