@@ -12,42 +12,16 @@ external Chrome get chrome;
12
12
@JS ()
13
13
@anonymous
14
14
class Chrome {
15
- external Action get action;
16
15
external Debugger get debugger;
17
16
external Devtools get devtools;
18
17
external Notifications get notifications;
19
18
external Runtime get runtime;
20
- external Scripting get scripting;
21
19
external Storage get storage;
22
20
external Tabs get tabs;
23
21
external WebNavigation get webNavigation;
24
22
external Windows get windows;
25
23
}
26
24
27
- /// chrome.action APIs
28
- /// https://developer.chrome.com/docs/extensions/reference/action
29
-
30
- @JS ()
31
- @anonymous
32
- class Action {
33
- external void setIcon (IconInfo iconInfo, Function ? callback);
34
-
35
- external OnClickedHandler get onClicked;
36
- }
37
-
38
- @JS ()
39
- @anonymous
40
- class OnClickedHandler {
41
- external void addListener (void Function (Tab tab) callback);
42
- }
43
-
44
- @JS ()
45
- @anonymous
46
- class IconInfo {
47
- external String get path;
48
- external factory IconInfo ({String path});
49
- }
50
-
51
25
/// chrome.debugger APIs:
52
26
/// https://developer.chrome.com/docs/extensions/reference/debugger
53
27
@@ -57,7 +31,7 @@ class Debugger {
57
31
external void attach (
58
32
Debuggee target, String requiredVersion, Function ? callback);
59
33
60
- external Object detach (Debuggee target);
34
+ external void detach (Debuggee target, Function ? callback );
61
35
62
36
external void sendCommand (Debuggee target, String method,
63
37
Object ? commandParams, Function ? callback);
@@ -224,30 +198,6 @@ class MessageSender {
224
198
external factory MessageSender ({String ? id, String ? url, Tab ? tab});
225
199
}
226
200
227
- /// chrome.scripting APIs
228
- /// https://developer.chrome.com/docs/extensions/reference/scripting
229
-
230
- @JS ()
231
- @anonymous
232
- class Scripting {
233
- external Object executeScript (InjectDetails details);
234
- }
235
-
236
- @JS ()
237
- @anonymous
238
- class InjectDetails <T , U > {
239
- external Target get target;
240
- external T ? get func;
241
- external List <U ?>? get args;
242
- external List <String >? get files;
243
- external factory InjectDetails ({
244
- Target target,
245
- T ? func,
246
- List <U >? args,
247
- List <String >? files,
248
- });
249
- }
250
-
251
201
@JS ()
252
202
@anonymous
253
203
class Target {
0 commit comments