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

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

Issue 987583004: Add audible, muted to Tab, c.t.query, c.t.update, and c.t.onUpdated where relevant (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@patch1
Patch Set: rebase Created 5 years, 5 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
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": "tabs", 7 "namespace": "tabs",
8 "description": "Use the <code>chrome.tabs</code> API to interact with the br owser's tab system. You can use this API to create, modify, and rearrange tabs i n the browser.", 8 "description": "Use the <code>chrome.tabs</code> API to interact with the br owser's tab system. You can use this API to create, modify, and rearrange tabs i n the browser.",
9 "types": [ 9 "types": [
10 { 10 {
11 "id": "Tab", 11 "id": "Tab",
12 "type": "object", 12 "type": "object",
13 "properties": { 13 "properties": {
14 "id": {"type": "integer", "minimum": 0, "optional": true, "description ": "The ID of the tab. Tab IDs are unique within a browser session. Under some c ircumstances a Tab may not be assigned an ID, for example when querying foreign tabs using the $(ref:sessions) API, in which case a session ID may be present."} , 14 "id": {"type": "integer", "minimum": 0, "optional": true, "description ": "The ID of the tab. Tab IDs are unique within a browser session. Under some c ircumstances a Tab may not be assigned an ID, for example when querying foreign tabs using the $(ref:sessions) API, in which case a session ID may be present."} ,
15 // TODO(kalman): Investigate how this is ending up as -1 (based on win dow type? a bug?) and whether it should be optional instead. 15 // TODO(kalman): Investigate how this is ending up as -1 (based on win dow type? a bug?) and whether it should be optional instead.
16 "index": {"type": "integer", "minimum": -1, "description": "The zero-b ased index of the tab within its window."}, 16 "index": {"type": "integer", "minimum": -1, "description": "The zero-b ased index of the tab within its window."},
17 "windowId": {"type": "integer", "minimum": 0, "description": "The ID o f the window the tab is contained within."}, 17 "windowId": {"type": "integer", "minimum": 0, "description": "The ID o f the window the tab is contained within."},
18 "openerTabId": {"type": "integer", "minimum": 0, "optional": true, "de scription": "The ID of the tab that opened this tab, if any. This property is on ly present if the opener tab still exists."}, 18 "openerTabId": {"type": "integer", "minimum": 0, "optional": true, "de scription": "The ID of the tab that opened this tab, if any. This property is on ly present if the opener tab still exists."},
19 "selected": {"type": "boolean", "description": "Whether the tab is sel ected.", "deprecated": "Please use $(ref:tabs.Tab.highlighted)."}, 19 "selected": {"type": "boolean", "description": "Whether the tab is sel ected.", "deprecated": "Please use $(ref:tabs.Tab.highlighted)."},
20 "highlighted": {"type": "boolean", "description": "Whether the tab is highlighted."}, 20 "highlighted": {"type": "boolean", "description": "Whether the tab is highlighted."},
21 "active": {"type": "boolean", "description": "Whether the tab is activ e in its window. (Does not necessarily mean the window is focused.)"}, 21 "active": {"type": "boolean", "description": "Whether the tab is activ e in its window. (Does not necessarily mean the window is focused.)"},
22 "pinned": {"type": "boolean", "description": "Whether the tab is pinne d."}, 22 "pinned": {"type": "boolean", "description": "Whether the tab is pinne d."},
23 "audible": {"type": "boolean", "optional": true, "description": "Wheth er the tab has produced sound over the past couple of seconds (but it might not be heard if also muted). Equivalent to whether the speaker audio indicator is sh owing."},
24 "muted": {"type": "boolean", "optional": true, "description": "Whether the tab is prevented from playing sound (but hasn't necessarily recently produc ed sound). Equivalent to whether the muted audio indicator is showing."},
25 "mutedCause": {"type": "string", "optional": true, "description": "Ind icates what caused the muted setting ('', 'user', 'capture', or an extension id) ."},
23 "url": {"type": "string", "optional": true, "description": "The URL th e tab is displaying. This property is only present if the extension's manifest i ncludes the <code>\"tabs\"</code> permission."}, 26 "url": {"type": "string", "optional": true, "description": "The URL th e tab is displaying. This property is only present if the extension's manifest i ncludes the <code>\"tabs\"</code> permission."},
24 "title": {"type": "string", "optional": true, "optional": true, "descr iption": "The title of the tab. This property is only present if the extension's manifest includes the <code>\"tabs\"</code> permission."}, 27 "title": {"type": "string", "optional": true, "optional": true, "descr iption": "The title of the tab. This property is only present if the extension's manifest includes the <code>\"tabs\"</code> permission."},
25 "favIconUrl": {"type": "string", "optional": true, "optional": true, " description": "The URL of the tab's favicon. This property is only present if th e extension's manifest includes the <code>\"tabs\"</code> permission. It may als o be an empty string if the tab is loading."}, 28 "favIconUrl": {"type": "string", "optional": true, "optional": true, " description": "The URL of the tab's favicon. This property is only present if th e extension's manifest includes the <code>\"tabs\"</code> permission. It may als o be an empty string if the tab is loading."},
26 "status": {"type": "string", "optional": true, "description": "Either <em>loading</em> or <em>complete</em>."}, 29 "status": {"type": "string", "optional": true, "description": "Either <em>loading</em> or <em>complete</em>."},
27 "incognito": {"type": "boolean", "description": "Whether the tab is in an incognito window."}, 30 "incognito": {"type": "boolean", "description": "Whether the tab is in an incognito window."},
28 "width": {"type": "integer", "optional": true, "description": "The wid th of the tab in pixels."}, 31 "width": {"type": "integer", "optional": true, "description": "The wid th of the tab in pixels."},
29 "height": {"type": "integer", "optional": true, "description": "The he ight of the tab in pixels."}, 32 "height": {"type": "integer", "optional": true, "description": "The he ight of the tab in pixels."},
30 "sessionId": {"type": "string", "optional": true, "description": "The session ID used to uniquely identify a Tab obtained from the $(ref:sessions) API ."} 33 "sessionId": {"type": "string", "optional": true, "description": "The session ID used to uniquely identify a Tab obtained from the $(ref:sessions) API ."}
31 } 34 }
32 }, 35 },
(...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after
386 "active": { 389 "active": {
387 "type": "boolean", 390 "type": "boolean",
388 "optional": true, 391 "optional": true,
389 "description": "Whether the tabs are active in their windows." 392 "description": "Whether the tabs are active in their windows."
390 }, 393 },
391 "pinned": { 394 "pinned": {
392 "type": "boolean", 395 "type": "boolean",
393 "optional": true, 396 "optional": true,
394 "description": "Whether the tabs are pinned." 397 "description": "Whether the tabs are pinned."
395 }, 398 },
399 "audible": {
400 "type": "boolean",
401 "optional": true,
402 "description": "Whether the tabs are audible."
403 },
404 "muted": {
405 "type": "boolean",
406 "optional": true,
407 "description": "Whether the tabs are muted."
408 },
396 "highlighted": { 409 "highlighted": {
397 "type": "boolean", 410 "type": "boolean",
398 "optional": true, 411 "optional": true,
399 "description": "Whether the tabs are highlighted." 412 "description": "Whether the tabs are highlighted."
400 }, 413 },
401 "currentWindow": { 414 "currentWindow": {
402 "type": "boolean", 415 "type": "boolean",
403 "optional": true, 416 "optional": true,
404 "description": "Whether the tabs are in the <a href='windows#cur rent-window'>current window</a>." 417 "description": "Whether the tabs are in the <a href='windows#cur rent-window'>current window</a>."
405 }, 418 },
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
533 "deprecated": "Please use <em>highlighted</em>.", 546 "deprecated": "Please use <em>highlighted</em>.",
534 "type": "boolean", 547 "type": "boolean",
535 "optional": true, 548 "optional": true,
536 "description": "Whether the tab should be selected." 549 "description": "Whether the tab should be selected."
537 }, 550 },
538 "pinned": { 551 "pinned": {
539 "type": "boolean", 552 "type": "boolean",
540 "optional": true, 553 "optional": true,
541 "description": "Whether the tab should be pinned." 554 "description": "Whether the tab should be pinned."
542 }, 555 },
556 "muted": {
557 "type": "boolean",
558 "optional": true,
559 "description": "Whether the tab should be muted."
560 },
543 "openerTabId": { 561 "openerTabId": {
544 "type": "integer", 562 "type": "integer",
545 "minimum": 0, 563 "minimum": 0,
546 "optional": true, 564 "optional": true,
547 "description": "The ID of the tab that opened this tab. If speci fied, the opener tab must be in the same window as this tab." 565 "description": "The ID of the tab that opened this tab. If speci fied, the opener tab must be in the same window as this tab."
548 } 566 }
549 } 567 }
550 }, 568 },
551 { 569 {
552 "type": "function", 570 "type": "function",
(...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after
881 "url": { 899 "url": {
882 "type": "string", 900 "type": "string",
883 "optional": true, 901 "optional": true,
884 "description": "The tab's URL if it has changed." 902 "description": "The tab's URL if it has changed."
885 }, 903 },
886 "pinned": { 904 "pinned": {
887 "type": "boolean", 905 "type": "boolean",
888 "optional": true, 906 "optional": true,
889 "description": "The tab's new pinned state." 907 "description": "The tab's new pinned state."
890 }, 908 },
909 "audible": {
910 "type": "boolean",
911 "optional": true,
912 "description": "The tab's new audible state."
913 },
914 "muted": {
915 "type": "boolean",
916 "optional": true,
917 "description": "The tab's new muted state."
918 },
919 "mutedCause": {
920 "type": "string",
921 "optional": true,
922 "description": "When the muted state changes, indicates what cau sed it ('', 'user', 'capture', or an extension id)."
923 },
891 "favIconUrl": { 924 "favIconUrl": {
892 "type": "string", 925 "type": "string",
893 "optional": true, 926 "optional": true,
894 "description": "The tab's new favicon URL." 927 "description": "The tab's new favicon URL."
895 } 928 }
896 } 929 }
897 }, 930 },
898 { 931 {
899 "$ref": "Tab", 932 "$ref": "Tab",
900 "name": "tab", 933 "name": "tab",
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
1109 "tabId": {"type": "integer", "minimum": 0}, 1142 "tabId": {"type": "integer", "minimum": 0},
1110 "oldZoomFactor": {"type": "number"}, 1143 "oldZoomFactor": {"type": "number"},
1111 "newZoomFactor": {"type": "number"}, 1144 "newZoomFactor": {"type": "number"},
1112 "zoomSettings": {"$ref": "ZoomSettings"} 1145 "zoomSettings": {"$ref": "ZoomSettings"}
1113 } 1146 }
1114 }] 1147 }]
1115 } 1148 }
1116 ] 1149 ]
1117 } 1150 }
1118 ] 1151 ]
OLDNEW
« no previous file with comments | « chrome/browser/ui/tabs/tab_utils.cc ('k') | chrome/test/data/extensions/api_test/tab_capture/api_tests.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698