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

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

Issue 11275311: Fix incorrect names. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 1 month 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 static AudioContext createAudioContext() => _createAudioContext(); 6 static AudioContext createAudioContext() => _createAudioContext();
7 static _createAudioContext([int numberOfChannels, 7 static _createAudioContext([int numberOfChannels,
8 int numberOfFrames, 8 int numberOfFrames,
9 int sampleRate]) 9 int sampleRate])
10 native "AudioContext_constructor_Callback"; 10 native "AudioContext_constructor_Callback";
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 static _U16(arg0, [arg1, arg2]) native "Uint16Array_constructor_Callback"; 80 static _U16(arg0, [arg1, arg2]) native "Uint16Array_constructor_Callback";
81 81
82 static Uint32Array createUint32Array(int length) => _U32(length); 82 static Uint32Array createUint32Array(int length) => _U32(length);
83 static Uint32Array createUint32Array_fromList(List<num> list) => 83 static Uint32Array createUint32Array_fromList(List<num> list) =>
84 _U32(ensureNative(list)); 84 _U32(ensureNative(list));
85 static Uint32Array createUint32Array_fromBuffer(ArrayBuffer buffer, 85 static Uint32Array createUint32Array_fromBuffer(ArrayBuffer buffer,
86 [int byteOffset = 0, int length]) => _U32(buffer, byteOffset, length); 86 [int byteOffset = 0, int length]) => _U32(buffer, byteOffset, length);
87 static _U32(arg0, [arg1, arg2]) native "Uint32Array_constructor_Callback"; 87 static _U32(arg0, [arg1, arg2]) native "Uint32Array_constructor_Callback";
88 88
89 static Uint8ClampedArray createUint8ClampedArray(int length) => _U8C(length); 89 static Uint8ClampedArray createUint8ClampedArray(int length) => _U8C(length);
90 static Uint8ClampedArray createUint8ClampedArrayUint8ClampedArray_fromList( 90 static Uint8ClampedArray createUint8ClampedArray_fromList(
91 List<num> list) => _U8C(ensureNative(list)); 91 List<num> list) => _U8C(ensureNative(list));
92 static Uint8ClampedArray createUint8ClampedArrayUint8ClampedArray_fromBuffer( 92 static Uint8ClampedArray createUint8ClampedArray_fromBuffer(
93 ArrayBuffer buffer, [int byteOffset = 0, int length]) => 93 ArrayBuffer buffer, [int byteOffset = 0, int length]) =>
94 _U8C(buffer, byteOffset, length); 94 _U8C(buffer, byteOffset, length);
95 static _U8C(arg0, [arg1, arg2]) native "Uint8ClampedArray_constructor_Callback "; 95 static _U8C(arg0, [arg1, arg2]) native "Uint8ClampedArray_constructor_Callback ";
96 96
97 static ensureNative(List list) => list; // TODO: make sure. 97 static ensureNative(List list) => list; // TODO: make sure.
98 } 98 }
99 99
100 class _PointFactoryProvider { 100 class _PointFactoryProvider {
101 static Point createPoint(num x, num y) => _createWebKitPoint(x, y); 101 static Point createPoint(num x, num y) => _createWebKitPoint(x, y);
102 static _createWebKitPoint(num x, num y) native "WebKitPoint_constructor_Callba ck"; 102 static _createWebKitPoint(num x, num y) native "WebKitPoint_constructor_Callba ck";
103 } 103 }
104 104
105 class _WebSocketFactoryProvider { 105 class _WebSocketFactoryProvider {
106 static WebSocket createWebSocket(String url) => _createWebSocket(url); 106 static WebSocket createWebSocket(String url) => _createWebSocket(url);
107 static _createWebSocket(String url) native "WebSocket_constructor_Callback"; 107 static _createWebSocket(String url) native "WebSocket_constructor_Callback";
108 } 108 }
109 109
110 class _TextFactoryProvider { 110 class _TextFactoryProvider {
111 static Text createText(String data) => document.$dom_createTextNode(data); 111 static Text createText(String data) => document.$dom_createTextNode(data);
112 } 112 }
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