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

Unified 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: followups through message #36 Created 5 years, 7 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/api/tabs.json
diff --git a/chrome/common/extensions/api/tabs.json b/chrome/common/extensions/api/tabs.json
index 4fe70c74c900b9419ff51b5ae9e51131c1d1bc0e..3d128eb2d5bc8fedd8b6580441a0c16bbb06be80 100644
--- a/chrome/common/extensions/api/tabs.json
+++ b/chrome/common/extensions/api/tabs.json
@@ -20,6 +20,9 @@
"highlighted": {"type": "boolean", "description": "Whether the tab is highlighted."},
"active": {"type": "boolean", "description": "Whether the tab is active in its window. (Does not necessarily mean the window is focused.)"},
"pinned": {"type": "boolean", "description": "Whether the tab is pinned."},
+ "audible": {"type": "boolean", "optional": true, "description": "Whether 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 showing."},
+ "muted": {"type": "boolean", "optional": true, "description": "Whether the tab is prevented from playing sound (but hasn't necessarily recently produced sound). Equivalent to whether the muted audio indicator is showing."},
+ "mutedCause": {"type": "string", "optional": true, "description": "Indicates what caused the muted setting ('', 'user', 'capture', or an extension id)."},
"url": {"type": "string", "optional": true, "description": "The URL the tab is displaying. This property is only present if the extension's manifest includes the <code>\"tabs\"</code> permission."},
"title": {"type": "string", "optional": true, "optional": true, "description": "The title of the tab. This property is only present if the extension's manifest includes the <code>\"tabs\"</code> permission."},
"favIconUrl": {"type": "string", "optional": true, "optional": true, "description": "The URL of the tab's favicon. This property is only present if the extension's manifest includes the <code>\"tabs\"</code> permission. It may also be an empty string if the tab is loading."},
@@ -366,6 +369,16 @@
"optional": true,
"description": "Whether the tabs are pinned."
},
+ "audible": {
+ "type": "boolean",
+ "optional": true,
+ "description": "Whether the tabs are audible."
+ },
+ "muted": {
+ "type": "boolean",
+ "optional": true,
+ "description": "Whether the tabs are muted."
+ },
"highlighted": {
"type": "boolean",
"optional": true,
@@ -514,6 +527,11 @@
"optional": true,
"description": "Whether the tab should be pinned."
},
+ "muted": {
+ "type": "boolean",
+ "optional": true,
+ "description": "Whether the tab should be muted."
+ },
"openerTabId": {
"type": "integer",
"minimum": 0,
@@ -861,6 +879,21 @@
"optional": true,
"description": "The tab's new pinned state."
},
+ "audible": {
+ "type": "boolean",
+ "optional": true,
+ "description": "The tab's new audible state."
+ },
+ "muted": {
+ "type": "boolean",
+ "optional": true,
+ "description": "The tab's new muted state."
+ },
+ "mutedCause": {
+ "type": "string",
+ "optional": true,
+ "description": "When the muted state changes, indicates what caused it ('', 'user', 'capture', or an extension id)."
+ },
"favIconUrl": {
"type": "string",
"optional": true,

Powered by Google App Engine
This is Rietveld 408576698