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

Unified Diff: client/dom/generated/src/frog/Console.dart

Issue 9271031: Make DOMType the root of DOM implementation types. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: x Created 8 years, 11 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
Index: client/dom/generated/src/frog/Console.dart
diff --git a/client/dom/generated/src/frog/Console.dart b/client/dom/generated/src/frog/Console.dart
index d733a6460d9d3a00548e57b899e58afc3a3aa624..b3e654229dd0789698c45bf55bec51c708c8c338 100644
--- a/client/dom/generated/src/frog/Console.dart
+++ b/client/dom/generated/src/frog/Console.dart
@@ -1,7 +1,15 @@
+// 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
+// BSD-style license that can be found in the LICENSE file.
-class ConsoleJS implements Console native "=(typeof console == 'undefined' ? {} : console)" {
+class ConsoleJs
+ // Implement DOMType directly. Console is sometimes a singleton
+ // bag-of-properties without a prototype, so it can't inherit from
+ // DOMTypeJs.
+ implements Console, DOMType
+ native "=(typeof console == 'undefined' ? {} : console)" {
- MemoryInfoJS get memory() native "return this.memory;";
+ MemoryInfoJs get memory() native "return this.memory;";
List get profiles() native "return this.profiles;";
@@ -43,7 +51,8 @@ class ConsoleJS implements Console native "=(typeof console == 'undefined' ? {}
void warn(Object arg) native;
- var dartObjectLocalStorage;
+ // Keep these in sync with frog_DOMTypeJs.dart.
+ var dartObjectLocalStorage;
String get typeName() native;
}
« no previous file with comments | « client/dom/generated/src/frog/CompositionEvent.dart ('k') | client/dom/generated/src/frog/ConvolverNode.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698