OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. |
3 * Copyright (C) 2011 Google Inc. All rights reserved. | 3 * Copyright (C) 2011 Google Inc. All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 11 matching lines...) Expand all Loading... |
22 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 22 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
24 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 24 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
25 */ | 25 */ |
26 | 26 |
27 // https://html.spec.whatwg.org/#the-window-object | 27 // https://html.spec.whatwg.org/#the-window-object |
28 | 28 |
29 // FIXME: explain all uses of [DoNotCheckSecurity] | 29 // FIXME: explain all uses of [DoNotCheckSecurity] |
30 [ | 30 [ |
31 CheckSecurity=Frame, | 31 CheckSecurity=Frame, |
32 Custom=ToV8, | |
33 ImplementedAs=DOMWindow, | 32 ImplementedAs=DOMWindow, |
34 PrimaryGlobal, | 33 PrimaryGlobal, |
35 ] interface Window : EventTarget { | 34 ] interface Window : EventTarget { |
36 // the current browsing context | 35 // the current browsing context |
37 // FIXME: The spec uses the WindowProxy type for this and many other attribu
tes. | 36 // FIXME: The spec uses the WindowProxy type for this and many other attribu
tes. |
38 [Unforgeable, DoNotCheckSecurity] readonly attribute Window window; | 37 [Unforgeable, DoNotCheckSecurity] readonly attribute Window window; |
39 [Replaceable, DoNotCheckSecurity] readonly attribute Window self; | 38 [Replaceable, DoNotCheckSecurity] readonly attribute Window self; |
40 [Unforgeable] readonly attribute Document document; | 39 [Unforgeable] readonly attribute Document document; |
41 attribute DOMString name; | 40 attribute DOMString name; |
42 [PutForwards=href, Unforgeable, DoNotCheckSecurity] readonly attribute Locat
ion location; | 41 [PutForwards=href, Unforgeable, DoNotCheckSecurity] readonly attribute Locat
ion location; |
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
208 // FIXME: make this typedef accurate once enough of http://crbug.com/240176 | 207 // FIXME: make this typedef accurate once enough of http://crbug.com/240176 |
209 // is in place. | 208 // is in place. |
210 // FIXME: consider putting this typedef in an .idl file containing spec-wide | 209 // FIXME: consider putting this typedef in an .idl file containing spec-wide |
211 // utility type definitions. | 210 // utility type definitions. |
212 typedef MessagePort Transferable; | 211 typedef MessagePort Transferable; |
213 | 212 |
214 Window implements GlobalEventHandlers; | 213 Window implements GlobalEventHandlers; |
215 Window implements WindowBase64; | 214 Window implements WindowBase64; |
216 Window implements WindowEventHandlers; | 215 Window implements WindowEventHandlers; |
217 Window implements WindowTimers; | 216 Window implements WindowTimers; |
OLD | NEW |