| Index: chrome/common/extensions/api/pageAction.json
|
| diff --git a/chrome/common/extensions/api/pageAction.json b/chrome/common/extensions/api/pageAction.json
|
| deleted file mode 100644
|
| index 5f0031a9da261d886d6f2f731cfe0aa9beac5e4b..0000000000000000000000000000000000000000
|
| --- a/chrome/common/extensions/api/pageAction.json
|
| +++ /dev/null
|
| @@ -1,161 +0,0 @@
|
| -// Copyright (c) 2012 The Chromium Authors. All rights reserved.
|
| -// Use of this source code is governed by a BSD-style license that can be
|
| -// found in the LICENSE file.
|
| -
|
| -[
|
| - {
|
| - "namespace": "pageAction",
|
| - "dependencies": [ "tabs" ],
|
| - "types": [],
|
| - "functions": [
|
| - {
|
| - "name": "show",
|
| - "type": "function",
|
| - "description": "Shows the page action. The page action is shown whenever the tab is selected.",
|
| - "parameters": [
|
| - {"type": "integer", "name": "tabId", "minimum": 0, "description": "The id of the tab for which you want to modify the page action."}
|
| - ]
|
| - },
|
| - {
|
| - "name": "hide",
|
| - "type": "function",
|
| - "description": "Hides the page action.",
|
| - "parameters": [
|
| - {"type": "integer", "name": "tabId", "minimum": 0, "description": "The id of the tab for which you want to modify the page action."}
|
| - ]
|
| - },
|
| - {
|
| - "name": "setTitle",
|
| - "type": "function",
|
| - "description": "Sets the title of the page action. This is displayed in a tooltip over the page action.",
|
| - "parameters": [
|
| - {
|
| - "name": "details",
|
| - "type": "object",
|
| - "properties": {
|
| - "tabId": {"type": "integer", "minimum": 0, "description": "The id of the tab for which you want to modify the page action."},
|
| - "title": {"type": "string", "description": "The tooltip string."}
|
| - }
|
| - }
|
| - ]
|
| - },
|
| - {
|
| - "name": "getTitle",
|
| - "type": "function",
|
| - "description": "Gets the title of the browser action.",
|
| - "parameters": [
|
| - {
|
| - "name": "details",
|
| - "type": "object",
|
| - "properties": {
|
| - "tabId": {
|
| - "type": "integer",
|
| - "description": "Specify the tab to get the title from."
|
| - }
|
| - }
|
| - },
|
| - {
|
| - "type": "function",
|
| - "name": "callback",
|
| - "parameters": [
|
| - {
|
| - "name": "result",
|
| - "type": "string"
|
| - }
|
| - ]
|
| - }
|
| - ]
|
| - },
|
| - {
|
| - "name": "setIcon",
|
| - "type": "function",
|
| - "description": "Sets the icon for the page 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.",
|
| - "parameters": [
|
| - {
|
| - "name": "details",
|
| - "type": "object",
|
| - "properties": {
|
| - "tabId": {"type": "integer", "minimum": 0, "description": "The id of the tab for which you want to modify the page action."},
|
| - "imageData": {
|
| - "type": "object",
|
| - "isInstanceOf": "ImageData",
|
| - "additionalProperties": { "type": "any" },
|
| - "description": "Pixel data for an image. Must be an ImageData object (for example, from a canvas element).",
|
| - "optional": true
|
| - },
|
| - "path": {
|
| - "type": "string",
|
| - "description": "Relative path to an image in the extension to show in the browser action.",
|
| - "optional": true
|
| - },
|
| - "iconIndex": {
|
| - "type": "integer",
|
| - "minimum": 0,
|
| - "description": "<b>Deprecated.</b> The zero-based index into the <b>icons</b> vector specified in the manifest.",
|
| - "optional": true
|
| - }
|
| - }
|
| - }
|
| - ]
|
| - },
|
| - {
|
| - "name": "setPopup",
|
| - "type": "function",
|
| - "description": "Sets the html document to be opened as a popup when the user clicks on the page action's icon.",
|
| - "parameters": [
|
| - {
|
| - "name": "details",
|
| - "type": "object",
|
| - "properties": {
|
| - "tabId": {"type": "integer", "minimum": 0, "description": "The id of the tab for which you want to modify the page action."},
|
| - "popup": {
|
| - "type": "string",
|
| - "description": "The html file to show in a popup. If set to the empty string (''), no popup is shown."
|
| - }
|
| - }
|
| - }
|
| - ]
|
| - },
|
| - {
|
| - "name": "getPopup",
|
| - "type": "function",
|
| - "description": "Gets the html document set as the popup for this browser action.",
|
| - "parameters": [
|
| - {
|
| - "name": "details",
|
| - "type": "object",
|
| - "properties": {
|
| - "tabId": {
|
| - "type": "integer",
|
| - "description": "Specify the tab to get the popup from."
|
| - }
|
| - }
|
| - },
|
| - {
|
| - "type": "function",
|
| - "name": "callback",
|
| - "parameters": [
|
| - {
|
| - "name": "result",
|
| - "type": "string"
|
| - }
|
| - ]
|
| - }
|
| - ]
|
| - }
|
| - ],
|
| - "events": [
|
| - {
|
| - "name": "onClicked",
|
| - "type": "function",
|
| - "description": "Fired when a page action icon is clicked. This event will not fire if the page action has a popup.",
|
| - "parameters": [
|
| - {
|
| - "name": "tab",
|
| - "$ref": "tabs.Tab"
|
| - }
|
| - ]
|
| - }
|
| - ]
|
| - }
|
| -]
|
|
|