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

Side by Side Diff: tools/dom/src/dart2js_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
« no previous file with comments | « tools/dom/scripts/idlnode.py ('k') | tools/dom/src/html_native_DOMImplementation.dart » ('j') | 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 part of html; 5 part of html;
6 6
7 // TODO(vsm): Unify with Dartium version. 7 // TODO(vsm): Unify with Dartium version.
8 class _DOMWindowCrossFrame implements WindowBase { 8 class _DOMWindowCrossFrame implements WindowBase {
9 // Private window. Note, this is a window in another frame, so it 9 // Private window. Note, this is a window in another frame, so it
10 // cannot be typed as "Window" as its prototype is not patched 10 // cannot be typed as "Window" as its prototype is not patched
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 } else { 50 } else {
51 // TODO(vsm): Cache or implement equality. 51 // TODO(vsm): Cache or implement equality.
52 return new _DOMWindowCrossFrame(w); 52 return new _DOMWindowCrossFrame(w);
53 } 53 }
54 } 54 }
55 55
56 // TODO(efortuna): Remove this method. dartbug.com/16814 56 // TODO(efortuna): Remove this method. dartbug.com/16814
57 Events get on => throw new UnsupportedError( 57 Events get on => throw new UnsupportedError(
58 'You can only attach EventListeners to your own window.'); 58 'You can only attach EventListeners to your own window.');
59 // TODO(efortuna): Remove this method. dartbug.com/16814 59 // TODO(efortuna): Remove this method. dartbug.com/16814
60 void _addEventListener([String type, EventListener listener, bool useCapture])
61 => throw new UnsupportedError(
62 'You can only attach EventListeners to your own window.');
63 // TODO(efortuna): Remove this method. dartbug.com/16814
60 void addEventListener(String type, EventListener listener, [bool useCapture]) 64 void addEventListener(String type, EventListener listener, [bool useCapture])
61 => throw new UnsupportedError( 65 => throw new UnsupportedError(
62 'You can only attach EventListeners to your own window.'); 66 'You can only attach EventListeners to your own window.');
63 // TODO(efortuna): Remove this method. dartbug.com/16814 67 // TODO(efortuna): Remove this method. dartbug.com/16814
64 bool dispatchEvent(Event event) => throw new UnsupportedError( 68 bool dispatchEvent(Event event) => throw new UnsupportedError(
65 'You can only attach EventListeners to your own window.'); 69 'You can only attach EventListeners to your own window.');
66 // TODO(efortuna): Remove this method. dartbug.com/16814 70 // TODO(efortuna): Remove this method. dartbug.com/16814
71 void _removeEventListener([String type, EventListener listener,
72 bool useCapture]) => throw new UnsupportedError(
73 'You can only attach EventListeners to your own window.');
74 // TODO(efortuna): Remove this method. dartbug.com/16814
67 void removeEventListener(String type, EventListener listener, 75 void removeEventListener(String type, EventListener listener,
68 [bool useCapture]) => throw new UnsupportedError( 76 [bool useCapture]) => throw new UnsupportedError(
69 'You can only attach EventListeners to your own window.'); 77 'You can only attach EventListeners to your own window.');
70 } 78 }
71 79
72 class _LocationCrossFrame implements LocationBase { 80 class _LocationCrossFrame implements LocationBase {
73 // Private location. Note, this is a location object in another frame, so it 81 // Private location. Note, this is a location object in another frame, so it
74 // cannot be typed as "Location" as its prototype is not patched 82 // cannot be typed as "Location" as its prototype is not patched
75 // properly. Its fields and methods can only be accessed via JavaScript. 83 // properly. Its fields and methods can only be accessed via JavaScript.
76 var _location; 84 var _location;
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 118
111 static HistoryBase _createSafe(h) { 119 static HistoryBase _createSafe(h) {
112 if (identical(h, window.history)) { 120 if (identical(h, window.history)) {
113 return h; 121 return h;
114 } else { 122 } else {
115 // TODO(vsm): Cache or implement equality. 123 // TODO(vsm): Cache or implement equality.
116 return new _HistoryCrossFrame(h); 124 return new _HistoryCrossFrame(h);
117 } 125 }
118 } 126 }
119 } 127 }
OLDNEW
« no previous file with comments | « tools/dom/scripts/idlnode.py ('k') | tools/dom/src/html_native_DOMImplementation.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698