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

Side by Side Diff: sdk/lib/chrome/dart2js/chrome_dart2js.dart

Issue 13044010: dom: more final more of the time (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: nit Created 7 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | sdk/lib/html/dart2js/html_dart2js.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 /// Native wrappers for the Chrome Packaged App APIs. 1 /// Native wrappers for the Chrome Packaged App APIs.
2 /// 2 ///
3 /// These functions allow direct access to the Packaged App APIs, allowing 3 /// These functions allow direct access to the Packaged App APIs, allowing
4 /// Chrome Packaged Apps to be written using Dart. 4 /// Chrome Packaged Apps to be written using Dart.
5 /// 5 ///
6 /// For more information on these APIs, see the 6 /// For more information on these APIs, see the
7 /// [Chrome APIs Documentation](http://developer.chrome.com/extensions/api_index .html) 7 /// [Chrome APIs Documentation](http://developer.chrome.com/extensions/api_index .html)
8 library chrome; 8 library chrome;
9 9
10 import 'dart:_foreign_helper' show JS; 10 import 'dart:_foreign_helper' show JS;
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 /* 52 /*
53 * Internal proxy constructor 53 * Internal proxy constructor
54 * 54 *
55 * Creates a new Dart object using this existing proxy. 55 * Creates a new Dart object using this existing proxy.
56 */ 56 */
57 ChromeObject._proxy(this._jsObject); 57 ChromeObject._proxy(this._jsObject);
58 58
59 /* 59 /*
60 * JS Object Representation 60 * JS Object Representation
61 */ 61 */
62 Object _jsObject; 62 final Object _jsObject;
63 } 63 }
64 64
65 /** 65 /**
66 * Useful functions for converting arguments. 66 * Useful functions for converting arguments.
67 */ 67 */
68 68
69 /** 69 /**
70 * Converts the given map-type argument to js-friendly format, recursively. 70 * Converts the given map-type argument to js-friendly format, recursively.
71 * Returns the new Map object. 71 * Returns the new Map object.
72 */ 72 */
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 * => super.removeListener(callback); 189 * => super.removeListener(callback);
190 * bool hasListener(void callback(LaunchData launchData)) 190 * bool hasListener(void callback(LaunchData launchData))
191 * => super.hasListener(callback); 191 * => super.hasListener(callback);
192 * } 192 * }
193 * 193 *
194 */ 194 */
195 class Event { 195 class Event {
196 /* 196 /*
197 * JS Object Representation 197 * JS Object Representation
198 */ 198 */
199 Object _jsObject; 199 final Object _jsObject;
200 200
201 /* 201 /*
202 * Number of arguments the callback takes. 202 * Number of arguments the callback takes.
203 */ 203 */
204 int _callbackArity; 204 final int _callbackArity;
205 205
206 /* 206 /*
207 * Private constructor 207 * Private constructor
208 */ 208 */
209 Event._(this._jsObject, this._callbackArity); 209 Event._(this._jsObject, this._callbackArity);
210 210
211 /* 211 /*
212 * Methods 212 * Methods
213 */ 213 */
214 214
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
322 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 322 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
323 // for details. All rights reserved. Use of this source code is governed by a 323 // for details. All rights reserved. Use of this source code is governed by a
324 // BSD-style license that can be found in the LICENSE file. 324 // BSD-style license that can be found in the LICENSE file.
325 325
326 326
327 // chrome.app 327 // chrome.app
328 class API_ChromeApp { 328 class API_ChromeApp {
329 /* 329 /*
330 * JS Variable 330 * JS Variable
331 */ 331 */
332 Object _jsObject; 332 final Object _jsObject;
333 333
334 /* 334 /*
335 * Members 335 * Members
336 */ 336 */
337 API_app_window window; 337 API_app_window window;
338 API_app_runtime runtime; 338 API_app_runtime runtime;
339 339
340 /* 340 /*
341 * Constructor 341 * Constructor
342 */ 342 */
(...skipping 773 matching lines...) Expand 10 before | Expand all | Expand 10 after
1116 /// postIntentResponse is an internal method to responds to an intent 1116 /// postIntentResponse is an internal method to responds to an intent
1117 /// previously sent to a packaged app. This is identified by intentId, and 1117 /// previously sent to a packaged app. This is identified by intentId, and
1118 /// should only be invoked at most once per intentId. 1118 /// should only be invoked at most once per intentId.
1119 void postIntentResponse(AppRuntimeIntentResponse intentResponse) => JS('void', '#.postIntentResponse(#)', this._jsObject, convertArgument(intentResponse)); 1119 void postIntentResponse(AppRuntimeIntentResponse intentResponse) => JS('void', '#.postIntentResponse(#)', this._jsObject, convertArgument(intentResponse));
1120 1120
1121 API_app_runtime(this._jsObject) { 1121 API_app_runtime(this._jsObject) {
1122 onLaunched = new Event_app_runtime_onLaunched(JS('', '#.onLaunched', this._j sObject)); 1122 onLaunched = new Event_app_runtime_onLaunched(JS('', '#.onLaunched', this._j sObject));
1123 onRestarted = new Event_app_runtime_onRestarted(JS('', '#.onRestarted', this ._jsObject)); 1123 onRestarted = new Event_app_runtime_onRestarted(JS('', '#.onRestarted', this ._jsObject));
1124 } 1124 }
1125 } 1125 }
OLDNEW
« no previous file with comments | « no previous file | sdk/lib/html/dart2js/html_dart2js.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698