| OLD | NEW | 
|---|
| 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 $ANNOTATIONS | 
| 7 /// @domName $DOMNAME |  | 
| 8 class $CLASSNAME$EXTENDS$IMPLEMENTS native "@*DOMWindow" { | 7 class $CLASSNAME$EXTENDS$IMPLEMENTS native "@*DOMWindow" { | 
| 9 | 8 | 
| 10   Document get document => JS('Document', '#.document', this); | 9   Document get document => JS('Document', '#.document', this); | 
| 11 | 10 | 
| 12   WindowBase _open2(url, name) => JS('Window', '#.open(#,#)', this, url, name); | 11   WindowBase _open2(url, name) => JS('Window', '#.open(#,#)', this, url, name); | 
| 13 | 12 | 
| 14   WindowBase _open3(url, name, options) => | 13   WindowBase _open3(url, name, options) => | 
| 15       JS('Window', '#.open(#,#,#)', this, url, name, options); | 14       JS('Window', '#.open(#,#,#)', this, url, name, options); | 
| 16 | 15 | 
| 17   WindowBase open(String url, String name, [String options]) { | 16   WindowBase open(String url, String name, [String options]) { | 
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 73 | 72 | 
| 74   /** | 73   /** | 
| 75    * Executes a [callback] after the next batch of browser layout measurements | 74    * Executes a [callback] after the next batch of browser layout measurements | 
| 76    * has completed or would have completed if any browser layout measurements | 75    * has completed or would have completed if any browser layout measurements | 
| 77    * had been scheduled. | 76    * had been scheduled. | 
| 78    */ | 77    */ | 
| 79   void requestLayoutFrame(TimeoutHandler callback) { | 78   void requestLayoutFrame(TimeoutHandler callback) { | 
| 80     _addMeasurementFrameCallback(callback); | 79     _addMeasurementFrameCallback(callback); | 
| 81   } | 80   } | 
| 82 | 81 | 
| 83   /** @domName DOMWindow.requestAnimationFrame */ | 82   @DomName('DOMWindow.requestAnimationFrame') | 
| 84   int requestAnimationFrame(RequestAnimationFrameCallback callback) { | 83   int requestAnimationFrame(RequestAnimationFrameCallback callback) { | 
| 85     _ensureRequestAnimationFrame(); | 84     _ensureRequestAnimationFrame(); | 
| 86     return _requestAnimationFrame(callback); | 85     return _requestAnimationFrame(callback); | 
| 87   } | 86   } | 
| 88 | 87 | 
| 89   void cancelAnimationFrame(id) { | 88   void cancelAnimationFrame(id) { | 
| 90     _ensureRequestAnimationFrame(); | 89     _ensureRequestAnimationFrame(); | 
| 91     _cancelAnimationFrame(id); | 90     _cancelAnimationFrame(id); | 
| 92   } | 91   } | 
| 93 | 92 | 
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 150   /** | 149   /** | 
| 151    * Register a [port] on this window under the given [name].  This | 150    * Register a [port] on this window under the given [name].  This | 
| 152    * port may be retrieved by any isolate (or JavaScript script) | 151    * port may be retrieved by any isolate (or JavaScript script) | 
| 153    * running in this window. | 152    * running in this window. | 
| 154    */ | 153    */ | 
| 155   void registerPort(String name, var port) { | 154   void registerPort(String name, var port) { | 
| 156     var serialized = _serialize(port); | 155     var serialized = _serialize(port); | 
| 157     document.documentElement.attributes['dart-port:$name'] = json.stringify(seri
     alized); | 156     document.documentElement.attributes['dart-port:$name'] = json.stringify(seri
     alized); | 
| 158   } | 157   } | 
| 159 | 158 | 
| 160   /// @domName Window.console; @docsEditable true | 159   /// @docsEditable true | 
|  | 160   @DomName('Window.console') | 
| 161   Console get console => Console.safeConsole; | 161   Console get console => Console.safeConsole; | 
| 162 | 162 | 
| 163 $!MEMBERS | 163 $!MEMBERS | 
| 164 } | 164 } | 
| OLD | NEW | 
|---|