Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(300)

Side by Side Diff: client/html/src/Element.dart

Issue 8355019: Make DocumentFragment implement Element. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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 ElementList extends List<Element> { 5 interface ElementList extends List<Element> {
6 // TODO(jacobr): add element batch manipulation methods. 6 // TODO(jacobr): add element batch manipulation methods.
7 Element get first(); 7 Element get first();
8 // TODO(jacobr): add insertAt 8 // TODO(jacobr): add insertAt
9 } 9 }
10 10
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 Element.tag(String tag); 76 Element.tag(String tag);
77 77
78 Map<String, String> get attributes(); 78 Map<String, String> get attributes();
79 void set attributes(Map<String, String> value); 79 void set attributes(Map<String, String> value);
80 80
81 ElementList get elements(); 81 ElementList get elements();
82 82
83 // TODO: The type of value should be Collection<Element>. See http://b/5392897 83 // TODO: The type of value should be Collection<Element>. See http://b/5392897
84 void set elements(value); 84 void set elements(value);
85 85
86 _CssClassSet get classes(); 86 Set<String> get classes();
87 87
88 // TODO: The type of value should be Collection<String>. See http://b/5392897 88 // TODO: The type of value should be Collection<String>. See http://b/5392897
89 void set classes(value); 89 void set classes(value);
90 90
91 Map<String, String> get dataAttributes(); 91 Map<String, String> get dataAttributes();
92 void set dataAttributes(Map<String, String> value); 92 void set dataAttributes(Map<String, String> value);
93 93
94 int get clientHeight(); 94 int get clientHeight();
95 95
96 int get clientLeft(); 96 int get clientLeft();
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 String get webkitdropzone(); 180 String get webkitdropzone();
181 181
182 void set webkitdropzone(String value); 182 void set webkitdropzone(String value);
183 183
184 void blur(); 184 void blur();
185 185
186 void focus(); 186 void focus();
187 187
188 ClientRect getBoundingClientRect(); 188 ClientRect getBoundingClientRect();
189 189
190 ClientRectList getClientRects(); 190 List<ClientRect> getClientRects();
191 191
192 Element insertAdjacentElement([String where, Element element]); 192 Element insertAdjacentElement([String where, Element element]);
193 193
194 void insertAdjacentHTML([String position_OR_where, String text]); 194 void insertAdjacentHTML([String position_OR_where, String text]);
195 195
196 void insertAdjacentText([String where, String text]); 196 void insertAdjacentText([String where, String text]);
197 197
198 Element query(String selectors); 198 Element query(String selectors);
199 199
200 ElementList queryAll(String selectors); 200 ElementList queryAll(String selectors);
201 201
202 Element get parent(); 202 Element get parent();
203 203
204 void scrollByLines([int lines]); 204 void scrollByLines([int lines]);
205 205
206 void scrollByPages([int pages]); 206 void scrollByPages([int pages]);
207 207
208 void scrollIntoView([bool centerIfNeeded]); 208 void scrollIntoView([bool centerIfNeeded]);
209 209
210 bool matchesSelector([String selectors]); 210 bool matchesSelector([String selectors]);
211 211
212 ElementEvents get on(); 212 ElementEvents get on();
213 } 213 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698