OLD | NEW |
---|---|
1 library html; | 1 library html; |
2 | 2 |
3 import 'dart:isolate'; | 3 import 'dart:isolate'; |
4 import 'dart:json'; | 4 import 'dart:json'; |
5 import 'dart:svg' as svg; | 5 import 'dart:svg' as svg; |
6 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 6 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
7 // for details. All rights reserved. Use of this source code is governed by a | 7 // for details. All rights reserved. Use of this source code is governed by a |
8 // BSD-style license that can be found in the LICENSE file. | 8 // BSD-style license that can be found in the LICENSE file. |
9 | 9 |
10 // DO NOT EDIT | 10 // DO NOT EDIT |
(...skipping 21989 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
22000 | 22000 |
22001 class _XSLTProcessorFactoryProvider { | 22001 class _XSLTProcessorFactoryProvider { |
22002 static XSLTProcessor createXSLTProcessor() => | 22002 static XSLTProcessor createXSLTProcessor() => |
22003 JS('XSLTProcessor', 'new XSLTProcessor()' ); | 22003 JS('XSLTProcessor', 'new XSLTProcessor()' ); |
22004 } | 22004 } |
22005 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 22005 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
22006 // for details. All rights reserved. Use of this source code is governed by a | 22006 // for details. All rights reserved. Use of this source code is governed by a |
22007 // BSD-style license that can be found in the LICENSE file. | 22007 // BSD-style license that can be found in the LICENSE file. |
22008 | 22008 |
22009 | 22009 |
22010 /** | |
22011 * Represents the top level context object for web scripting. | |
Kathy Walrath
2012/11/16 16:47:06
I've been saying that classes should be noun phras
Andrei Mouravski
2012/11/16 18:02:16
Done.
| |
22012 * | |
22013 * In a web browser, a [Window] object represents the actual browser window. | |
22014 * In a multi-tabbed browser, each tab has its own [Window] object. A [Window] | |
22015 * is the container that displays a [Document]'s content. All web scripting | |
22016 * happens within the context of a [Window] object. | |
22017 * | |
22018 * **Note:** that this class represents any window, whereas [LocalWindow] is | |
Kathy Walrath
2012/11/16 16:47:06
that this
-> This
Andrei Mouravski
2012/11/16 18:02:16
Done.
| |
22019 * used to access the properties and content of the current window. | |
22020 * | |
22021 * See also: | |
22022 * | |
22023 * * [DOM Window](https://developer.mozilla.org/en-US/docs/DOM/window) from MDN. | |
22024 * * [Window](http://www.w3.org/TR/Window/) from the W3C. | |
22025 */ | |
22010 abstract class Window { | 22026 abstract class Window { |
22011 // Fields. | 22027 // Fields. |
22012 Location get location; | 22028 Location get location; |
22013 History get history; | 22029 History get history; |
22014 | 22030 |
22015 bool get closed; | 22031 bool get closed; |
22016 Window get opener; | 22032 Window get opener; |
22017 Window get parent; | 22033 Window get parent; |
22018 Window get top; | 22034 Window get top; |
22019 | 22035 |
(...skipping 2834 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
24854 if (length < 0) throw new ArgumentError('length'); | 24870 if (length < 0) throw new ArgumentError('length'); |
24855 if (start < 0) throw new RangeError.value(start); | 24871 if (start < 0) throw new RangeError.value(start); |
24856 int end = start + length; | 24872 int end = start + length; |
24857 if (end > a.length) throw new RangeError.value(end); | 24873 if (end > a.length) throw new RangeError.value(end); |
24858 for (int i = start; i < end; i++) { | 24874 for (int i = start; i < end; i++) { |
24859 accumulator.add(a[i]); | 24875 accumulator.add(a[i]); |
24860 } | 24876 } |
24861 return accumulator; | 24877 return accumulator; |
24862 } | 24878 } |
24863 } | 24879 } |
OLD | NEW |