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

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

Issue 11280103: Splitting out the Audio library. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Adding missing lib registrations Created 8 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) 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 part of html; 5 part of html;
6 6
7 class _AudioContextFactoryProvider {
8 static AudioContext createAudioContext() => _createAudioContext();
9 static _createAudioContext([int numberOfChannels,
10 int numberOfFrames,
11 int sampleRate])
12 native "AudioContext_constructor_Callback";
13 }
14
15 class _IDBKeyRangeFactoryProvider { 7 class _IDBKeyRangeFactoryProvider {
16 8
17 static IDBKeyRange createIDBKeyRange_only(/*IDBKey*/ value) => 9 static IDBKeyRange createIDBKeyRange_only(/*IDBKey*/ value) =>
18 IDBKeyRange.only_(value); 10 IDBKeyRange.only_(value);
19 11
20 static IDBKeyRange createIDBKeyRange_lowerBound( 12 static IDBKeyRange createIDBKeyRange_lowerBound(
21 /*IDBKey*/ bound, [bool open = false]) => 13 /*IDBKey*/ bound, [bool open = false]) =>
22 IDBKeyRange.lowerBound_(bound, open); 14 IDBKeyRange.lowerBound_(bound, open);
23 15
24 static IDBKeyRange createIDBKeyRange_upperBound( 16 static IDBKeyRange createIDBKeyRange_upperBound(
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 } 97 }
106 98
107 class _WebSocketFactoryProvider { 99 class _WebSocketFactoryProvider {
108 static WebSocket createWebSocket(String url) => _createWebSocket(url); 100 static WebSocket createWebSocket(String url) => _createWebSocket(url);
109 static _createWebSocket(String url) native "WebSocket_constructor_Callback"; 101 static _createWebSocket(String url) native "WebSocket_constructor_Callback";
110 } 102 }
111 103
112 class _TextFactoryProvider { 104 class _TextFactoryProvider {
113 static Text createText(String data) => document.$dom_createTextNode(data); 105 static Text createText(String data) => document.$dom_createTextNode(data);
114 } 106 }
OLDNEW
« no previous file with comments | « sdk/lib/html/src/dart2js_FactoryProviders.dart ('k') | sdk/lib/html/templates/html/dart2js/html_dart2js.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698