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

Side by Side Diff: client/dom/src/_FactoryProviders.dart

Issue 8873008: Added constructor for AudioContext for dartc and frog (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 9 years 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
OLDNEW
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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 // These factory methods could all live in one factory provider class but dartc 6 // These factory methods could all live in one factory provider class but dartc
7 // has a bug (5399939) preventing that. 7 // has a bug (5399939) preventing that.
8 8
9 class _AudioContextFactoryProvider {
10
11 factory AudioContext() { return create(); }
12
13 static AudioContext create() native;
14 }
15
9 class _FileReaderFactoryProvider { 16 class _FileReaderFactoryProvider {
10 17
11 factory FileReader() { return create(); } 18 factory FileReader() { return create(); }
12 19
13 static FileReader create() native; 20 static FileReader create() native;
14 } 21 }
15 22
16 class _TypedArrayFactoryProvider { 23 class _TypedArrayFactoryProvider {
17 24
18 factory Float32Array(int length) => _F32(length); 25 factory Float32Array(int length) => _F32(length);
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 80
74 static WebKitPoint create(x, y) native; 81 static WebKitPoint create(x, y) native;
75 } 82 }
76 83
77 class _XMLHttpRequestFactoryProvider { 84 class _XMLHttpRequestFactoryProvider {
78 85
79 factory XMLHttpRequest() { return create(); } 86 factory XMLHttpRequest() { return create(); }
80 87
81 static XMLHttpRequest create() native; 88 static XMLHttpRequest create() native;
82 } 89 }
OLDNEW
« client/dom/scripts/template_wrapping_dom.js ('K') | « client/dom/scripts/template_wrapping_dom.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698