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 "dependencies": [ "extension", "windows" ], | 8 "dependencies": [ "extension", "windows" ], |
9 "types": [ | 9 "types": [ |
10 { | 10 { |
(...skipping 580 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
591 "name": "language", | 591 "name": "language", |
592 "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." | 592 "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." |
593 } | 593 } |
594 ] | 594 ] |
595 } | 595 } |
596 ] | 596 ] |
597 }, | 597 }, |
598 { | 598 { |
599 "name": "captureVisibleTab", | 599 "name": "captureVisibleTab", |
600 "type": "function", | 600 "type": "function", |
601 "description": "Captures the visible area of the currently active tab in
the specified window. You must have <a href='manifest.html#permissions'>host pe
rmission</a> for the URL displayed by the tab.", | 601 "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.", |
602 "parameters": [ | 602 "parameters": [ |
603 { | 603 { |
604 "type": "integer", | 604 "type": "integer", |
605 "name": "windowId", | 605 "name": "windowId", |
606 "minimum": -2, | 606 "minimum": -2, |
607 "optional": true, | 607 "optional": true, |
608 "description": "The target window. Defaults to the <a href='windows.
html#current-window'>current window</a>." | 608 "description": "The target window. Defaults to the <a href='windows.
html#current-window'>current window</a>." |
609 }, | 609 }, |
610 { | 610 { |
611 "type": "object", | 611 "type": "object", |
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
906 { | 906 { |
907 "name": "onRemoved", | 907 "name": "onRemoved", |
908 "type": "function", | 908 "type": "function", |
909 "description": "Fired when a tab is closed. Note: A listener can be regi
stered for this event without requesting the 'tabs' permission in the manifest."
, | 909 "description": "Fired when a tab is closed. Note: A listener can be regi
stered for this event without requesting the 'tabs' permission in the manifest."
, |
910 "parameters": [ | 910 "parameters": [ |
911 {"type": "integer", "name": "tabId", "minimum": 0}, | 911 {"type": "integer", "name": "tabId", "minimum": 0}, |
912 { | 912 { |
913 "type": "object", | 913 "type": "object", |
914 "name": "removeInfo", | 914 "name": "removeInfo", |
915 "properties": { | 915 "properties": { |
916 "windowId": {"type": "integer", "minimum": 0, "description": "the
window whose tab is closed." }, | 916 "windowId": {"type": "integer", "minimum": 0, "description": "The
window whose tab is closed." }, |
917 "isWindowClosing": {"type": "boolean", "description": "True when t
he tab is being closed because its window is being closed." } | 917 "isWindowClosing": {"type": "boolean", "description": "True when t
he tab is being closed because its window is being closed." } |
918 } | 918 } |
919 } | 919 } |
920 ] | 920 ] |
921 }, | 921 }, |
922 { | 922 { |
923 "name": "onReplaced", | 923 "name": "onReplaced", |
924 "type": "function", | 924 "type": "function", |
925 "description": "Fired when a tab is replaced with another tab due to pre
rendering or instant.", | 925 "description": "Fired when a tab is replaced with another tab due to pre
rendering or instant.", |
926 "parameters": [ | 926 "parameters": [ |
927 {"type": "integer", "name": "addedTabId", "minimum": 0}, | 927 {"type": "integer", "name": "addedTabId", "minimum": 0}, |
928 {"type": "integer", "name": "removedTabId", "minimum": 0} | 928 {"type": "integer", "name": "removedTabId", "minimum": 0} |
929 ] | 929 ] |
930 } | 930 } |
931 ] | 931 ] |
932 } | 932 } |
933 ] | 933 ] |
OLD | NEW |