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

Side by Side Diff: lib/html/src/dartium_FactoryProviders.dart

Issue 10914175: Fix AudioContext factory constructor. (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 | « no previous file | no next file » | 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 class _AudioContextFactoryProvider { 5 class _AudioContextFactoryProvider {
6 factory AudioContext() => _createAudioContext(); 6 factory AudioContext() => _createAudioContext();
7 static _createAudioContext() native "AudioContext_constructor_Callback"; 7 static _createAudioContext([int numberOfChannels,
8 int numberOfFrames,
9 int sampleRate])
10 native "AudioContext_constructor_Callback";
8 } 11 }
9 12
10 class _IDBKeyRangeFactoryProvider { 13 class _IDBKeyRangeFactoryProvider {
11 14
12 factory IDBKeyRange.only(/*IDBKey*/ value) => 15 factory IDBKeyRange.only(/*IDBKey*/ value) =>
13 _IDBKeyRangeImpl.only(value); 16 _IDBKeyRangeImpl.only(value);
14 17
15 factory IDBKeyRange.lowerBound(/*IDBKey*/ bound, [bool open = false]) => 18 factory IDBKeyRange.lowerBound(/*IDBKey*/ bound, [bool open = false]) =>
16 _IDBKeyRangeImpl.lowerBound(bound, open); 19 _IDBKeyRangeImpl.lowerBound(bound, open);
17 20
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 } 99 }
97 100
98 class _WebSocketFactoryProvider { 101 class _WebSocketFactoryProvider {
99 factory WebSocket(String url) => _createWebSocket(url); 102 factory WebSocket(String url) => _createWebSocket(url);
100 static _createWebSocket(String url) native "WebSocket_constructor_Callback"; 103 static _createWebSocket(String url) native "WebSocket_constructor_Callback";
101 } 104 }
102 105
103 class _TextFactoryProvider { 106 class _TextFactoryProvider {
104 factory Text(String data) => _document.$dom_createTextNode(data); 107 factory Text(String data) => _document.$dom_createTextNode(data);
105 } 108 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698