Chromium Code Reviews| 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 |
| 7 /** | 7 /** |
| 8 * An object representing the top-level context object for web scripting. | 8 * An object representing the top-level context object for web scripting. |
| 9 * | 9 * |
| 10 * In a web browser, a [Window] object represents the actual browser window. | 10 * In a web browser, a [Window] object represents the actual browser window. |
| (...skipping 13 matching lines...) Expand all Loading... | |
| 24 // Fields. | 24 // Fields. |
| 25 Location get location; | 25 Location get location; |
| 26 History get history; | 26 History get history; |
| 27 | 27 |
| 28 bool get closed; | 28 bool get closed; |
| 29 Window get opener; | 29 Window get opener; |
| 30 Window get parent; | 30 Window get parent; |
| 31 Window get top; | 31 Window get top; |
| 32 | 32 |
| 33 // Methods. | 33 // Methods. |
| 34 void focus(); | |
| 35 void blur(); | |
|
blois
2012/11/20 00:24:31
I believe that LocalWindow still has blur and focu
| |
| 36 void close(); | 34 void close(); |
| 37 void postMessage(var message, String targetOrigin, [List messagePorts = null]) ; | 35 void postMessage(var message, String targetOrigin, [List messagePorts = null]) ; |
| 38 } | 36 } |
| 39 | 37 |
| 40 abstract class Location { | 38 abstract class Location { |
| 41 void set href(String val); | 39 void set href(String val); |
| 42 } | 40 } |
| 43 | 41 |
| 44 abstract class History { | 42 abstract class History { |
| 45 void back(); | 43 void back(); |
| 46 void forward(); | 44 void forward(); |
| 47 void go(int distance); | 45 void go(int distance); |
| 48 } | 46 } |
| OLD | NEW |