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

Side by Side Diff: client/dom/scripts/template_wrapping_dom.js

Issue 8873011: Fix AudioContext constructor for Dartc. (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 // DO NOT EDIT 5 // DO NOT EDIT
6 // Auto-generated Dart DOM implementation. 6 // Auto-generated Dart DOM implementation.
7 7
8 $!CODE 8 $!CODE
9 9
10 function __dom_native_TimeoutHander_method(_this, callback, timeout, operation) { 10 function __dom_native_TimeoutHander_method(_this, callback, timeout, operation) {
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 return wrapper; 44 return wrapper;
45 } catch (e) { 45 } catch (e) {
46 throw __dom_wrap_exception(e); 46 throw __dom_wrap_exception(e);
47 } 47 }
48 } 48 }
49 49
50 // Native methods for factory providers. 50 // Native methods for factory providers.
51 51
52 function native__AudioContextFactoryProvider_create() { 52 function native__AudioContextFactoryProvider_create() {
53 try { 53 try {
54 return __dom_wrap(new AudioContext()); 54 var constructor = window.AudioContext || window.webkitAudioContext;
55 return __dom_wrap(new constructor());
55 } catch (e) { 56 } catch (e) {
56 throw __dom_wrap_exception(e); 57 throw __dom_wrap_exception(e);
57 } 58 }
58 } 59 }
59 60
60 function native__FileReaderFactoryProvider_create() { 61 function native__FileReaderFactoryProvider_create() {
61 try { 62 try {
62 return __dom_wrap(new FileReader()); 63 return __dom_wrap(new FileReader());
63 } catch (e) { 64 } catch (e) {
64 throw __dom_wrap_exception(e); 65 throw __dom_wrap_exception(e);
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after
325 function native__NativeDomGlobalProperties_getWindow() { 326 function native__NativeDomGlobalProperties_getWindow() {
326 // TODO: Should the window be obtained from an isolate? 327 // TODO: Should the window be obtained from an isolate?
327 return __dom_wrap(window); 328 return __dom_wrap(window);
328 } 329 }
329 330
330 // Declared in src/GlobalProperties.dart 331 // Declared in src/GlobalProperties.dart
331 function native__NativeDomGlobalProperties_getDocument() { 332 function native__NativeDomGlobalProperties_getDocument() {
332 // TODO: Should the window be obtained from an isolate? 333 // TODO: Should the window be obtained from an isolate?
333 return __dom_wrap(window.document); 334 return __dom_wrap(window.document);
334 } 335 }
OLDNEW
« no previous file with comments | « client/dom/generated/wrapping_dom_externs.js ('k') | client/dom/scripts/template_wrapping_dom_externs.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698