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

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

Issue 569803004: Allow "url" to be an array of URL patterns (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update tabs.query documentation Created 6 years, 3 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 {
(...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after
367 "optional": true, 367 "optional": true,
368 "enum": ["loading", "complete"], 368 "enum": ["loading", "complete"],
369 "description": "Whether the tabs have completed loading." 369 "description": "Whether the tabs have completed loading."
370 }, 370 },
371 "title": { 371 "title": {
372 "type": "string", 372 "type": "string",
373 "optional": true, 373 "optional": true,
374 "description": "Match page titles against a pattern." 374 "description": "Match page titles against a pattern."
375 }, 375 },
376 "url": { 376 "url": {
377 "type": "string", 377 "choices": [
378 {"type": "string"},
379 {"type": "array", "items": {"type": "string"}}
380 ],
378 "optional": true, 381 "optional": true,
379 "description": "Match tabs against a <a href='match_patterns'>UR L pattern</a>. Note that fragment identifiers are not matched." 382 "description": "Match tabs against one or more <a href='match_pa tterns'>URL patterns</a>. Note that fragment identifiers are not matched."
380 }, 383 },
381 "windowId": { 384 "windowId": {
382 "type": "integer", 385 "type": "integer",
383 "optional": true, 386 "optional": true,
384 "minimum": -2, 387 "minimum": -2,
385 "description": "The ID of the parent window, or $(ref:windows.WI NDOW_ID_CURRENT) for the <a href='windows#current-window'>current window</a>." 388 "description": "The ID of the parent window, or $(ref:windows.WI NDOW_ID_CURRENT) for the <a href='windows#current-window'>current window</a>."
386 }, 389 },
387 "windowType": { 390 "windowType": {
388 "type": "string", 391 "type": "string",
389 "optional": true, 392 "optional": true,
(...skipping 670 matching lines...) Expand 10 before | Expand all | Expand 10 after
1060 "tabId": {"type": "integer", "minimum": 0}, 1063 "tabId": {"type": "integer", "minimum": 0},
1061 "oldZoomFactor": {"type": "number"}, 1064 "oldZoomFactor": {"type": "number"},
1062 "newZoomFactor": {"type": "number"}, 1065 "newZoomFactor": {"type": "number"},
1063 "zoomSettings": {"$ref": "ZoomSettings"} 1066 "zoomSettings": {"$ref": "ZoomSettings"}
1064 } 1067 }
1065 }] 1068 }]
1066 } 1069 }
1067 ] 1070 ]
1068 } 1071 }
1069 ] 1072 ]
OLDNEW
« no previous file with comments | « chrome/browser/extensions/api/tabs/tabs_api.cc ('k') | chrome/test/data/extensions/api_test/tabs/basics/query.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698