OLD | NEW |
---|---|
(Empty) | |
1 /** | |
2 * This file contains custom hooks for the generated Chrome.* APIs. | |
3 * | |
4 * The format for a hook is: | |
5 * | |
6 * // START (full type name) (property/method name) | |
7 * (code) | |
8 * // END | |
9 * | |
10 * For getters/setters, add 'get' or 'set' after the property name. | |
11 * | |
12 * The given code will be substituted instead of the generated one. | |
13 * | |
14 */ | |
15 | |
not at google - send to devlin
2013/01/25 18:14:33
Whatever happens to these files - could we put eac
sashab
2013/01/29 08:27:13
Done by fixing the way these files are passed in.
| |
16 | |
17 // START app.window.AppWindow contentWindow | |
18 // TODO(sashab, sra): Detect whether this is the current window, or an | |
19 // external one, and return an appropriately-typed object | |
20 WindowBase get contentWindow => | |
21 JS("Window", "#.contentWindow", this._jsObject); | |
22 // END | |
23 | |
24 // START app.runtime.LaunchData items get | |
25 List<LaunchItem> get items() { | |
26 List<LaunchItem> items_final = new List<LaunchItem>(); | |
27 for (var o in JS('List', '#.items', this._jsObject)) { | |
28 items_final.add(new LaunchItem._proxy(o)); | |
29 } | |
30 return items_final; | |
31 } | |
32 // END | |
33 | |
OLD | NEW |