| 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 // TODO(vsm): Unify with Dartium version. | 5 // TODO(vsm): Unify with Dartium version. |
| 6 class _DOMWindowCrossFrameImpl implements DOMType, DOMWindow { | 6 class _DOMWindowCrossFrameImpl implements DOMType, DOMWindow { |
| 7 // Private window. | 7 // Private window. |
| 8 _DOMWindowJs _window; | 8 _DOMWindowJs _window; |
| 9 | 9 |
| 10 // DOMType | 10 // DOMType |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 | 53 |
| 54 static DOMWindow _createSafe(w) { | 54 static DOMWindow _createSafe(w) { |
| 55 if (w === window) { | 55 if (w === window) { |
| 56 return w; | 56 return w; |
| 57 } else { | 57 } else { |
| 58 // TODO(vsm): Cache or implement equality. | 58 // TODO(vsm): Cache or implement equality. |
| 59 return new _DOMWindowCrossFrameImpl(w); | 59 return new _DOMWindowCrossFrameImpl(w); |
| 60 } | 60 } |
| 61 } | 61 } |
| 62 } | 62 } |
| OLD | NEW |