| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |