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

Unified Diff: sdk/lib/web_audio/dart2js/web_audio_dart2js.dart

Issue 27033009: Making all base class DOM types throw as well (to prevent a default constructor for DOM types that … (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sdk/lib/svg/dartium/svg_dartium.dart ('k') | sdk/lib/web_audio/dartium/web_audio_dartium.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/web_audio/dart2js/web_audio_dart2js.dart
diff --git a/sdk/lib/web_audio/dart2js/web_audio_dart2js.dart b/sdk/lib/web_audio/dart2js/web_audio_dart2js.dart
index 3a42513d99e19a72ace2fda8e901f8c7a4e4e5d0..a7aa32adecf5f69a72b6be9ba3f490b6f47cec52 100644
--- a/sdk/lib/web_audio/dart2js/web_audio_dart2js.dart
+++ b/sdk/lib/web_audio/dart2js/web_audio_dart2js.dart
@@ -74,6 +74,8 @@ class AnalyserNode extends AudioNode native "AnalyserNode,RealtimeAnalyserNode"
// https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioBuffer-section
@Experimental()
class AudioBuffer extends Interceptor native "AudioBuffer" {
+ // To suppress missing implicit constructor warnings.
+ factory AudioBuffer._() { throw new UnsupportedError("Not supported"); }
@DomName('AudioBuffer.duration')
@DocsEditable()
@@ -418,6 +420,8 @@ class AudioDestinationNode extends AudioNode native "AudioDestinationNode" {
// https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioListener-section
@Experimental()
class AudioListener extends Interceptor native "AudioListener" {
+ // To suppress missing implicit constructor warnings.
+ factory AudioListener._() { throw new UnsupportedError("Not supported"); }
@DomName('AudioListener.dopplerFactor')
@DocsEditable()
@@ -502,6 +506,8 @@ class AudioNode extends EventTarget native "AudioNode" {
// https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioParam
@Experimental()
class AudioParam extends Interceptor native "AudioParam" {
+ // To suppress missing implicit constructor warnings.
+ factory AudioParam._() { throw new UnsupportedError("Not supported"); }
@DomName('AudioParam.defaultValue')
@DocsEditable()
@@ -1073,6 +1079,8 @@ class PannerNode extends AudioNode native "PannerNode,AudioPannerNode" {
@DomName('PeriodicWave')
@Experimental() // untriaged
class PeriodicWave extends Interceptor native "PeriodicWave" {
+ // To suppress missing implicit constructor warnings.
+ factory PeriodicWave._() { throw new UnsupportedError("Not supported"); }
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
« no previous file with comments | « sdk/lib/svg/dartium/svg_dartium.dart ('k') | sdk/lib/web_audio/dartium/web_audio_dartium.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698