| 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 Window { | 6 class _DOMWindowCrossFrameImpl implements Window { |
| 7 // Private window. | 7 // Private window. |
| 8 _WindowImpl _window; | 8 _WindowImpl _window; |
| 9 | 9 |
| 10 // Fields. | 10 // Fields. |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 | 60 |
| 61 static Window _createSafe(w) { | 61 static Window _createSafe(w) { |
| 62 if (w === window) { | 62 if (w === window) { |
| 63 return w; | 63 return w; |
| 64 } else { | 64 } else { |
| 65 // TODO(vsm): Cache or implement equality. | 65 // TODO(vsm): Cache or implement equality. |
| 66 return new _DOMWindowCrossFrameImpl(w); | 66 return new _DOMWindowCrossFrameImpl(w); |
| 67 } | 67 } |
| 68 } | 68 } |
| 69 } | 69 } |
| OLD | NEW |