| 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 | 5 |
| 6 // Conversions for Window. These check if the window is the local | 6 // Conversions for Window. These check if the window is the local |
| 7 // window, and if it's not, wraps or unwraps it with a secure wrapper. | 7 // window, and if it's not, wraps or unwraps it with a secure wrapper. |
| 8 // We need to test for EventTarget here as well as it's a base type. | 8 // We need to test for EventTarget here as well as it's a base type. |
| 9 // We omit an unwrapper for Window as no methods take a non-local | 9 // We omit an unwrapper for Window as no methods take a non-local |
| 10 // window as a parameter. | 10 // window as a parameter. |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 return e; | 35 return e; |
| 36 } | 36 } |
| 37 | 37 |
| 38 EventTarget _convertDartToNative_EventTarget(e) { | 38 EventTarget _convertDartToNative_EventTarget(e) { |
| 39 if (e is _DOMWindowCrossFrame) { | 39 if (e is _DOMWindowCrossFrame) { |
| 40 return e._window; | 40 return e._window; |
| 41 } else { | 41 } else { |
| 42 return e; | 42 return e; |
| 43 } | 43 } |
| 44 } | 44 } |
| 45 |
| 46 _convertNativeToDart_XHR_Response(o) { |
| 47 if (o is Document) { |
| 48 return o; |
| 49 } |
| 50 return convertNativeToDart_SerializedScriptValue(o); |
| 51 } |
| OLD | NEW |