closure 1.3.1 → 1.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.md +142 -9
- data/bin/closure-script +19 -0
- data/closure-compiler/README +18 -4
- data/closure-compiler/compiler.jar +0 -0
- data/closure-templates/SoyToJsSrcCompiler.jar +0 -0
- data/closure-templates/soydata.js +163 -0
- data/closure-templates/soyutils.js +1191 -159
- data/closure-templates/soyutils_usegoog.js +1107 -60
- data/docs/closure/Closure.html +58 -52
- data/docs/closure/Closure/BeanShell.html +6 -3
- data/docs/closure/Closure/Compiler.html +18 -15
- data/docs/closure/Closure/Compiler/Compilation.html +9 -3
- data/docs/closure/Closure/Compiler/Error.html +3 -3
- data/docs/closure/Closure/FileResponse.html +13 -7
- data/docs/closure/Closure/Goog.html +49 -85
- data/docs/closure/Closure/Middleware.html +5 -3
- data/docs/closure/Closure/Script.html +14 -5
- data/docs/closure/Closure/Script/NotFound.html +3 -3
- data/docs/closure/Closure/Script/RenderStackOverflow.html +3 -3
- data/docs/closure/Closure/Server.html +6 -3
- data/docs/closure/Closure/ShowExceptions.html +5 -3
- data/docs/closure/Closure/Sources.html +145 -37
- data/docs/closure/Closure/Templates.html +11 -10
- data/docs/closure/Closure/Templates/Error.html +3 -3
- data/docs/closure/_index.html +4 -4
- data/docs/closure/css/full_list.css +2 -0
- data/docs/closure/css/style.css +2 -0
- data/docs/closure/file.LICENSE.html +3 -3
- data/docs/closure/file.README.html +151 -10
- data/docs/closure/frames.html +1 -1
- data/docs/closure/index.html +151 -10
- data/docs/closure/js/full_list.js +23 -6
- data/docs/closure/method_list.html +91 -83
- data/docs/closure/top-level-namespace.html +3 -3
- data/lib/closure.rb +3 -16
- data/lib/closure/compiler.rb +135 -53
- data/lib/closure/goog.rb +5 -29
- data/lib/closure/sources.rb +22 -9
- data/lib/closure/version.rb +1 -1
- data/scripts/config.ru +0 -1
- data/scripts/hello/compiler_build.js +5 -5
- data/scripts/hello/compiler_build.map +518 -522
- data/scripts/hello/compiler_debug.js +7 -13
- data/scripts/hello/legume.js +2 -2
- data/scripts/index.erb +0 -3
- data/scripts/modules/compiler_build.js +3 -3
- data/scripts/modules/compiler_build.map +11569 -11476
- data/scripts/modules/compiler_build_api.js +1 -1
- data/scripts/modules/compiler_build_app.js +71 -70
- data/scripts/modules/compiler_build_settings.js +2 -2
- data/scripts/modules/compiler_debug.js +3 -3
- data/scripts/modules/compiler_debug_api.js +2 -2
- data/scripts/modules/compiler_debug_app.js +926 -1382
- data/scripts/modules/compiler_debug_settings.js +21 -24
- metadata +8 -18
- data/externs/chrome_extensions.externs +0 -968
- data/externs/jquery-1.3.2.externs +0 -718
- data/externs/jquery-1.4.3.externs +0 -1289
- data/externs/jquery-1.4.4.externs +0 -1302
- data/externs/jquery-1.5.externs +0 -1697
- data/externs/jquery-ui.externs +0 -10
- data/externs/jquery.externs +0 -4
- data/scripts/jquery/compiler.js.erb +0 -7
- data/scripts/jquery/compiler_out.js +0 -1
- data/scripts/jquery/index.erb +0 -25
- data/scripts/jquery/jquery_1.4.4.js +0 -167
- data/scripts/jquery/jquery_test.js +0 -8
@@ -7,36 +7,33 @@ $example$Settings$$.prototype.$createDom$ = function $$example$Settings$$$$$crea
|
|
7
7
|
$example$Settings$$.$superClass_$.$createDom$.call(this);
|
8
8
|
this.$getElement$().innerHTML = "This is the settings component."
|
9
9
|
};
|
10
|
-
var $app$$ = $example$App$instance_$$, $child$$
|
11
|
-
$child$$
|
12
|
-
|
13
|
-
$JSCompiler_alias_THROW$$(Error("Child component index out of bounds"))
|
14
|
-
}
|
10
|
+
var $app$$ = $example$App$instance_$$, $child$$inline_578$$ = new $example$Settings$$($app$$.$getDomHelper$()), $index$$inline_579$$ = $app$$.$children_$ ? $app$$.$children_$.length : 0;
|
11
|
+
$child$$inline_578$$.$inDocument_$ && $JSCompiler_alias_THROW$$(Error("Component already rendered"));
|
12
|
+
($index$$inline_579$$ < 0 || $index$$inline_579$$ > ($app$$.$children_$ ? $app$$.$children_$.length : 0)) && $JSCompiler_alias_THROW$$(Error("Child component index out of bounds"));
|
15
13
|
if(!$app$$.$childIndex_$ || !$app$$.$children_$) {
|
16
|
-
$app$$.$childIndex_$ = {}
|
17
|
-
$app$$.$children_$ = []
|
14
|
+
$app$$.$childIndex_$ = {}, $app$$.$children_$ = []
|
18
15
|
}
|
19
|
-
if($child$$
|
20
|
-
var $key$$
|
21
|
-
$app$$.$childIndex_$[$key$$
|
22
|
-
$goog$array$remove$$($app$$.$children_$, $child$$
|
16
|
+
if($child$$inline_578$$.getParent() == $app$$) {
|
17
|
+
var $key$$inline_580$$ = $child$$inline_578$$.$getId$();
|
18
|
+
$app$$.$childIndex_$[$key$$inline_580$$] = $child$$inline_578$$;
|
19
|
+
$goog$array$remove$$($app$$.$children_$, $child$$inline_578$$)
|
23
20
|
}else {
|
24
|
-
var $obj$$
|
25
|
-
$key$$
|
26
|
-
$obj$$
|
21
|
+
var $obj$$inline_581$$ = $app$$.$childIndex_$, $key$$inline_582$$ = $child$$inline_578$$.$getId$();
|
22
|
+
$key$$inline_582$$ in $obj$$inline_581$$ && $JSCompiler_alias_THROW$$(Error('The object already contains the key "' + $key$$inline_582$$ + '"'));
|
23
|
+
$obj$$inline_581$$[$key$$inline_582$$] = $child$$inline_578$$
|
27
24
|
}
|
28
|
-
$JSCompiler_StaticMethods_setParent$$($child$$
|
29
|
-
(function($arr$$
|
30
|
-
$goog$asserts$assert$$($arr$$
|
31
|
-
$goog$array$ARRAY_PROTOTYPE_$$.splice.apply($arr$$
|
32
|
-
})($app$$.$children_$, $index$$
|
33
|
-
if($child$$
|
34
|
-
var $contentElement$$
|
35
|
-
$contentElement$$
|
25
|
+
$JSCompiler_StaticMethods_setParent$$($child$$inline_578$$, $app$$);
|
26
|
+
(function($arr$$42$$, $index$$55$$, $howMany$$, $var_args$$35$$) {
|
27
|
+
$goog$asserts$assert$$($arr$$42$$.length != $JSCompiler_alias_NULL$$);
|
28
|
+
$goog$array$ARRAY_PROTOTYPE_$$.splice.apply($arr$$42$$, $goog$array$slice$$(arguments, 1))
|
29
|
+
})($app$$.$children_$, $index$$inline_579$$, 0, $child$$inline_578$$);
|
30
|
+
if($child$$inline_578$$.$inDocument_$ && $app$$.$inDocument_$ && $child$$inline_578$$.getParent() == $app$$) {
|
31
|
+
var $contentElement$$inline_583$$ = $app$$.$element_$;
|
32
|
+
$contentElement$$inline_583$$.insertBefore($child$$inline_578$$.$getElement$(), $contentElement$$inline_583$$.childNodes[$index$$inline_579$$] || $JSCompiler_alias_NULL$$)
|
36
33
|
}else {
|
37
34
|
$app$$.$element_$ || $app$$.$createDom$();
|
38
|
-
var $sibling$$
|
39
|
-
$JSCompiler_StaticMethods_render_$$($child$$
|
35
|
+
var $sibling$$inline_584$$ = $app$$.$children_$ ? $app$$.$children_$[$index$$inline_579$$ + 1] || $JSCompiler_alias_NULL$$ : $JSCompiler_alias_NULL$$;
|
36
|
+
$JSCompiler_StaticMethods_render_$$($child$$inline_578$$, $app$$.$element_$, $sibling$$inline_584$$ ? $sibling$$inline_584$$.$element_$ : $JSCompiler_alias_NULL$$)
|
40
37
|
}
|
41
38
|
$JSCompiler_StaticMethods_setLoaded$$($goog$module$ModuleManager$$.$getInstance$(), "settings");
|
42
39
|
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: closure
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 1.
|
5
|
+
version: 1.4.2
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- David Turnbull
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2011-
|
13
|
+
date: 2011-10-25 00:00:00 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rack
|
@@ -26,8 +26,8 @@ dependencies:
|
|
26
26
|
description:
|
27
27
|
email:
|
28
28
|
- dturnbull@gmail.com
|
29
|
-
executables:
|
30
|
-
|
29
|
+
executables:
|
30
|
+
- closure-script
|
31
31
|
extensions: []
|
32
32
|
|
33
33
|
extra_rdoc_files: []
|
@@ -35,21 +35,16 @@ extra_rdoc_files: []
|
|
35
35
|
files:
|
36
36
|
- beanshell/bsh-core-2.0b4.jar
|
37
37
|
- beanshell/LICENSE
|
38
|
+
- bin/closure-script
|
38
39
|
- closure-compiler/compiler.jar
|
39
40
|
- closure-compiler/COPYING
|
40
41
|
- closure-compiler/README
|
41
42
|
- closure-templates/COPYING
|
42
43
|
- closure-templates/README
|
44
|
+
- closure-templates/soydata.js
|
43
45
|
- closure-templates/SoyToJsSrcCompiler.jar
|
44
46
|
- closure-templates/soyutils.js
|
45
47
|
- closure-templates/soyutils_usegoog.js
|
46
|
-
- externs/chrome_extensions.externs
|
47
|
-
- externs/jquery-1.3.2.externs
|
48
|
-
- externs/jquery-1.4.3.externs
|
49
|
-
- externs/jquery-1.4.4.externs
|
50
|
-
- externs/jquery-1.5.externs
|
51
|
-
- externs/jquery-ui.externs
|
52
|
-
- externs/jquery.externs
|
53
48
|
- lib/closure/beanshell.rb
|
54
49
|
- lib/closure/compiler.rb
|
55
50
|
- lib/closure/engines.rb
|
@@ -103,11 +98,6 @@ files:
|
|
103
98
|
- scripts/hello/index.erb
|
104
99
|
- scripts/hello/legume.js
|
105
100
|
- scripts/hello/legume.soy
|
106
|
-
- scripts/jquery/compiler.js.erb
|
107
|
-
- scripts/jquery/compiler_out.js
|
108
|
-
- scripts/jquery/index.erb
|
109
|
-
- scripts/jquery/jquery_1.4.4.js
|
110
|
-
- scripts/jquery/jquery_test.js
|
111
101
|
- scripts/modules/api.js
|
112
102
|
- scripts/modules/api_init.js
|
113
103
|
- scripts/modules/app.js
|
@@ -148,7 +138,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
148
138
|
requirements:
|
149
139
|
- - ">="
|
150
140
|
- !ruby/object:Gem::Version
|
151
|
-
hash:
|
141
|
+
hash: 471027721912702129
|
152
142
|
segments:
|
153
143
|
- 0
|
154
144
|
version: "0"
|
@@ -161,7 +151,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
161
151
|
requirements: []
|
162
152
|
|
163
153
|
rubyforge_project:
|
164
|
-
rubygems_version: 1.8.
|
154
|
+
rubygems_version: 1.8.6
|
165
155
|
signing_key:
|
166
156
|
specification_version: 3
|
167
157
|
summary: Google Closure Compiler, Library, Script, and Templates.
|
@@ -1,968 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
* Copyright 2009 Google Inc.
|
3
|
-
*
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
-
* you may not use this file except in compliance with the License.
|
6
|
-
* You may obtain a copy of the License at
|
7
|
-
*
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
9
|
-
*
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
-
* See the License for the specific language governing permissions and
|
14
|
-
* limitations under the License.
|
15
|
-
*/
|
16
|
-
|
17
|
-
/*
|
18
|
-
goog.provide('externs.chrome')
|
19
|
-
*/
|
20
|
-
|
21
|
-
/**
|
22
|
-
* @fileoverview Definitions for the Chromium extensions API.
|
23
|
-
* @externs
|
24
|
-
*
|
25
|
-
*/
|
26
|
-
|
27
|
-
/** namespace */
|
28
|
-
var chrome = {};
|
29
|
-
|
30
|
-
/** @see http://code.google.com/chrome/extensions/extension.html */
|
31
|
-
chrome.extension = {};
|
32
|
-
|
33
|
-
/**
|
34
|
-
* @param {string|Object.<string>=} opt_arg1 Either the extensionId to
|
35
|
-
* to connect to, in which case connectInfo params can be passed in the
|
36
|
-
* next optional argument, or the connectInfo params.
|
37
|
-
* @param {Object.<string>=} opt_connectInfo The connectInfo object,
|
38
|
-
* if arg1 was the extensionId to connect to.
|
39
|
-
* @return {Port} New port.
|
40
|
-
*/
|
41
|
-
chrome.extension.connect = function(opt_arg1, opt_connectInfo) {};
|
42
|
-
|
43
|
-
/**
|
44
|
-
* @return {Window} The global JS object for the background page.
|
45
|
-
*/
|
46
|
-
chrome.extension.getBackgroundPage = function() {};
|
47
|
-
|
48
|
-
/**
|
49
|
-
* @param {number=} opt_windowId An optional windowId.
|
50
|
-
* @return {Array.<Window>} The global JS objects for each content view.
|
51
|
-
*/
|
52
|
-
chrome.extension.getExtensionTabs = function(opt_windowId) {};
|
53
|
-
|
54
|
-
/**
|
55
|
-
* @return {Array.<Window>} The global JS objects for each toolstrip view.
|
56
|
-
*/
|
57
|
-
chrome.extension.getToolstrips = function() {};
|
58
|
-
|
59
|
-
/**
|
60
|
-
* @param {string} path A path to a resource within an extension expressed
|
61
|
-
* relative to it's install directory.
|
62
|
-
* @return {string} The fully-qualified URL to the resource.
|
63
|
-
*/
|
64
|
-
chrome.extension.getURL = function(path) {};
|
65
|
-
|
66
|
-
/**
|
67
|
-
* @param {Object=} fetchProperties An object with optional 'type' and optional
|
68
|
-
* 'windowId' keys.
|
69
|
-
* @return {Array.<Window>} The global JS objects for each content view.
|
70
|
-
*/
|
71
|
-
chrome.extension.getViews = function(fetchProperties) {};
|
72
|
-
|
73
|
-
/**
|
74
|
-
* @param {number|*=} opt_arg1 Either the extensionId to send the request to,
|
75
|
-
* in which case the request is passed as the next arg, or the request.
|
76
|
-
* @param {*=} opt_request The request value, if arg1 was the extensionId.
|
77
|
-
* @param {function(*) : void=} opt_callback The callback function which
|
78
|
-
* takes a JSON response object sent by the handler of the request.
|
79
|
-
*/
|
80
|
-
chrome.extension.sendRequest = function(opt_arg1, opt_request, opt_callback) {};
|
81
|
-
|
82
|
-
/**
|
83
|
-
* @param {string} data
|
84
|
-
*/
|
85
|
-
chrome.extension.setUpdateUrlData = function(data) {};
|
86
|
-
|
87
|
-
/** @type {ChromeEvent} */
|
88
|
-
chrome.extension.onConnect;
|
89
|
-
/** @type {ChromeEvent} */
|
90
|
-
chrome.extension.onConnectExternal;
|
91
|
-
/** @type {ChromeEvent} */
|
92
|
-
chrome.extension.onRequest;
|
93
|
-
/** @type {ChromeEvent} */
|
94
|
-
chrome.extension.onRequestExternal;
|
95
|
-
|
96
|
-
|
97
|
-
/** @see http://code.google.com/chrome/extensions/tabs.html */
|
98
|
-
chrome.tabs = {};
|
99
|
-
|
100
|
-
/**
|
101
|
-
* @param {number?} windowId Window Id.
|
102
|
-
* @param {function(string) : void} callback Callback function which accepts
|
103
|
-
* the data URL string of a JPEG encoding of the visible area of the
|
104
|
-
* captured tab. May be assigned to the 'src' property of an HTML Image
|
105
|
-
* element for display.
|
106
|
-
*/
|
107
|
-
chrome.tabs.captureVisibleTab = function(windowId, callback) {};
|
108
|
-
|
109
|
-
/**
|
110
|
-
* @param {number} tabId Tab Id.
|
111
|
-
* @param {Object.<string>=} opt_connectInfo Info Object.
|
112
|
-
*/
|
113
|
-
chrome.tabs.connect = function(tabId, opt_connectInfo) {};
|
114
|
-
|
115
|
-
/**
|
116
|
-
* @param {Object} createProperties Info object.
|
117
|
-
* @param {function(Tab) : void=} opt_callback The callback function.
|
118
|
-
*/
|
119
|
-
chrome.tabs.create = function(createProperties, opt_callback) {};
|
120
|
-
|
121
|
-
/**
|
122
|
-
* @param {number?} tabId Tab id.
|
123
|
-
* @param {function(string) : void} callback Callback function.
|
124
|
-
*/
|
125
|
-
chrome.tabs.detectLanguage = function(tabId, callback) {};
|
126
|
-
|
127
|
-
/**
|
128
|
-
* @param {number?} tabId Tab id.
|
129
|
-
* @param {Object?} details An object which may have 'code', 'file',
|
130
|
-
* or 'allFrames' keys.
|
131
|
-
* @param {function() : void=} opt_callback Callback function.
|
132
|
-
*/
|
133
|
-
chrome.tabs.executeScript = function(tabId, details, opt_callback) {};
|
134
|
-
|
135
|
-
/**
|
136
|
-
* @param {number} tabId Tab id.
|
137
|
-
* @param {function(Array.<Tab>) : void} callback Callback.
|
138
|
-
*/
|
139
|
-
chrome.tabs.get = function(tabId, callback) {};
|
140
|
-
|
141
|
-
/**
|
142
|
-
* @param {number?} windowId Window id.
|
143
|
-
* @param {function(Array.<Tab>) : void} callback Callback.
|
144
|
-
*/
|
145
|
-
chrome.tabs.getAllInWindow = function(windowId, callback) {};
|
146
|
-
|
147
|
-
/**
|
148
|
-
* @param {number?} windowId Window id.
|
149
|
-
* @param {function(Tab) : void} callback Callback.
|
150
|
-
*/
|
151
|
-
chrome.tabs.getSelected = function(windowId, callback) {};
|
152
|
-
|
153
|
-
/**
|
154
|
-
* @param {number?} tabId Tab id.
|
155
|
-
* @param {Object?} details An object which may have 'code', 'file',
|
156
|
-
* or 'allFrames' keys.
|
157
|
-
* @param {function() : void=} opt_callback Callback function.
|
158
|
-
*/
|
159
|
-
chrome.tabs.insertCSS = function(tabId, details, opt_callback) {};
|
160
|
-
|
161
|
-
/**
|
162
|
-
* @param {number} tabId Tab id.
|
163
|
-
* @param {Object.<string, number>} moveProperties An object with 'index'
|
164
|
-
* and optional 'windowId' keys.
|
165
|
-
* @param {function(Tab) : void=} opt_callback Callback.
|
166
|
-
*/
|
167
|
-
chrome.tabs.move = function(tabId, moveProperties, opt_callback) {};
|
168
|
-
|
169
|
-
/**
|
170
|
-
* @param {number} tabId Tab id.
|
171
|
-
* @param {function(Tab) : void=} opt_callback Callback.
|
172
|
-
*/
|
173
|
-
chrome.tabs.remove = function(tabId, opt_callback) {};
|
174
|
-
|
175
|
-
/**
|
176
|
-
* @param {number} tabId Tab id.
|
177
|
-
* @param {*} request The request value of any type.
|
178
|
-
* @param {function(*) : void=} opt_callback The callback function which
|
179
|
-
* takes a JSON response object sent by the handler of the request.
|
180
|
-
*/
|
181
|
-
chrome.tabs.sendRequest = function(tabId, request, opt_callback) {};
|
182
|
-
|
183
|
-
/**
|
184
|
-
* @param {number} tabId Tab id.
|
185
|
-
* @param {Object.<string, (string|boolean)>} updateProperties An object which
|
186
|
-
* may have 'url' or 'selected' key.
|
187
|
-
* @param {function(Tab) : void=} opt_callback Callback.
|
188
|
-
*/
|
189
|
-
chrome.tabs.update = function(tabId, updateProperties, opt_callback) {};
|
190
|
-
|
191
|
-
/** @type {ChromeEvent} */
|
192
|
-
chrome.tabs.onAttached;
|
193
|
-
/** @type {ChromeEvent} */
|
194
|
-
chrome.tabs.onCreated;
|
195
|
-
/** @type {ChromeEvent} */
|
196
|
-
chrome.tabs.onDetached;
|
197
|
-
/** @type {ChromeEvent} */
|
198
|
-
chrome.tabs.onMoved;
|
199
|
-
/** @type {ChromeEvent} */
|
200
|
-
chrome.tabs.onRemoved;
|
201
|
-
/** @type {ChromeEvent} */
|
202
|
-
chrome.tabs.onSelectionChanged;
|
203
|
-
/** @type {ChromeEvent} */
|
204
|
-
chrome.tabs.onUpdated;
|
205
|
-
|
206
|
-
|
207
|
-
/** @see http://code.google.com/chrome/extensions/windows.html */
|
208
|
-
chrome.windows = {};
|
209
|
-
|
210
|
-
/**
|
211
|
-
* @param {Object?} createData May have 'url', 'left', 'top',
|
212
|
-
* 'width', or 'height' properties.
|
213
|
-
* @param {function(ChromeWindow) : void=} opt_callback Callback.
|
214
|
-
*/
|
215
|
-
chrome.windows.create = function(createData, opt_callback) {};
|
216
|
-
|
217
|
-
/**
|
218
|
-
* @param {Object.<string, boolean>?} getInfo May have 'populate' key.
|
219
|
-
* @param {function(Array.<ChromeWindow>): void} callback Callback.
|
220
|
-
*/
|
221
|
-
chrome.windows.getAll = function(getInfo, callback) {};
|
222
|
-
|
223
|
-
/**
|
224
|
-
* @param {function(ChromeWindow) : void} callback Callback.
|
225
|
-
*/
|
226
|
-
chrome.windows.getCurrent = function(callback) {};
|
227
|
-
|
228
|
-
/**
|
229
|
-
* @param {function(ChromeWindow) : void} callback Callback.
|
230
|
-
*/
|
231
|
-
chrome.windows.getLastFocused = function(callback) {};
|
232
|
-
|
233
|
-
/**
|
234
|
-
* @param {number} tabId Tab Id.
|
235
|
-
* @param {function() : void=} opt_callback Callback.
|
236
|
-
*/
|
237
|
-
chrome.windows.remove = function(tabId, opt_callback) {};
|
238
|
-
|
239
|
-
/**
|
240
|
-
* @param {number} tabId Tab Id.
|
241
|
-
* @param {Object.<string, number>} updateProperties An object which may
|
242
|
-
* have 'left', 'top', 'width', or 'height' keys.
|
243
|
-
* @param {function() : void=} opt_callback Callback.
|
244
|
-
*/
|
245
|
-
chrome.windows.update = function(tabId, updateProperties, opt_callback) {};
|
246
|
-
|
247
|
-
/** @type {ChromeEvent} */
|
248
|
-
chrome.windows.onCreated;
|
249
|
-
/** @type {ChromeEvent} */
|
250
|
-
chrome.windows.onFocusChanged;
|
251
|
-
/** @type {ChromeEvent} */
|
252
|
-
chrome.windows.onRemoved;
|
253
|
-
|
254
|
-
/**
|
255
|
-
* @see http://code.google.com/chrome/extensions/windows.html#property-WINDOW_ID_NONE
|
256
|
-
* @type {number}
|
257
|
-
*/
|
258
|
-
chrome.windows.WINDOW_ID_NONE;
|
259
|
-
|
260
|
-
/** @see http://code.google.com/chrome/extensions/i18n.html */
|
261
|
-
chrome.i18n = {};
|
262
|
-
|
263
|
-
/**
|
264
|
-
* @param {function(Array.<string>) : void} callback The callback function which
|
265
|
-
* accepts an array of the accept languages of the browser, such as
|
266
|
-
* 'en-US','en','zh-CN'.
|
267
|
-
*/
|
268
|
-
chrome.i18n.getAcceptLanguages = function(callback) {};
|
269
|
-
|
270
|
-
/**
|
271
|
-
* @param {string} messageName
|
272
|
-
* @param {(string|Array.<string>)=} opt_args
|
273
|
-
* @return {string}
|
274
|
-
*/
|
275
|
-
chrome.i18n.getMessage = function(messageName, opt_args) {};
|
276
|
-
|
277
|
-
|
278
|
-
/** @see http://code.google.com/chrome/extensions/pageAction.html */
|
279
|
-
chrome.pageAction = {};
|
280
|
-
|
281
|
-
/**
|
282
|
-
* @param {number} tabId Tab Id.
|
283
|
-
*/
|
284
|
-
chrome.pageAction.hide = function(tabId) {};
|
285
|
-
|
286
|
-
/**
|
287
|
-
* @param {number} tabId Tab Id.
|
288
|
-
*/
|
289
|
-
chrome.pageAction.show = function(tabId) {};
|
290
|
-
|
291
|
-
/**
|
292
|
-
* @param {Object} details An object which has 'tabId' and either
|
293
|
-
* 'imageData' or 'path'.
|
294
|
-
*/
|
295
|
-
chrome.pageAction.setIcon = function(details) {};
|
296
|
-
|
297
|
-
/**
|
298
|
-
* @param {Object} details An object which may have 'popup' or 'tabId' as keys.
|
299
|
-
*/
|
300
|
-
chrome.pageAction.setPopup = function(details) {};
|
301
|
-
|
302
|
-
/**
|
303
|
-
* @param {Object} details An object which has 'tabId' and 'title'.
|
304
|
-
*/
|
305
|
-
chrome.pageAction.setTitle = function(details) {};
|
306
|
-
|
307
|
-
/** @type {ChromeEvent} */
|
308
|
-
chrome.pageAction.onClicked;
|
309
|
-
|
310
|
-
|
311
|
-
/** @see http://code.google.com/chrome/extensions/browserAction.html */
|
312
|
-
chrome.browserAction = {};
|
313
|
-
|
314
|
-
/**
|
315
|
-
* @param {Object} details An object whose keys are 'color' and
|
316
|
-
* optionally 'tabId'.
|
317
|
-
*/
|
318
|
-
chrome.browserAction.setBadgeBackgroundColor = function(details) {};
|
319
|
-
|
320
|
-
/**
|
321
|
-
* @param {Object} details An object whose keys are 'text' and
|
322
|
-
* optionally 'tabId'.
|
323
|
-
*/
|
324
|
-
chrome.browserAction.setBadgeText = function(details) {};
|
325
|
-
|
326
|
-
/**
|
327
|
-
* @param {Object} details An object which may have 'imageData',
|
328
|
-
* 'path', or 'tabId' as keys.
|
329
|
-
*/
|
330
|
-
chrome.browserAction.setIcon = function(details) {};
|
331
|
-
|
332
|
-
/**
|
333
|
-
* @param {Object} details An object which may have 'popup' or 'tabId' as keys.
|
334
|
-
*/
|
335
|
-
chrome.browserAction.setPopup = function(details) {};
|
336
|
-
|
337
|
-
/**
|
338
|
-
* @param {Object} details An object which has 'title' and optionally
|
339
|
-
* 'tabId'.
|
340
|
-
*/
|
341
|
-
chrome.browserAction.setTitle = function(details) {};
|
342
|
-
|
343
|
-
/** @type {ChromeEvent} */
|
344
|
-
chrome.browserAction.onClicked;
|
345
|
-
|
346
|
-
|
347
|
-
/** @see http://code.google.com/chrome/extensions/bookmarks.html */
|
348
|
-
chrome.bookmarks = {};
|
349
|
-
|
350
|
-
/**
|
351
|
-
* @param {Object} bookmark An object which has 'parentId' and
|
352
|
-
* optionally 'index', 'title', and 'url'.
|
353
|
-
* @param {function(BookmarkTreeNode) : void=} opt_callback The
|
354
|
-
* callback function which accepts a BookmarkTreeNode object.
|
355
|
-
* @return {BookmarkTreeNode}
|
356
|
-
*/
|
357
|
-
chrome.bookmarks.create = function(bookmark, opt_callback) {};
|
358
|
-
|
359
|
-
/**
|
360
|
-
* @param {(string|Array.<string>)} idOrIdList
|
361
|
-
* @param {function(Array.<BookmarkTreeNode>) : void} callback The
|
362
|
-
* callback function which accepts an array of BookmarkTreeNode.
|
363
|
-
* @return {Array.<BookmarkTreeNode>}
|
364
|
-
*/
|
365
|
-
chrome.bookmarks.get = function(idOrIdList, callback) {};
|
366
|
-
|
367
|
-
/**
|
368
|
-
* @param {string} id
|
369
|
-
* @param {function(Array.<BookmarkTreeNode>) : void} callback The
|
370
|
-
* callback function which accepts an array of BookmarkTreeNode.
|
371
|
-
* @return {Array.<BookmarkTreeNode>}
|
372
|
-
*/
|
373
|
-
chrome.bookmarks.getChildren = function(id, callback) {};
|
374
|
-
|
375
|
-
/**
|
376
|
-
* @param {function(Array.<BookmarkTreeNode>) : void} callback The
|
377
|
-
* callback function which accepts an array of BookmarkTreeNode.
|
378
|
-
* @return {Array.<BookmarkTreeNode>}
|
379
|
-
*/
|
380
|
-
chrome.bookmarks.getTree = function(callback) {};
|
381
|
-
|
382
|
-
/**
|
383
|
-
* @param {string} id
|
384
|
-
* @param {Object} destination An object which has 'parentId' and
|
385
|
-
* optionally 'index'.
|
386
|
-
* @param {function(Array.<BookmarkTreeNode>) : void=} opt_callback
|
387
|
-
* The callback function which accepts an array of
|
388
|
-
* BookmarkTreeNode.
|
389
|
-
* @return {BookmarkTreeNode}
|
390
|
-
*/
|
391
|
-
chrome.bookmarks.move = function(id, destination, opt_callback) {};
|
392
|
-
|
393
|
-
/**
|
394
|
-
* @param {string} id
|
395
|
-
* @param {function() : void=} opt_callback
|
396
|
-
*/
|
397
|
-
chrome.bookmarks.remove = function(id, opt_callback) {};
|
398
|
-
|
399
|
-
/**
|
400
|
-
* @param {string} id
|
401
|
-
* @param {function() : void=} opt_callback
|
402
|
-
*/
|
403
|
-
chrome.bookmarks.removeTree = function(id, opt_callback) {};
|
404
|
-
|
405
|
-
/**
|
406
|
-
* @param {string} query
|
407
|
-
* @param {function(Array.<BookmarkTreeNode>) : void} callback
|
408
|
-
* @return {Array.<BookmarkTreeNode>}
|
409
|
-
*/
|
410
|
-
chrome.bookmarks.search = function(query, callback) {};
|
411
|
-
|
412
|
-
/**
|
413
|
-
* @param {string} id
|
414
|
-
* @param {Object} changes An object which may have 'title' as a key.
|
415
|
-
* @param {function(BookmarkTreeNode) : void=} opt_callback The
|
416
|
-
* callback function which accepts a BookmarkTreeNode object.
|
417
|
-
* @return {BookmarkTreeNode}
|
418
|
-
*/
|
419
|
-
chrome.bookmarks.update = function(id, changes, opt_callback) {};
|
420
|
-
|
421
|
-
/** @type {ChromeEvent} */
|
422
|
-
chrome.bookmarks.onChanged;
|
423
|
-
/** @type {ChromeEvent} */
|
424
|
-
chrome.bookmarks.onChildrenReordered;
|
425
|
-
/** @type {ChromeEvent} */
|
426
|
-
chrome.bookmarks.onCreated;
|
427
|
-
/** @type {ChromeEvent} */
|
428
|
-
chrome.bookmarks.onMoved;
|
429
|
-
/** @type {ChromeEvent} */
|
430
|
-
chrome.bookmarks.onRemoved;
|
431
|
-
|
432
|
-
|
433
|
-
/** @see http://code.google.com/chrome/extensions/dev/contextMenus.html */
|
434
|
-
chrome.contextMenus = {};
|
435
|
-
|
436
|
-
/**
|
437
|
-
* @param {!Object} createProperties
|
438
|
-
* @param {function()=} opt_callback
|
439
|
-
*/
|
440
|
-
chrome.contextMenus.create = function(createProperties, opt_callback) {};
|
441
|
-
|
442
|
-
/**
|
443
|
-
* @param {number} menuItemId
|
444
|
-
* @param {function()=} opt_callback
|
445
|
-
*/
|
446
|
-
chrome.contextMenus.remove = function(menuItemId, opt_callback) {};
|
447
|
-
|
448
|
-
/**
|
449
|
-
* @param {function()=} opt_callback
|
450
|
-
*/
|
451
|
-
chrome.contextMenus.removeAll = function(opt_callback) {};
|
452
|
-
|
453
|
-
/**
|
454
|
-
* @param {number} id
|
455
|
-
* @param {!Object} updateProperties
|
456
|
-
* @param {function()=} opt_callback
|
457
|
-
*/
|
458
|
-
chrome.contextMenus.update = function(id, updateProperties, opt_callback) {};
|
459
|
-
|
460
|
-
|
461
|
-
/** @see http://code.google.com/chrome/extensions/dev/cookies.html */
|
462
|
-
chrome.cookies = {};
|
463
|
-
|
464
|
-
/**
|
465
|
-
* @param {Object} details
|
466
|
-
* @param {function(Cookie=) : void} callback
|
467
|
-
*/
|
468
|
-
chrome.cookies.get = function(details, callback) {};
|
469
|
-
|
470
|
-
/**
|
471
|
-
* @param {Object} details
|
472
|
-
* @param {function(Array.<Cookie>) : void} callback
|
473
|
-
*/
|
474
|
-
chrome.cookies.getAll = function(details, callback) {};
|
475
|
-
|
476
|
-
/**
|
477
|
-
* @param {function(Array.<CookieStore>) : void} callback
|
478
|
-
*/
|
479
|
-
chrome.cookies.getAllCookieStores = function(callback) {};
|
480
|
-
|
481
|
-
/**
|
482
|
-
* @param {Object} details
|
483
|
-
*/
|
484
|
-
chrome.cookies.remove = function(details) {};
|
485
|
-
|
486
|
-
/**
|
487
|
-
* @param {Object} details
|
488
|
-
*/
|
489
|
-
chrome.cookies.set = function(details) {};
|
490
|
-
|
491
|
-
/**
|
492
|
-
* @see http://http://code.google.com/chrome/extensions/cookies.html#event-onChanged
|
493
|
-
* @type {ChromeEvent}
|
494
|
-
*/
|
495
|
-
chrome.cookies.onChanged;
|
496
|
-
|
497
|
-
/** @constructor */
|
498
|
-
function CookieChangeInfo() {}
|
499
|
-
/** @type {boolean} */
|
500
|
-
CookieChangeInfo.prototype.removed;
|
501
|
-
/** @type {Cookie} */
|
502
|
-
CookieChangeInfo.prototype.cookie;
|
503
|
-
|
504
|
-
/** @see http://code.google.com/chrome/extensions/experimental.html */
|
505
|
-
chrome.experimental = {};
|
506
|
-
|
507
|
-
|
508
|
-
/** @see http://code.google.com/chrome/extensions/experimental.clipboard.html */
|
509
|
-
chrome.experimental.clipboard = {};
|
510
|
-
|
511
|
-
/**
|
512
|
-
* @param {number} tabId
|
513
|
-
* @param {function()=} opt_callback
|
514
|
-
*/
|
515
|
-
chrome.experimental.clipboard.executeCopy = function(tabId, opt_callback) {};
|
516
|
-
|
517
|
-
/**
|
518
|
-
* @param {number} tabId
|
519
|
-
* @param {function()=} opt_callback
|
520
|
-
*/
|
521
|
-
chrome.experimental.clipboard.executeCut = function(tabId, opt_callback) {};
|
522
|
-
|
523
|
-
/**
|
524
|
-
* @param {number} tabId
|
525
|
-
* @param {function()=} opt_callback
|
526
|
-
*/
|
527
|
-
chrome.experimental.clipboard.executePaste = function(tabId, opt_callback) {};
|
528
|
-
|
529
|
-
|
530
|
-
/** @see http://code.google.com/chrome/extensions/experimental.contextMenu.html */
|
531
|
-
chrome.experimental.contextMenu = {};
|
532
|
-
|
533
|
-
/**
|
534
|
-
* @param {!Object} createProperties
|
535
|
-
* @param {function(number)=} opt_callback
|
536
|
-
*/
|
537
|
-
chrome.experimental.contextMenu.create =
|
538
|
-
function(createProperties, opt_callback) {};
|
539
|
-
|
540
|
-
/**
|
541
|
-
* @param {number} menuItemId
|
542
|
-
* @param {function()=} opt_callback
|
543
|
-
*/
|
544
|
-
chrome.experimental.contextMenu.remove = function(menuItemId, opt_callback) {};
|
545
|
-
|
546
|
-
|
547
|
-
/** @see http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/api/extension_api.json */
|
548
|
-
chrome.experimental.extension = {};
|
549
|
-
|
550
|
-
/**
|
551
|
-
* @return {Window}
|
552
|
-
*/
|
553
|
-
chrome.experimental.extension.getPopupView = function() {};
|
554
|
-
|
555
|
-
/** @see http://code.google.com/chrome/extensions/experimental.infobars.html */
|
556
|
-
chrome.experimental.infobars = {};
|
557
|
-
|
558
|
-
/**
|
559
|
-
* @param {!Object} details
|
560
|
-
* @param {function(Window)=} opt_callback
|
561
|
-
*/
|
562
|
-
chrome.experimental.infobars.show = function(details, opt_callback) {};
|
563
|
-
|
564
|
-
|
565
|
-
/** @see http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/api/extension_api.json */
|
566
|
-
chrome.experimental.metrics = {};
|
567
|
-
|
568
|
-
/**
|
569
|
-
* @param {string} metricName
|
570
|
-
*/
|
571
|
-
chrome.experimental.metrics.recordUserAction = function(metricName) {};
|
572
|
-
|
573
|
-
/**
|
574
|
-
* @param {string} metricName
|
575
|
-
* @param {number} value
|
576
|
-
*/
|
577
|
-
chrome.experimental.metrics.recordPercentage = function(metricName, value) {};
|
578
|
-
|
579
|
-
/**
|
580
|
-
* @param {string} metricName
|
581
|
-
* @param {number} value
|
582
|
-
*/
|
583
|
-
chrome.experimental.metrics.recordCount = function(metricName, value) {};
|
584
|
-
|
585
|
-
/**
|
586
|
-
* @param {string} metricName
|
587
|
-
* @param {number} value
|
588
|
-
*/
|
589
|
-
chrome.experimental.metrics.recordSmallCount = function(metricName, value) {};
|
590
|
-
|
591
|
-
/**
|
592
|
-
* @param {string} metricName
|
593
|
-
* @param {number} value
|
594
|
-
*/
|
595
|
-
chrome.experimental.metrics.recordMediumCount = function(metricName, value) {};
|
596
|
-
|
597
|
-
/**
|
598
|
-
* @param {string} metricName
|
599
|
-
* @param {number} value
|
600
|
-
*/
|
601
|
-
chrome.experimental.metrics.recordTime = function(metricName, value) {};
|
602
|
-
|
603
|
-
/**
|
604
|
-
* @param {string} metricName
|
605
|
-
* @param {number} value
|
606
|
-
*/
|
607
|
-
chrome.experimental.metrics.recordMediumTime = function(metricName, value) {};
|
608
|
-
|
609
|
-
/**
|
610
|
-
* @param {string} metricName
|
611
|
-
* @param {number} value
|
612
|
-
*/
|
613
|
-
chrome.experimental.metrics.recordLongTime = function(metricName, value) {};
|
614
|
-
|
615
|
-
/**
|
616
|
-
* @param {MetricType} metric
|
617
|
-
* @param {number} value
|
618
|
-
*/
|
619
|
-
chrome.experimental.metrics.recordValue = function(metric, value) {};
|
620
|
-
|
621
|
-
|
622
|
-
/** @see http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/api/extension_api.json */
|
623
|
-
chrome.experimental.popup = {};
|
624
|
-
|
625
|
-
/**
|
626
|
-
* @param {string} url
|
627
|
-
* @param {Object} showDetails
|
628
|
-
* @param {function() : void=} opt_callback
|
629
|
-
*/
|
630
|
-
chrome.experimental.popup.show = function(url, showDetails, opt_callback) {};
|
631
|
-
|
632
|
-
/** @type {ChromeEvent} */
|
633
|
-
chrome.experimental.popup.onClosed;
|
634
|
-
|
635
|
-
/** @see http://code.google.com/chrome/extensions/experimental.processes.html */
|
636
|
-
chrome.experimental.processes = {};
|
637
|
-
|
638
|
-
/**
|
639
|
-
* @param {number} tabId
|
640
|
-
* @param {function(Process)} callback
|
641
|
-
*/
|
642
|
-
chrome.experimental.processes.getProcessForTab = function(tabId, callback) {}
|
643
|
-
|
644
|
-
|
645
|
-
chrome.experimental.rlz = {};
|
646
|
-
|
647
|
-
/**
|
648
|
-
* @param {string} product
|
649
|
-
* @param {string} accessPoint
|
650
|
-
* @param {string} event
|
651
|
-
*/
|
652
|
-
chrome.experimental.rlz.recordProductEvent = function(product, accessPoint,
|
653
|
-
event) {};
|
654
|
-
|
655
|
-
/**
|
656
|
-
* @param {string} product
|
657
|
-
* @param {Array.<string>} accessPoints
|
658
|
-
*/
|
659
|
-
chrome.experimental.rlz.clearProductState = function(product, accessPoints) {};
|
660
|
-
|
661
|
-
/**
|
662
|
-
* @param {string} product
|
663
|
-
* @param {Array.<string>} accessPoints
|
664
|
-
* @param {string} signature
|
665
|
-
* @param {string} brand
|
666
|
-
* @param {string} id
|
667
|
-
* @param {string} lang
|
668
|
-
* @param {boolean} excludeMachineId
|
669
|
-
* @param {function(boolean): void} callback
|
670
|
-
*/
|
671
|
-
chrome.experimental.rlz.sendFinancialPing = function(product, accessPoints,
|
672
|
-
signature, brand, id, lang,
|
673
|
-
excludeMachineId,
|
674
|
-
callback) {};
|
675
|
-
|
676
|
-
/**
|
677
|
-
* @param {string} accessPoint
|
678
|
-
* @param {function(string): void} callback
|
679
|
-
*/
|
680
|
-
chrome.experimental.rlz.getAccessPointRlz = function(accessPoint, callback) {};
|
681
|
-
|
682
|
-
|
683
|
-
chrome.management = {};
|
684
|
-
|
685
|
-
/**
|
686
|
-
* @param {function(Array.<ExtensionInfo>): void} callback
|
687
|
-
*/
|
688
|
-
chrome.management.getAll = function(callback) {};
|
689
|
-
|
690
|
-
/**
|
691
|
-
* @param {string} id
|
692
|
-
* @param {function(ExtensionInfo): void} callback
|
693
|
-
*/
|
694
|
-
chrome.management.get = function(id, callback) {};
|
695
|
-
|
696
|
-
/**
|
697
|
-
* @param {string} id
|
698
|
-
* @param {boolean} enabled
|
699
|
-
* @param {function(): void} callback
|
700
|
-
*/
|
701
|
-
chrome.management.setEnabled = function(id, enabled, callback) {};
|
702
|
-
|
703
|
-
/**
|
704
|
-
* @param {string} id
|
705
|
-
* @param {function(): void} callback
|
706
|
-
*/
|
707
|
-
chrome.management.uninstall = function(id, callback) {};
|
708
|
-
|
709
|
-
/**
|
710
|
-
* @param {string} id
|
711
|
-
* @param {function(): void} callback
|
712
|
-
*/
|
713
|
-
chrome.management.launchApp = function(id, callback) {};
|
714
|
-
|
715
|
-
/** @type {ChromeEvent} */
|
716
|
-
chrome.management.onDisabled;
|
717
|
-
/** @type {ChromeEvent} */
|
718
|
-
chrome.management.onEnabled;
|
719
|
-
/** @type {ChromeEvent} */
|
720
|
-
chrome.management.onInstalled;
|
721
|
-
/** @type {ChromeEvent} */
|
722
|
-
chrome.management.onUninstalled;
|
723
|
-
|
724
|
-
|
725
|
-
/** @see http://code.google.com/chrome/extensions/idle.html */
|
726
|
-
chrome.idle = {};
|
727
|
-
|
728
|
-
/**
|
729
|
-
* @param {number} thresholdSeconds Threshold in seconds, used to determine
|
730
|
-
* when a machine is in the idle state.
|
731
|
-
* @param {function(string) : void} callback Callback to handle the state.
|
732
|
-
*/
|
733
|
-
chrome.idle.queryState = function(thresholdSeconds, callback) {};
|
734
|
-
|
735
|
-
/** @type {ChromeEvent} */
|
736
|
-
chrome.idle.onStateChanged;
|
737
|
-
|
738
|
-
// Classes
|
739
|
-
|
740
|
-
/**
|
741
|
-
* @see http://code.google.com/chrome/extensions/management.html
|
742
|
-
* @constructor
|
743
|
-
*/
|
744
|
-
function ExtensionInfo() {}
|
745
|
-
/** @type {string} */
|
746
|
-
ExtensionInfo.prototype.id;
|
747
|
-
/** @type {string} */
|
748
|
-
ExtensionInfo.prototype.name;
|
749
|
-
/** @type {string} */
|
750
|
-
ExtensionInfo.prototype.version;
|
751
|
-
/** @type {boolean} */
|
752
|
-
ExtensionInfo.prototype.enabled;
|
753
|
-
/** @type {boolean} */
|
754
|
-
ExtensionInfo.prototype.isApp;
|
755
|
-
/** @type {string} */
|
756
|
-
ExtensionInfo.prototype.appLaunchUrl;
|
757
|
-
/** @type {string} */
|
758
|
-
ExtensionInfo.prototype.optionsUrl;
|
759
|
-
/** @type {Array.<IconInfo>} */
|
760
|
-
ExtensionInfo.prototype.icons;
|
761
|
-
|
762
|
-
/**
|
763
|
-
* @see http://code.google.com/chrome/extensions/management.html
|
764
|
-
* @constructor
|
765
|
-
*/
|
766
|
-
function IconInfo() {}
|
767
|
-
/** @type {number} */
|
768
|
-
IconInfo.prototype.size;
|
769
|
-
/** @type {string} */
|
770
|
-
IconInfo.prototype.url;
|
771
|
-
|
772
|
-
/**
|
773
|
-
* @see http://code.google.com/chrome/extensions/tabs.html
|
774
|
-
* @constructor
|
775
|
-
*/
|
776
|
-
function Tab() {}
|
777
|
-
/** @type {number} */
|
778
|
-
Tab.prototype.id;
|
779
|
-
/** @type {number} */
|
780
|
-
Tab.prototype.index;
|
781
|
-
/** @type {number} */
|
782
|
-
Tab.prototype.windowId;
|
783
|
-
/** @type {boolean} */
|
784
|
-
Tab.prototype.selected;
|
785
|
-
/** @type {string} */
|
786
|
-
Tab.prototype.url;
|
787
|
-
/** @type {string} */
|
788
|
-
Tab.prototype.title;
|
789
|
-
/** @type {string} */
|
790
|
-
Tab.prototype.favIconUrl;
|
791
|
-
/** @type {string} */
|
792
|
-
Tab.prototype.status;
|
793
|
-
|
794
|
-
/**
|
795
|
-
* @see http://code.google.com/chrome/extensions/windows.html
|
796
|
-
* @constructor
|
797
|
-
*/
|
798
|
-
function ChromeWindow() {}
|
799
|
-
/** @type {number} */
|
800
|
-
ChromeWindow.prototype.id;
|
801
|
-
/** @type {boolean} */
|
802
|
-
ChromeWindow.prototype.focused;
|
803
|
-
/** @type {number} */
|
804
|
-
ChromeWindow.prototype.top;
|
805
|
-
/** @type {number} */
|
806
|
-
ChromeWindow.prototype.left;
|
807
|
-
/** @type {number} */
|
808
|
-
ChromeWindow.prototype.width;
|
809
|
-
/** @type {number} */
|
810
|
-
ChromeWindow.prototype.height;
|
811
|
-
/** @type {Array.<Tab>} */
|
812
|
-
ChromeWindow.prototype.tabs;
|
813
|
-
/** @type {boolean} */
|
814
|
-
ChromeWindow.prototype.incognito;
|
815
|
-
/** @type {string} */
|
816
|
-
ChromeWindow.prototype.type;
|
817
|
-
|
818
|
-
/**
|
819
|
-
* @see http://code.google.com/chrome/extensions/events.html
|
820
|
-
* @constructor
|
821
|
-
*/
|
822
|
-
function ChromeEvent() {}
|
823
|
-
/** @param {Function} callback */
|
824
|
-
ChromeEvent.prototype.addListener = function(callback) {};
|
825
|
-
/** @param {Function} callback */
|
826
|
-
ChromeEvent.prototype.removeListener = function(callback) {};
|
827
|
-
/** @param {Function} callback */
|
828
|
-
ChromeEvent.prototype.hasListener = function(callback) {};
|
829
|
-
/** @param {Function} callback */
|
830
|
-
ChromeEvent.prototype.hasListeners = function(callback) {};
|
831
|
-
|
832
|
-
/**
|
833
|
-
* @see http://code.google.com/chrome/extensions/extension.html#type-Port
|
834
|
-
* @constructor
|
835
|
-
*/
|
836
|
-
function Port() {}
|
837
|
-
/** @type {string} */
|
838
|
-
Port.prototype.name;
|
839
|
-
/** @type {Tab} */
|
840
|
-
Port.prototype.tab;
|
841
|
-
/** @type {MessageSender} */
|
842
|
-
Port.prototype.sender;
|
843
|
-
/** @type {ChromeEvent} */
|
844
|
-
Port.prototype.onMessage;
|
845
|
-
/** @type {ChromeEvent} */
|
846
|
-
Port.prototype.onDisconnect;
|
847
|
-
/**
|
848
|
-
* @param {Object.<string>} obj Message object.
|
849
|
-
*/
|
850
|
-
Port.prototype.postMessage = function(obj) {};
|
851
|
-
Port.prototype.disconnect = function() {};
|
852
|
-
|
853
|
-
/**
|
854
|
-
* @see http://code.google.com/chrome/extensions/extension.html#type-MessageSender
|
855
|
-
* @constructor
|
856
|
-
*/
|
857
|
-
function MessageSender() {}
|
858
|
-
/** @type {Tab} */
|
859
|
-
MessageSender.prototype.tab;
|
860
|
-
/** @type {string} */
|
861
|
-
MessageSender.prototype.id;
|
862
|
-
|
863
|
-
/**
|
864
|
-
* @see http://code.google.com/chrome/extensions/bookmarks.html#type-BookmarkTreeNode
|
865
|
-
* @constructor
|
866
|
-
*/
|
867
|
-
function BookmarkTreeNode() {}
|
868
|
-
/** @type {string} */
|
869
|
-
BookmarkTreeNode.prototype.id;
|
870
|
-
/** @type {string} */
|
871
|
-
BookmarkTreeNode.prototype.parentId;
|
872
|
-
/** @type {number} */
|
873
|
-
BookmarkTreeNode.prototype.index;
|
874
|
-
/** @type {string} */
|
875
|
-
BookmarkTreeNode.prototype.url;
|
876
|
-
/** @type {string} */
|
877
|
-
BookmarkTreeNode.prototype.title;
|
878
|
-
/** @type {number} */
|
879
|
-
BookmarkTreeNode.prototype.dateAdded;
|
880
|
-
/** @type {number} */
|
881
|
-
BookmarkTreeNode.prototype.dateGroupModified;
|
882
|
-
/** @type {Array.<BookmarkTreeNode>} */
|
883
|
-
BookmarkTreeNode.prototype.children;
|
884
|
-
|
885
|
-
/**
|
886
|
-
* @see http://code.google.com/chrome/extensions/dev/cookies.html#type-Cookie
|
887
|
-
* @constructor
|
888
|
-
*/
|
889
|
-
function Cookie() {}
|
890
|
-
/** @type {string} */
|
891
|
-
Cookie.prototype.name;
|
892
|
-
/** @type {string} */
|
893
|
-
Cookie.prototype.value;
|
894
|
-
/** @type {string} */
|
895
|
-
Cookie.prototype.domain;
|
896
|
-
/** @type {boolean} */
|
897
|
-
Cookie.prototype.hostOnly;
|
898
|
-
/** @type {string} */
|
899
|
-
Cookie.prototype.path;
|
900
|
-
/** @type {boolean} */
|
901
|
-
Cookie.prototype.secure;
|
902
|
-
/** @type {boolean} */
|
903
|
-
Cookie.prototype.httpOnly;
|
904
|
-
/** @type {boolean} */
|
905
|
-
Cookie.prototype.session;
|
906
|
-
/** @type {number} */
|
907
|
-
Cookie.prototype.expirationDate;
|
908
|
-
/** @type {string} */
|
909
|
-
Cookie.prototype.storeId;
|
910
|
-
|
911
|
-
/**
|
912
|
-
* @see http://code.google.com/chrome/extensions/dev/cookies.html#type-CookieStore
|
913
|
-
* @constructor
|
914
|
-
*/
|
915
|
-
function CookieStore() {}
|
916
|
-
/** @type {string} */
|
917
|
-
CookieStore.prototype.id;
|
918
|
-
/** @type {Array.<number>} */
|
919
|
-
CookieStore.prototype.tabIds;
|
920
|
-
|
921
|
-
/**
|
922
|
-
* Experimental MetricType
|
923
|
-
* @constructor
|
924
|
-
*/
|
925
|
-
function MetricType() {}
|
926
|
-
/** @type {string} */
|
927
|
-
MetricType.prototype.metricName;
|
928
|
-
/** @type {string} */
|
929
|
-
MetricType.prototype.type;
|
930
|
-
/** @type {number} */
|
931
|
-
MetricType.prototype.min;
|
932
|
-
/** @type {number} */
|
933
|
-
MetricType.prototype.max;
|
934
|
-
/** @type {number} */
|
935
|
-
MetricType.prototype.buckets;
|
936
|
-
|
937
|
-
/**
|
938
|
-
* Experimental Process type.
|
939
|
-
* @see http://code.google.com/chrome/extensions/experimental.processes.html#type-Process
|
940
|
-
* @constructor
|
941
|
-
*/
|
942
|
-
function Process() {}
|
943
|
-
/** @type {number} */
|
944
|
-
Process.prototype.id;
|
945
|
-
|
946
|
-
/**
|
947
|
-
* @see http://code.google.com/chrome/extensions/dev/contextMenus.html#type-OnClickData
|
948
|
-
* @constructor
|
949
|
-
*/
|
950
|
-
function OnClickData() {}
|
951
|
-
/** @type {number} */
|
952
|
-
OnClickData.prototype.menuItemId;
|
953
|
-
/** @type {number} */
|
954
|
-
OnClickData.prototype.parentMenuItemId;
|
955
|
-
/** @type {string} */
|
956
|
-
OnClickData.prototype.mediaType;
|
957
|
-
/** @type {string} */
|
958
|
-
OnClickData.prototype.linkUrl;
|
959
|
-
/** @type {string} */
|
960
|
-
OnClickData.prototype.srcUrl;
|
961
|
-
/** @type {string} */
|
962
|
-
OnClickData.prototype.pageUrl;
|
963
|
-
/** @type {string} */
|
964
|
-
OnClickData.prototype.frameUrl;
|
965
|
-
/** @type {string} */
|
966
|
-
OnClickData.prototype.selectionText;
|
967
|
-
/** @type {string} */
|
968
|
-
OnClickData.prototype.editable;
|