OLD | NEW |
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 class FilteredElementList implements ElementList { | 5 class FilteredElementList implements ElementList { |
6 final Node _node; | 6 final Node _node; |
7 final NodeList _childNodes; | 7 final NodeList _childNodes; |
8 | 8 |
9 FilteredElementList(Node node): _childNodes = node.nodes, _node = node; | 9 FilteredElementList(Node node): _childNodes = node.nodes, _node = node; |
10 | 10 |
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
234 | 234 |
235 // Imperative Element methods are made into no-ops, as they are on parentless | 235 // Imperative Element methods are made into no-ops, as they are on parentless |
236 // elements. | 236 // elements. |
237 void blur() {} | 237 void blur() {} |
238 void focus() {} | 238 void focus() {} |
239 void click() {} | 239 void click() {} |
240 void scrollByLines(int lines) {} | 240 void scrollByLines(int lines) {} |
241 void scrollByPages(int pages) {} | 241 void scrollByPages(int pages) {} |
242 void scrollIntoView([bool centerIfNeeded]) {} | 242 void scrollIntoView([bool centerIfNeeded]) {} |
243 void webkitRequestFullScreen(int flags) {} | 243 void webkitRequestFullScreen(int flags) {} |
| 244 void webkitRequestFullscreen() {} |
244 | 245 |
245 // Setters throw errors rather than being no-ops because we aren't going to | 246 // Setters throw errors rather than being no-ops because we aren't going to |
246 // retain the values that were set, and erroring out seems clearer. | 247 // retain the values that were set, and erroring out seems clearer. |
247 void set attributes(Map<String, String> value) { | 248 void set attributes(Map<String, String> value) { |
248 throw new UnsupportedOperationException( | 249 throw new UnsupportedOperationException( |
249 "Attributes can't be set for document fragments."); | 250 "Attributes can't be set for document fragments."); |
250 } | 251 } |
251 | 252 |
252 void set classes(Collection<String> value) { | 253 void set classes(Collection<String> value) { |
253 throw new UnsupportedOperationException( | 254 throw new UnsupportedOperationException( |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
334 "WebKit drop zone can't be set for document fragments."); | 335 "WebKit drop zone can't be set for document fragments."); |
335 } | 336 } |
336 | 337 |
337 void set webkitRegionOverflow(String value) { | 338 void set webkitRegionOverflow(String value) { |
338 throw new UnsupportedOperationException( | 339 throw new UnsupportedOperationException( |
339 "WebKit region overflow can't be set for document fragments."); | 340 "WebKit region overflow can't be set for document fragments."); |
340 } | 341 } |
341 | 342 |
342 $!MEMBERS | 343 $!MEMBERS |
343 } | 344 } |
OLD | NEW |