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 | 5 |
6 // Conversions for IDBKey. | 6 // Conversions for IDBKey. |
7 // | 7 // |
8 // Per http://www.w3.org/TR/IndexedDB/#key-construct | 8 // Per http://www.w3.org/TR/IndexedDB/#key-construct |
9 // | 9 // |
10 // "A value is said to be a valid key if it is one of the following types: Array | 10 // "A value is said to be a valid key if it is one of the following types: Array |
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
297 // Conversions for ContextAttributes. | 297 // Conversions for ContextAttributes. |
298 // | 298 // |
299 // On Firefox, the returned ContextAttributes is a plain object. | 299 // On Firefox, the returned ContextAttributes is a plain object. |
300 class _TypedContextAttributes implements gl.ContextAttributes { | 300 class _TypedContextAttributes implements gl.ContextAttributes { |
301 bool alpha; | 301 bool alpha; |
302 bool antialias; | 302 bool antialias; |
303 bool depth; | 303 bool depth; |
304 bool premultipliedAlpha; | 304 bool premultipliedAlpha; |
305 bool preserveDrawingBuffer; | 305 bool preserveDrawingBuffer; |
306 bool stencil; | 306 bool stencil; |
| 307 bool failIfMajorPerformanceCaveat; |
307 | 308 |
308 _TypedContextAttributes(this.alpha, this.antialias, this.depth, | 309 _TypedContextAttributes(this.alpha, this.antialias, this.depth, |
309 this.premultipliedAlpha, this.preserveDrawingBuffer, this.stencil); | 310 this.premultipliedAlpha, this.preserveDrawingBuffer, this.stencil); |
310 } | 311 } |
311 | 312 |
312 gl.ContextAttributes convertNativeToDart_ContextAttributes( | 313 gl.ContextAttributes convertNativeToDart_ContextAttributes( |
313 nativeContextAttributes) { | 314 nativeContextAttributes) { |
314 if (nativeContextAttributes is gl.ContextAttributes) { | 315 if (nativeContextAttributes is gl.ContextAttributes) { |
315 return nativeContextAttributes; | 316 return nativeContextAttributes; |
316 } | 317 } |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
399 const String _serializedScriptValue = | 400 const String _serializedScriptValue = |
400 'num|String|bool|' | 401 'num|String|bool|' |
401 'JSExtendableArray|=Object|' | 402 'JSExtendableArray|=Object|' |
402 'Blob|File|NativeByteBuffer|NativeTypedData' | 403 'Blob|File|NativeByteBuffer|NativeTypedData' |
403 // TODO(sra): Add Date, RegExp. | 404 // TODO(sra): Add Date, RegExp. |
404 ; | 405 ; |
405 const annotation_Creates_SerializedScriptValue = | 406 const annotation_Creates_SerializedScriptValue = |
406 const Creates(_serializedScriptValue); | 407 const Creates(_serializedScriptValue); |
407 const annotation_Returns_SerializedScriptValue = | 408 const annotation_Returns_SerializedScriptValue = |
408 const Returns(_serializedScriptValue); | 409 const Returns(_serializedScriptValue); |
OLD | NEW |