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

Side by Side Diff: tools/dom/src/html_native_DOMImplementation.dart

Issue 569783002: Migrate to Chrome 37 IDL (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 3 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 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 _Property { 7 class _Property {
8 _Property(this.name) : 8 _Property(this.name) :
9 _hasValue = false, 9 _hasValue = false,
10 writable = false, 10 writable = false,
(...skipping 813 matching lines...) Expand 10 before | Expand all | Expand 10 after
824 void postMessage(/*SerializedScriptValue*/ message, String targetOrigin, [List messagePorts]) => 824 void postMessage(/*SerializedScriptValue*/ message, String targetOrigin, [List messagePorts]) =>
825 _blink.Blink_DOMWindowCrossFrame.postMessage(this, message, targetOrigin, me ssagePorts); 825 _blink.Blink_DOMWindowCrossFrame.postMessage(this, message, targetOrigin, me ssagePorts);
826 826
827 // Implementation support. 827 // Implementation support.
828 String get typeName => "Window"; 828 String get typeName => "Window";
829 829
830 // TODO(efortuna): Remove this method. dartbug.com/16814 830 // TODO(efortuna): Remove this method. dartbug.com/16814
831 Events get on => throw new UnsupportedError( 831 Events get on => throw new UnsupportedError(
832 'You can only attach EventListeners to your own window.'); 832 'You can only attach EventListeners to your own window.');
833 // TODO(efortuna): Remove this method. dartbug.com/16814 833 // TODO(efortuna): Remove this method. dartbug.com/16814
834 void _addEventListener([String type, EventListener listener, bool useCapture])
835 => throw new UnsupportedError(
836 'You can only attach EventListeners to your own window.');
837 // TODO(efortuna): Remove this method. dartbug.com/16814
834 void addEventListener(String type, EventListener listener, [bool useCapture]) 838 void addEventListener(String type, EventListener listener, [bool useCapture])
835 => throw new UnsupportedError( 839 => throw new UnsupportedError(
836 'You can only attach EventListeners to your own window.'); 840 'You can only attach EventListeners to your own window.');
837 // TODO(efortuna): Remove this method. dartbug.com/16814 841 // TODO(efortuna): Remove this method. dartbug.com/16814
838 bool dispatchEvent(Event event) => throw new UnsupportedError( 842 bool dispatchEvent(Event event) => throw new UnsupportedError(
839 'You can only attach EventListeners to your own window.'); 843 'You can only attach EventListeners to your own window.');
840 // TODO(efortuna): Remove this method. dartbug.com/16814 844 // TODO(efortuna): Remove this method. dartbug.com/16814
845 void _removeEventListener([String type, EventListener listener,
846 bool useCapture]) => throw new UnsupportedError(
847 'You can only attach EventListeners to your own window.');
848 // TODO(efortuna): Remove this method. dartbug.com/16814
841 void removeEventListener(String type, EventListener listener, 849 void removeEventListener(String type, EventListener listener,
842 [bool useCapture]) => throw new UnsupportedError( 850 [bool useCapture]) => throw new UnsupportedError(
843 'You can only attach EventListeners to your own window.'); 851 'You can only attach EventListeners to your own window.');
844 } 852 }
845 853
846 class _HistoryCrossFrame extends NativeFieldWrapperClass2 implements HistoryBase { 854 class _HistoryCrossFrame extends NativeFieldWrapperClass2 implements HistoryBase {
847 _HistoryCrossFrame.internal(); 855 _HistoryCrossFrame.internal();
848 856
849 // Methods. 857 // Methods.
850 void back() => _blink.Blink_HistoryCrossFrame.back(this); 858 void back() => _blink.Blink_HistoryCrossFrame.back(this);
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
987 throw new UnimplementedError("scheduleMicrotask in background isolates " 995 throw new UnimplementedError("scheduleMicrotask in background isolates "
988 "are not supported in the browser")); 996 "are not supported in the browser"));
989 997
990 void _initializeCustomElement(Element e) { 998 void _initializeCustomElement(Element e) {
991 _Utils.initializeCustomElement(e); 999 _Utils.initializeCustomElement(e);
992 } 1000 }
993 1001
994 // Class for unsupported native browser 'DOM' objects. 1002 // Class for unsupported native browser 'DOM' objects.
995 class _UnsupportedBrowserObject extends NativeFieldWrapperClass2 { 1003 class _UnsupportedBrowserObject extends NativeFieldWrapperClass2 {
996 } 1004 }
OLDNEW
« no previous file with comments | « tools/dom/src/dart2js_DOMImplementation.dart ('k') | tools/dom/templates/html/dartium/html_dartium.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698