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

Side by Side Diff: chrome/common/extensions/api/page_action.json

Issue 10914244: Remove support for page_action.icons, and the legacy code surrounding it. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: constants removed Created 8 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 | Annotate | Revision Log
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 [ 5 [
6 { 6 {
7 "namespace": "pageAction", 7 "namespace": "pageAction",
8 "dependencies": [ "tabs" ], 8 "dependencies": [ "tabs" ],
9 "types": [ 9 "types": [
10 { 10 {
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 "38": {"type": "string", "optional": true} 108 "38": {"type": "string", "optional": true}
109 } 109 }
110 } 110 }
111 ], 111 ],
112 "optional": true, 112 "optional": true,
113 "description": "Either a relative image path or a dictionary {si ze -> relative image path} pointing to icon to be set. If the icon is specified as a dictionary, the actual image to be used is chosen depending on screen's pix el density. If the number of image pixels that fit into one screen space unit eq uals <code>scale</code>, then image with size <code>scale</code> * 19 will be se lected. Initially only scales 1 and 2 will be supported. At least one image must be specified. Note that 'details.path = foo' is equivalent to 'details.imageDat a = {'19': foo}'" 113 "description": "Either a relative image path or a dictionary {si ze -> relative image path} pointing to icon to be set. If the icon is specified as a dictionary, the actual image to be used is chosen depending on screen's pix el density. If the number of image pixels that fit into one screen space unit eq uals <code>scale</code>, then image with size <code>scale</code> * 19 will be se lected. Initially only scales 1 and 2 will be supported. At least one image must be specified. Note that 'details.path = foo' is equivalent to 'details.imageDat a = {'19': foo}'"
114 }, 114 },
115 "iconIndex": { 115 "iconIndex": {
116 "type": "integer", 116 "type": "integer",
117 "minimum": 0, 117 "minimum": 0,
118 "description": "<b>Deprecated.</b> The zero-based index into the <b>icons</b> vector specified in the manifest.", 118 "description": "<b>Deprecated.</b> This argument is ignored.",
119 "optional": true 119 "optional": true
120 } 120 }
121 } 121 }
122 }, 122 },
123 { 123 {
124 "type": "function", 124 "type": "function",
125 "name": "callback", 125 "name": "callback",
126 "optional": true, 126 "optional": true,
127 "parameters": [] 127 "parameters": []
128 } 128 }
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 "parameters": [ 182 "parameters": [
183 { 183 {
184 "name": "tab", 184 "name": "tab",
185 "$ref": "tabs.Tab" 185 "$ref": "tabs.Tab"
186 } 186 }
187 ] 187 ]
188 } 188 }
189 ] 189 ]
190 } 190 }
191 ] 191 ]
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/location_bar/page_action_image_view.cc ('k') | chrome/common/extensions/extension.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698