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

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

Issue 273048: Allow extensions to pin tabs:... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 2 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 [ 1 [
2 { 2 {
3 "namespace": "extension", 3 "namespace": "extension",
4 "types": [ 4 "types": [
5 { 5 {
6 "id": "Port", 6 "id": "Port",
7 "type": "object", 7 "type": "object",
8 "description": "An object which allows two way communication with other pages.", 8 "description": "An object which allows two way communication with other pages.",
9 "properties": { 9 "properties": {
10 "name": {"type": "string"}, 10 "name": {"type": "string"},
(...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after
330 "namespace": "tabs", 330 "namespace": "tabs",
331 "types": [ 331 "types": [
332 { 332 {
333 "id": "Tab", 333 "id": "Tab",
334 "type": "object", 334 "type": "object",
335 "properties": { 335 "properties": {
336 "id": {"type": "integer", "minimum": 0, "description": "The ID of the tab. Tab IDs are unique within a browser session."}, 336 "id": {"type": "integer", "minimum": 0, "description": "The ID of the tab. Tab IDs are unique within a browser session."},
337 "index": {"type": "integer", "minimum": 0, "description": "The zero-ba sed index of the tab within its window."}, 337 "index": {"type": "integer", "minimum": 0, "description": "The zero-ba sed index of the tab within its window."},
338 "windowId": {"type": "integer", "minimum": 0, "description": "The ID o f the window the tab is contained within."}, 338 "windowId": {"type": "integer", "minimum": 0, "description": "The ID o f the window the tab is contained within."},
339 "selected": {"type": "boolean", "description": "Whether the tab is sel ected."}, 339 "selected": {"type": "boolean", "description": "Whether the tab is sel ected."},
340 "pinned": {"type": "boolean", "description": "Whether the tab is pinne d."},
340 "url": {"type": "string", "description": "The URL the tab is displayin g."}, 341 "url": {"type": "string", "description": "The URL the tab is displayin g."},
341 "title": {"type": "string", "optional": true, "description": "The titl e of the tab. This may not be available if the tab is loading."}, 342 "title": {"type": "string", "optional": true, "description": "The titl e of the tab. This may not be available if the tab is loading."},
342 "favIconUrl": {"type": "string", "optional": true, "description": "The URL of the tab's favicon. This may not be available if the tab is loading."}, 343 "favIconUrl": {"type": "string", "optional": true, "description": "The URL of the tab's favicon. This may not be available if the tab is loading."},
343 "status": {"type": "string", "optional": true, "description": "Either <em>loading</em> or <em>complete</em>."} 344 "status": {"type": "string", "optional": true, "description": "Either <em>loading</em> or <em>complete</em>."}
344 } 345 }
345 } 346 }
346 ], 347 ],
347 "functions": [ 348 "functions": [
348 { 349 {
349 "name": "get", 350 "name": "get",
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
453 }, 454 },
454 "url": { 455 "url": {
455 "type": "string", 456 "type": "string",
456 "optional": true, 457 "optional": true,
457 "description": "The URL to navigate the tab to initially. Fully- qualified URLs must include a scheme (i.e. 'http://www.google.com', not 'www.goo gle.com'). Relative URLs will be relative to the current page within the extensi on. Defaults to the New Tab Page." 458 "description": "The URL to navigate the tab to initially. Fully- qualified URLs must include a scheme (i.e. 'http://www.google.com', not 'www.goo gle.com'). Relative URLs will be relative to the current page within the extensi on. Defaults to the New Tab Page."
458 }, 459 },
459 "selected": { 460 "selected": {
460 "type": "boolean", 461 "type": "boolean",
461 "optional": true, 462 "optional": true,
462 "description": "Whether the tab should become the selected tab i n the window. Defaults to <var>true</var>" 463 "description": "Whether the tab should become the selected tab i n the window. Defaults to <var>true</var>"
464 },
465 "pinned": {
466 "type": "boolean",
467 "optional": true,
468 "description": "Whether the tab should become pinned."
463 } 469 }
464 } 470 }
465 }, 471 },
466 { 472 {
467 "type": "function", 473 "type": "function",
468 "name": "callback", 474 "name": "callback",
469 "optional": true, 475 "optional": true,
470 "parameters": [ 476 "parameters": [
471 { 477 {
472 "name": "tab", 478 "name": "tab",
473 "$ref": "Tab", 479 "$ref": "Tab",
474 "description": "Details about the created tab. Will contain the ID of the new tab." 480 "description": "Details about the created tab. Will contain the ID of the new tab."
475 } 481 }
476 ] 482 ]
477 } 483 }
478 ] 484 ]
479 }, 485 },
480 { 486 {
481 "name": "update", 487 "name": "update",
482 "type": "function", 488 "type": "function",
483 "description": "Modify the properties of a tab. Properties that are not specified in <var>updateProperties</var> are not modified.", 489 "description": "Modify the properties of a tab. Properties that are not specified in <var>updateProperties</var> are not modified.",
484 "parameters": [ 490 "parameters": [
485 {"type": "integer", "name": "tabId", "minimum": 0}, 491 {"type": "integer", "name": "tabId", "minimum": 0},
486 { 492 {
487 "type": "object", 493 "type": "object",
488 "name": "updateProperties", 494 "name": "updateProperties",
489 "properties": { 495 "properties": {
490 "url": {"type": "string", "optional": true}, 496 "url": {"type": "string", "optional": true},
491 "selected": {"type": "boolean", "optional": true} 497 "selected": {"type": "boolean", "optional": true},
498 "pinned": {"type": "boolean", "optional": true}
492 } 499 }
493 }, 500 },
494 { 501 {
495 "type": "function", 502 "type": "function",
496 "name": "callback", 503 "name": "callback",
497 "optional": true, 504 "optional": true,
498 "parameters": [ 505 "parameters": [
499 { 506 {
500 "name": "tab", 507 "name": "tab",
501 "$ref": "Tab", 508 "$ref": "Tab",
(...skipping 774 matching lines...) Expand 10 before | Expand all | Expand 10 after
1276 "type": "function", 1283 "type": "function",
1277 "description": "Logs a message during internal unit testing.", 1284 "description": "Logs a message during internal unit testing.",
1278 "parameters": [ 1285 "parameters": [
1279 {"type": "string", "name": "message"} 1286 {"type": "string", "name": "message"}
1280 ] 1287 ]
1281 } 1288 }
1282 ], 1289 ],
1283 "events": [] 1290 "events": []
1284 } 1291 }
1285 ] 1292 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698