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

Unified Diff: chrome/common/extensions/api/experimental.sidebar.json

Issue 9006027: Rip Out the Sidebar API (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 8 years, 11 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
« no previous file with comments | « chrome/common/common_resources.grd ('k') | chrome/common/extensions/api/extension_api.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/api/experimental.sidebar.json
===================================================================
--- chrome/common/extensions/api/experimental.sidebar.json (revision 116830)
+++ chrome/common/extensions/api/experimental.sidebar.json (working copy)
@@ -1,245 +0,0 @@
-[
- {
- "namespace": "experimental.sidebar",
- "nodoc": true,
- "types": [],
- "functions": [
- {
- "name": "hide",
- "type": "function",
- "description": "Hides sidebar's mini tab for the specified tab and collapses sidebar if it was in 'active' state (see getState). Has no effect if the sidebar is already hidden.",
- "parameters": [
- {
- "type": "object",
- "name": "details",
- "optional": true,
- "properties": {
- "tabId": {
- "type": "integer",
- "minimum": 0,
- "optional": true,
- "description": "Defaults to the selected tab of the <a href='windows.html#current-window'>current window</a>."
- }
- }
- }
- ]
- },
- {
- "name": "show",
- "type": "function",
- "description": "Shows sidebar mini tab (in 'shown' state) for the specified tab. Has no effect if already expanded, otherwise changes status to 'shown'.",
- "parameters": [
- {
- "type": "object",
- "name": "details",
- "optional": true,
- "properties": {
- "tabId": {
- "type": "integer",
- "minimum": 0,
- "optional": true,
- "description": "Defaults to the selected tab of the <a href='windows.html#current-window'>current window</a>."
- }
- }
- }
- ]
- },
- {
- "name": "expand",
- "type": "function",
- "description": "Expands sidebar and switches to the specified content (if it was displaying another extension's sidebar content) for the specified tab. Extension is allowed to expand sidebar only in response to an explicit user gesture.",
- "parameters": [
- {
- "type": "object",
- "name": "details",
- "optional": true,
- "properties": {
- "tabId": {
- "type": "integer",
- "minimum": 0,
- "optional": true,
- "description": "Defaults to the selected tab of the <a href='windows.html#current-window'>current window</a>."
- }
- }
- }
- ]
- },
- {
- "name": "collapse",
- "type": "function",
- "description": "Collapses sidebar for the specified tab. Has no effect if sidebar is not in its 'active' state (see getState).",
- "parameters": [
- {
- "type": "object",
- "name": "details",
- "optional": true,
- "properties": {
- "tabId": {
- "type": "integer",
- "minimum": 0,
- "optional": true,
- "description": "Defaults to the selected tab of the <a href='windows.html#current-window'>current window</a>."
- }
- }
- }
- ]
- },
- {
- "name": "navigate",
- "type": "function",
- "description": "Loads the the specified html file into the sidebar for the specified tab.",
- "parameters": [
- {
- "type": "object",
- "name": "details",
- "properties": {
- "tabId": {
- "type": "integer",
- "minimum": 0,
- "optional": true,
- "description": "Defaults to the selected tab of the <a href='windows.html#current-window'>current window</a>."
- },
- "path": {
- "type": "string",
- "description": "Relative path to the html file in the extension to show in the sidebar."
- }
- }
- }
- ]
- },
- {
- "name": "getState",
- "type": "function",
- "description": "Returns current sidebar state for the specified tab.",
- "parameters": [
- {
- "type": "object",
- "name": "details",
- "optional": true,
- "properties": {
- "tabId": {
- "type": "integer",
- "minimum": 0,
- "optional": true,
- "description": "Defaults to the selected tab of the <a href='windows.html#current-window'>current window</a>."
- }
- }
- },
- {
- "type": "function",
- "name": "callback",
- "parameters": [
- {
- "name": "state",
- "type": "string",
- "enum": ["hidden", "shown", "active"],
- "description": "'hidden' indicates sidebar is not defined for the specified tab (show was never called or hide() was called). Nothing is displayed for this sidebar.<br>'shown' means sidebar is defined for the specified tab; mini tab is displayed for this sidebar. Sidebar UI is either collapsed or displaying a content of some other extension's sidebar.<br>'active' indicates that sidebar is defined for the specified tab; sidebar UI is expanded and displaying this sidebar's content."
- }
- ]
- }
- ]
- },
- {
- "name": "setBadgeText",
- "type": "function",
- "description": "Sets sidebar's mini tab badge text for the specified tab.",
- "parameters": [
- {
- "type": "object",
- "name": "details",
- "properties": {
- "tabId": {
- "type": "integer",
- "minimum": 0,
- "optional": true,
- "description": "Defaults to the selected tab of the <a href='windows.html#current-window'>current window</a>."
- },
- "text": {
- "type": "string",
- "description": "The sidebar's badge text. The badge is displayed on top of the sidebar's icon on the mini tab. Any number of characters can be passed, but only about four can fit in the space."
- }
- }
- }
- ]
- },
- {
- "name": "setIcon",
- "type": "function",
- "description": "Sets sidebar's mini tab icon for the specified tab.",
- "parameters": [
- {
- "type": "object",
- "name": "details",
- "properties": {
- "tabId": {
- "type": "integer",
- "minimum": 0,
- "optional": true,
- "description": "Defaults to the selected tab of the <a href='windows.html#current-window'>current window</a>."
- },
- "imageData": {
- "type": "object",
- "isInstanceOf": "ImageData",
- "properties": {},
- "additionalProperties": { "type": "any" },
- "description": "Pixel data for an image to show on the sidebar's mini tab. Must be an ImageData object (for example, from a <code>canvas</code> element). Only one of the imagePath/imageData parameters all owed. The extension's icon is used by default. The preferred size of the icon is 16x16 pixels, any other size will be scaled to 16x16.",
- "optional": true
- },
- "path": {
- "type": "string",
- "optional": true,
- "description": "Relative path to an image in the extension to show on the sidebar's mini tab. Only one of the imagePath/imageData parameters all owed. The extension's icon is used by default. The preferred size of the icon is 16x16 pixels, any other size will be scaled to 16x16."
- }
- }
- }
- ]
- },
- {
- "name": "setTitle",
- "type": "function",
- "description": "Sets sidebar's mini tab title for the specified tab.",
- "parameters": [
- {
- "type": "object",
- "name": "details",
- "properties": {
- "tabId": {
- "type": "integer",
- "minimum": 0,
- "optional": true,
- "description": "Defaults to the selected tab of the <a href='windows.html#current-window'>current window</a>."
- },
- "title": {
- "type": "string",
- "description": "The sidebar's title. It is displayed in a tooltip over the sidebar's mini tab."
- }
- }
- }
- ]
- }
- ],
- "events": [
- {
- "name": "onStateChanged",
- "type": "function",
- "description": "Notifies about sidebar state changes.",
- "parameters": [
- {
- "type": "object",
- "name": "details",
- "properties": {
- "tabId": {
- "type": "integer",
- "minimum": 0
- },
- "state": {
- "type": "string",
- "enum": ["hidden", "shown", "active"]
- }
- }
- }
- ]
- }
- ]
- }
-]
« no previous file with comments | « chrome/common/common_resources.grd ('k') | chrome/common/extensions/api/extension_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698