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

Side by Side Diff: samples/maps/js.dart

Issue 10919146: Get rid of a lot of () for getters. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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 | Annotate | Revision Log
« no previous file with comments | « samples/logo/logo.dart ('k') | samples/maps/maps.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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 // The js.dart library provides simple synchronous JS invocation from 5 // The js.dart library provides simple synchronous JS invocation from
6 // Dart in a browser setting (Dartium or via dart2js). 6 // Dart in a browser setting (Dartium or via dart2js).
7 // 7 //
8 // Methods 8 // Methods
9 // (1) js.invoke invokes a JS method (specified by string) on a 9 // (1) js.invoke invokes a JS method (specified by string) on a
10 // list of serializable parameters in the DOM window's JS context and 10 // list of serializable parameters in the DOM window's JS context and
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after
336 336
337 operator [](key) => _fail(); 337 operator [](key) => _fail();
338 operator []=(key, value) => _fail(); 338 operator []=(key, value) => _fail();
339 clear() => _fail(); 339 clear() => _fail();
340 containsKey(key) => _fail(); 340 containsKey(key) => _fail();
341 containsValue(value) => _fail(); 341 containsValue(value) => _fail();
342 forEach(f) => _fail(); 342 forEach(f) => _fail();
343 getKeys() => _fail(); 343 getKeys() => _fail();
344 getValues() => _fail(); 344 getValues() => _fail();
345 isEmpty() => _fail(); 345 isEmpty() => _fail();
346 get length() => _fail(); 346 get length => _fail();
347 putIfAbsent(key, ifAbsent) => _fail(); 347 putIfAbsent(key, ifAbsent) => _fail();
348 remove(key) => _fail(); 348 remove(key) => _fail();
349 } 349 }
350 350
351 /** 351 /**
352 * An abstract base type for Dart types that automatically serialize 352 * An abstract base type for Dart types that automatically serialize
353 * to JavaScript via JSON. 353 * to JavaScript via JSON.
354 */ 354 */
355 class Serializable extends _SerializableMap { 355 class Serializable extends _SerializableMap {
356 356
(...skipping 13 matching lines...) Expand all
370 result[_DESERIALIZER] = jsDeserializer; 370 result[_DESERIALIZER] = jsDeserializer;
371 result[_ARGUMENTS] = arguments; 371 result[_ARGUMENTS] = arguments;
372 return result; 372 return result;
373 } 373 }
374 374
375 /** 375 /**
376 * Create a legal JSON Map from this object. 376 * Create a legal JSON Map from this object.
377 */ 377 */
378 abstract Map<String, Object> serialize(); 378 abstract Map<String, Object> serialize();
379 } 379 }
OLDNEW
« no previous file with comments | « samples/logo/logo.dart ('k') | samples/maps/maps.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698