OLD | NEW |
1 // Copyright (c) 2011, 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 interface DocumentEvents extends ElementEvents { | 5 interface DocumentEvents extends ElementEvents { |
6 EventListenerList get readyStateChange(); | 6 EventListenerList get readyStateChange(); |
7 EventListenerList get selectionChange(); | 7 EventListenerList get selectionChange(); |
8 EventListenerList get contentLoaded(); | 8 EventListenerList get contentLoaded(); |
9 } | 9 } |
10 | 10 |
11 // TODO(jacobr): add DocumentFragment ctor | 11 // TODO(jacobr): add DocumentFragment ctor |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 | 52 |
53 // TODO(jacobr): should this be removed? Users could write document.query("tit
le").text instead. | 53 // TODO(jacobr): should this be removed? Users could write document.query("tit
le").text instead. |
54 String get title(); | 54 String get title(); |
55 | 55 |
56 void set title(String value); | 56 void set title(String value); |
57 | 57 |
58 bool get webkitHidden(); | 58 bool get webkitHidden(); |
59 | 59 |
60 String get webkitVisibilityState(); | 60 String get webkitVisibilityState(); |
61 | 61 |
62 Future<Range> caretRangeFromPoint([int x, int y]); | 62 /** Only call when [window.inMeasurementFrame] is true. */ |
| 63 Range caretRangeFromPoint([int x, int y]); |
63 | 64 |
64 Future<Element> elementFromPoint([int x, int y]); | 65 /** Only call when [window.inMeasurementFrame] is true. */ |
| 66 Element elementFromPoint([int x, int y]); |
65 | 67 |
66 bool execCommand([String command, bool userInterface, String value]); | 68 bool execCommand([String command, bool userInterface, String value]); |
67 | 69 |
68 // TODO(jacobr): remove once a new API is specified | 70 // TODO(jacobr): remove once a new API is specified |
69 CanvasRenderingContext getCSSCanvasContext(String contextId, String name, | 71 CanvasRenderingContext getCSSCanvasContext(String contextId, String name, |
70 int width, int height); | 72 int width, int height); |
71 | 73 |
72 bool queryCommandEnabled([String command]); | 74 bool queryCommandEnabled([String command]); |
73 | 75 |
74 bool queryCommandIndeterm([String command]); | 76 bool queryCommandIndeterm([String command]); |
75 | 77 |
76 bool queryCommandState([String command]); | 78 bool queryCommandState([String command]); |
77 | 79 |
78 bool queryCommandSupported([String command]); | 80 bool queryCommandSupported([String command]); |
79 | 81 |
80 String queryCommandValue([String command]); | 82 String queryCommandValue([String command]); |
81 | 83 |
82 String get manifest(); | 84 String get manifest(); |
83 | 85 |
84 void set manifest(String value); | 86 void set manifest(String value); |
85 | 87 |
86 DocumentEvents get on(); | 88 DocumentEvents get on(); |
87 | |
88 Future<ElementRect> get rect(); | |
89 } | 89 } |
OLD | NEW |