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

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

Issue 9699065: "index" property should be optional with "chrome.tabs.move" (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 9 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 "dependencies": [ "extension", "windows" ], 8 "dependencies": [ "extension", "windows" ],
9 "types": [ 9 "types": [
10 { 10 {
(...skipping 411 matching lines...) Expand 10 before | Expand all | Expand 10 after
422 "name": "tabIds", 422 "name": "tabIds",
423 "description": "The tab or list of tabs to move.", 423 "description": "The tab or list of tabs to move.",
424 "choices": [ 424 "choices": [
425 {"type": "integer", "minimum": 0}, 425 {"type": "integer", "minimum": 0},
426 {"type": "array", "items": {"type": "integer", "minimum": 0}} 426 {"type": "array", "items": {"type": "integer", "minimum": 0}}
427 ] 427 ]
428 }, 428 },
429 { 429 {
430 "type": "object", 430 "type": "object",
431 "name": "moveProperties", 431 "name": "moveProperties",
432 "optional": true,
432 "properties": { 433 "properties": {
433 "windowId": { 434 "windowId": {
434 "type": "integer", 435 "type": "integer",
435 "minimum": -2, 436 "minimum": -2,
436 "optional": true, 437 "optional": true,
437 "description": "Defaults to the window the tab is currently in." 438 "description": "Defaults to the window the tab is currently in."
438 }, 439 },
439 "index": { 440 "index": {
440 "type": "integer", 441 "type": "integer",
441 "minimum": 0, 442 "minimum": 0,
442 "description": "The position to move the window to. The provided value will be clamped to between zero and the number of tabs in the window." 443 "optional": true,
444 "description": "The position to move the window to. The provided value will be clamped to between zero and the number of tabs in the window. Def aults to the index of the last tab in the window."
443 } 445 }
444 } 446 }
445 }, 447 },
446 { 448 {
447 "type": "function", 449 "type": "function",
448 "name": "callback", 450 "name": "callback",
449 "optional": true, 451 "optional": true,
450 "parameters": [ 452 "parameters": [
451 { 453 {
452 "name": "tabs", 454 "name": "tabs",
(...skipping 391 matching lines...) Expand 10 before | Expand all | Expand 10 after
844 "name": "removeInfo", 846 "name": "removeInfo",
845 "properties": { 847 "properties": {
846 "isWindowClosing": {"type": "boolean", "description": "True when t he tab is being closed because its window is being closed." } 848 "isWindowClosing": {"type": "boolean", "description": "True when t he tab is being closed because its window is being closed." }
847 } 849 }
848 } 850 }
849 ] 851 ]
850 } 852 }
851 ] 853 ]
852 } 854 }
853 ] 855 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698