Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(152)

Side by Side Diff: tools/json_schema_compiler/dart/custom_hooks.dart

Issue 12041098: Initial commit of the Dart Chrome Extension APIs generators (Closed) Base URL: http://git.chromium.org/chromium/src.git@file_path_bugfix
Patch Set: Fixed minor style issues; added support for [nodart] IDL flag Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698