OLD | NEW |
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 584 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
595 "name": "language", | 595 "name": "language", |
596 "description": "An ISO language code such as <code>en</code> or
<code>fr</code>. For a complete list of languages supported by this method, see
<a href='http://src.chromium.org/viewvc/chrome/trunk/src/third_party/cld/languag
es/internal/languages.cc'>kLanguageInfoTable</a>. The 2nd to 4th columns will be
checked and the first non-NULL value will be returned except for Simplified Chi
nese for which zh-CN will be returned. For an unknown language, <code>und</code>
will be returned." | 596 "description": "An ISO language code such as <code>en</code> or
<code>fr</code>. For a complete list of languages supported by this method, see
<a href='http://src.chromium.org/viewvc/chrome/trunk/src/third_party/cld/languag
es/internal/languages.cc'>kLanguageInfoTable</a>. The 2nd to 4th columns will be
checked and the first non-NULL value will be returned except for Simplified Chi
nese for which zh-CN will be returned. For an unknown language, <code>und</code>
will be returned." |
597 } | 597 } |
598 ] | 598 ] |
599 } | 599 } |
600 ] | 600 ] |
601 }, | 601 }, |
602 { | 602 { |
603 "name": "captureVisibleTab", | 603 "name": "captureVisibleTab", |
604 "type": "function", | 604 "type": "function", |
605 "description": "Captures the visible area of the currently active tab in
the specified window. You must have <a href='declare_permissions.html'>host per
mission</a> for the URL displayed by the tab.", | 605 "description": "Captures the visible area of the currently active tab in
the specified window. You must have <a href='declare_permissions.html'><all_
urls></a> permission to use this method.", |
606 "parameters": [ | 606 "parameters": [ |
607 { | 607 { |
608 "type": "integer", | 608 "type": "integer", |
609 "name": "windowId", | 609 "name": "windowId", |
610 "minimum": -2, | 610 "minimum": -2, |
611 "optional": true, | 611 "optional": true, |
612 "description": "The target window. Defaults to the <a href='windows.
html#current-window'>current window</a>." | 612 "description": "The target window. Defaults to the <a href='windows.
html#current-window'>current window</a>." |
613 }, | 613 }, |
614 { | 614 { |
615 "$ref": "types.ImageDetails", | 615 "$ref": "types.ImageDetails", |
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
917 "type": "function", | 917 "type": "function", |
918 "description": "Fired when a tab is replaced with another tab due to pre
rendering or instant.", | 918 "description": "Fired when a tab is replaced with another tab due to pre
rendering or instant.", |
919 "parameters": [ | 919 "parameters": [ |
920 {"type": "integer", "name": "addedTabId", "minimum": 0}, | 920 {"type": "integer", "name": "addedTabId", "minimum": 0}, |
921 {"type": "integer", "name": "removedTabId", "minimum": 0} | 921 {"type": "integer", "name": "removedTabId", "minimum": 0} |
922 ] | 922 ] |
923 } | 923 } |
924 ] | 924 ] |
925 } | 925 } |
926 ] | 926 ] |
OLD | NEW |