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

Side by Side Diff: tools/dom/src/_chrome/utils.dart

Issue 1321613005: Dartium w/ JsInterop enabled (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 3 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
« no previous file with comments | « tools/dom/src/_chrome/file_system.dart ('k') | tools/dom/src/dart2js_DOMImplementation.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 /** 5 /**
6 * A set of utilities for use with the Chrome Extension APIs. 6 * A set of utilities for use with the Chrome Extension APIs.
7 * 7 *
8 * Allows for easy access to required JS objects. 8 * Allows for easy access to required JS objects.
9 */ 9 */
10 part of chrome; 10 part of chrome;
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 /* 110 /*
111 * Private (JS) constructor 111 * Private (JS) constructor
112 */ 112 */
113 Rule._proxy(_jsObject) : super._proxy(_jsObject); 113 Rule._proxy(_jsObject) : super._proxy(_jsObject);
114 114
115 /* 115 /*
116 * Public accessors 116 * Public accessors
117 */ 117 */
118 String get id => JS('String', '#.id', this._jsObject); 118 String get id => JS('String', '#.id', this._jsObject);
119 119
120 void set id(String id) { 120 set id(String id) {
121 JS('void', '#.id = #', this._jsObject, id); 121 JS('void', '#.id = #', this._jsObject, id);
122 } 122 }
123 123
124 // TODO(sashab): Wrap these generic Lists somehow. 124 // TODO(sashab): Wrap these generic Lists somehow.
125 List get conditions => JS('List', '#.conditions', this._jsObject); 125 List get conditions => JS('List', '#.conditions', this._jsObject);
126 126
127 void set conditions(List conditions) { 127 set conditions(List conditions) {
128 JS('void', '#.conditions = #', this._jsObject, convertArgument(conditions)); 128 JS('void', '#.conditions = #', this._jsObject, convertArgument(conditions));
129 } 129 }
130 130
131 // TODO(sashab): Wrap these generic Lists somehow. 131 // TODO(sashab): Wrap these generic Lists somehow.
132 List get actions => JS('List', '#.actions', this._jsObject); 132 List get actions => JS('List', '#.actions', this._jsObject);
133 133
134 void set actions(List actions) { 134 set actions(List actions) {
135 JS('void', '#.actions = #', this._jsObject, convertArgument(actions)); 135 JS('void', '#.actions = #', this._jsObject, convertArgument(actions));
136 } 136 }
137 137
138 int get priority => JS('int', '#.priority', this._jsObject); 138 int get priority => JS('int', '#.priority', this._jsObject);
139 139
140 void set priority(int priority) { 140 set priority(int priority) {
141 JS('void', '#.priority = #', this._jsObject, priority); 141 JS('void', '#.priority = #', this._jsObject, priority);
142 } 142 }
143 143
144 } 144 }
145 145
146 /** 146 /**
147 * The Event class. 147 * The Event class.
148 * 148 *
149 * Chrome Event classes extend this interface. 149 * Chrome Event classes extend this interface.
150 * 150 *
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
286 void callback()]) => 286 void callback()]) =>
287 JS('void', 287 JS('void',
288 '#.removeRules(#, #, #)', 288 '#.removeRules(#, #, #)',
289 this._jsObject, 289 this._jsObject,
290 convertArgument(eventName), 290 convertArgument(eventName),
291 convertArgument(ruleIdentifiers), 291 convertArgument(ruleIdentifiers),
292 convertDartClosureToJS(callback, 0) 292 convertDartClosureToJS(callback, 0)
293 ); 293 );
294 } 294 }
295 295
OLDNEW
« no previous file with comments | « tools/dom/src/_chrome/file_system.dart ('k') | tools/dom/src/dart2js_DOMImplementation.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698