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

Unified Diff: chrome/common/extensions/docs/server2/test_data/dict_generator/expected_browser_action.json

Issue 10577022: Extensions Docs Server: HandlebarDictGenerator (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: chrome/common/extensions/docs/server2/test_data/dict_generator/expected_browser_action.json
diff --git a/chrome/common/extensions/docs/server2/test_data/dict_generator/expected_browser_action.json b/chrome/common/extensions/docs/server2/test_data/dict_generator/expected_browser_action.json
new file mode 100644
index 0000000000000000000000000000000000000000..e0fc901263e19669ce03b10fb650af58cf196b5a
--- /dev/null
+++ b/chrome/common/extensions/docs/server2/test_data/dict_generator/expected_browser_action.json
@@ -0,0 +1,310 @@
+{
+ "functions": [
+ {
+ "name": "setBadgeBackgroundColor",
+ "parameters": [
+ {
+ "type": "OBJECT",
+ "optional": false,
+ "name": "details",
+ "properties": [
+ {
+ "name": "color",
+ "optional": false,
+ "choices": [
+ {
+ "type": "REF",
+ "ref_type": "ColorArray",
+ "optional": true,
+ "name": "color",
+ "properties": null
+ },
+ {
+ "type": "STRING",
+ "optional": true,
+ "name": "color",
+ "properties": null
+ }
+ ],
+ "type": "CHOICES",
+ "properties": null,
+ "description": "An array of four integers in the range [0,255] that make up the RGBA color of the badge. For example, opaque red is <code>[255, 0, 0, 255]</code>. Can also be a string with a CSS value, with opaque red being <code>#FF0000</code> or <code>#F00</code>."
+ },
+ {
+ "type": "INTEGER",
+ "properties": null,
+ "optional": true,
+ "name": "tabId",
+ "description": "Limits the change to when a particular tab is selected. Automatically resets when the tab is closed."
+ }
+ ]
+ }
+ ],
+ "description": "Sets the background color for the badge."
+ },
+ {
+ "name": "setBadgeText",
+ "parameters": [
+ {
+ "type": "OBJECT",
+ "optional": false,
+ "name": "details",
+ "properties": [
+ {
+ "type": "STRING",
+ "properties": null,
+ "optional": false,
+ "name": "text",
+ "description": "Any number of characters can be passed, but only about four can fit in the space."
+ },
+ {
+ "type": "INTEGER",
+ "properties": null,
+ "optional": true,
+ "name": "tabId",
+ "description": "Limits the change to when a particular tab is selected. Automatically resets when the tab is closed."
+ }
+ ]
+ }
+ ],
+ "description": "Sets the badge text for the browser action. The badge is displayed on top of the icon."
+ },
+ {
+ "name": "setTitle",
+ "parameters": [
+ {
+ "type": "OBJECT",
+ "optional": false,
+ "name": "details",
+ "properties": [
+ {
+ "type": "INTEGER",
+ "properties": null,
+ "optional": true,
+ "name": "tabId",
+ "description": "Limits the change to when a particular tab is selected. Automatically resets when the tab is closed."
+ },
+ {
+ "type": "STRING",
+ "properties": null,
+ "optional": false,
+ "name": "title",
+ "description": "The string the browser action should display when moused over."
+ }
+ ]
+ }
+ ],
+ "description": "Sets the title of the browser action. This shows up in the tooltip."
+ },
+ {
+ "callback": {
+ "name": "callback",
+ "parameters": [
+ {
+ "type": "STRING",
+ "optional": false,
+ "name": "result",
+ "properties": null
+ }
+ ]
+ },
+ "name": "getBadgeText",
+ "parameters": [
+ {
+ "type": "OBJECT",
+ "optional": false,
+ "name": "details",
+ "properties": [
+ {
+ "type": "INTEGER",
+ "properties": null,
+ "optional": true,
+ "name": "tabId",
+ "description": "Specify the tab to get the badge text from. If no tab is specified, the non-tab-specific badge text is returned."
+ }
+ ]
+ }
+ ],
+ "description": "Gets the badge text of the browser action. If no tab is specified, the non-tab-specific badge text is returned."
+ },
+ {
+ "name": "setPopup",
+ "parameters": [
+ {
+ "type": "OBJECT",
+ "optional": false,
+ "name": "details",
+ "properties": [
+ {
+ "type": "INTEGER",
+ "properties": null,
+ "optional": true,
+ "name": "tabId",
+ "description": "Limits the change to when a particular tab is selected. Automatically resets when the tab is closed."
+ },
+ {
+ "type": "STRING",
+ "properties": null,
+ "optional": false,
+ "name": "popup",
+ "description": "The html file to show in a popup. If set to the empty string (''), no popup is shown."
+ }
+ ]
+ }
+ ],
+ "description": "Sets the html document to be opened as a popup when the user clicks on the browser action's icon."
+ },
+ {
+ "callback": {
+ "name": "callback",
+ "parameters": [
+ {
+ "type": "STRING",
+ "optional": false,
+ "name": "result",
+ "properties": null
+ }
+ ]
+ },
+ "name": "getTitle",
+ "parameters": [
+ {
+ "type": "OBJECT",
+ "optional": false,
+ "name": "details",
+ "properties": [
+ {
+ "type": "INTEGER",
+ "properties": null,
+ "optional": true,
+ "name": "tabId",
+ "description": "Specify the tab to get the title from. If no tab is specified, the non-tab-specific title is returned."
+ }
+ ]
+ }
+ ],
+ "description": "Gets the title of the browser action."
+ },
+ {
+ "callback": {
+ "name": "callback",
+ "parameters": [
+ {
+ "type": "REF",
+ "ref_type": "ColorArray",
+ "optional": false,
+ "name": "result",
+ "properties": null
+ }
+ ]
+ },
+ "name": "getBadgeBackgroundColor",
+ "parameters": [
+ {
+ "type": "OBJECT",
+ "optional": false,
+ "name": "details",
+ "properties": [
+ {
+ "type": "INTEGER",
+ "properties": null,
+ "optional": true,
+ "name": "tabId",
+ "description": "Specify the tab to get the badge background color from. If no tab is specified, the non-tab-specific badge background color is returned."
+ }
+ ]
+ }
+ ],
+ "description": "Gets the background color of the browser action."
+ },
+ {
+ "callback": {
+ "name": "callback",
+ "parameters": [
+ {
+ "type": "STRING",
+ "optional": false,
+ "name": "result",
+ "properties": null
+ }
+ ]
+ },
+ "name": "getPopup",
+ "parameters": [
+ {
+ "type": "OBJECT",
+ "optional": false,
+ "name": "details",
+ "properties": [
+ {
+ "type": "INTEGER",
+ "properties": null,
+ "optional": true,
+ "name": "tabId",
+ "description": "Specify the tab to get the popup from. If no tab is specified, the non-tab-specific popup is returned."
+ }
+ ]
+ }
+ ],
+ "description": "Gets the html document set as the popup for this browser action."
+ },
+ {
+ "callback": {
+ "name": "callback"
+ },
+ "name": "setIcon",
+ "parameters": [
+ {
+ "type": "OBJECT",
+ "optional": false,
+ "name": "details",
+ "properties": [
+ {
+ "type": "INTEGER",
+ "properties": null,
+ "optional": true,
+ "name": "tabId",
+ "description": "Limits the change to when a particular tab is selected. Automatically resets when the tab is closed."
+ },
+ {
+ "type": "OBJECT",
+ "properties": [
+ {
+ "type": "ADDITIONAL_PROPERTIES",
+ "optional": false,
+ "name": "additionalProperties",
+ "properties": null
+ }
+ ],
+ "optional": true,
+ "name": "imageData",
+ "description": "Pixel data for an image. Must be an ImageData object (for example, from a <code>canvas</code> element)."
+ },
+ {
+ "type": "STRING",
+ "properties": null,
+ "optional": true,
+ "name": "path",
+ "description": "Relative path to an image in the extension to show in the browser action."
+ }
+ ]
+ }
+ ],
+ "description": "Sets the icon for the browser action. The icon can be specified either as the path to an image file or as the pixel data from a canvas element. Either the <b>path</b> or the <b>imageData</b> property must be specified."
+ }
+ ],
+ "name": "browserAction",
+ "types": [
+ {
+ "item_type": {
+ "type": "INTEGER",
+ "name": "ColorArrayElement",
+ "properties": null
+ },
+ "type": "ARRAY",
+ "name": "ColorArray",
+ "properties": null
+ }
+ ],
+ "properties": null
+}

Powered by Google App Engine
This is Rietveld 408576698