| 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 12 matching lines...) Expand all Loading... |
| 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 [CrossOrigin] | 29 // FIXME: explain all uses of [CrossOrigin] |
| 30 [ | 30 [ |
| 31 CheckSecurity=Receiver, | 31 CheckSecurity=Receiver, |
| 32 ImplementedAs=DOMWindow, | 32 ImplementedAs=DOMWindow, |
| 33 SameOriginImplementedAs=LocalDOMWindow, |
| 33 PrimaryGlobal, | 34 PrimaryGlobal, |
| 34 ] interface Window : EventTarget { | 35 ] interface Window : EventTarget { |
| 35 // the current browsing context | 36 // the current browsing context |
| 36 // FIXME: The spec uses the WindowProxy type for this and many other attribu
tes. | 37 // FIXME: The spec uses the WindowProxy type for this and many other attribu
tes. |
| 37 [Unforgeable, CrossOrigin] readonly attribute Window window; | 38 [Unforgeable, CrossOrigin] readonly attribute Window window; |
| 38 [Replaceable, CrossOrigin] readonly attribute Window self; | 39 [Replaceable, CrossOrigin] readonly attribute Window self; |
| 39 [Unforgeable, CachedAccessor] readonly attribute Document document; | 40 [Unforgeable, CachedAccessor] readonly attribute Document document; |
| 40 attribute DOMString name; | 41 attribute DOMString name; |
| 41 [PutForwards=href, Unforgeable, CrossOrigin=(Getter,Setter), Custom=Getter]
readonly attribute Location location; | 42 [PutForwards=href, Unforgeable, CrossOrigin=(Getter,Setter), Custom=Getter]
readonly attribute Location location; |
| 42 readonly attribute History history; | 43 readonly attribute History history; |
| (...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 208 // FIXME: make this typedef accurate once enough of https://crbug.com/240176 | 209 // FIXME: make this typedef accurate once enough of https://crbug.com/240176 |
| 209 // is in place. | 210 // is in place. |
| 210 // FIXME: consider putting this typedef in an .idl file containing spec-wide | 211 // FIXME: consider putting this typedef in an .idl file containing spec-wide |
| 211 // utility type definitions. | 212 // utility type definitions. |
| 212 typedef MessagePort Transferable; | 213 typedef MessagePort Transferable; |
| 213 | 214 |
| 214 Window implements GlobalEventHandlers; | 215 Window implements GlobalEventHandlers; |
| 215 Window implements WindowBase64; | 216 Window implements WindowBase64; |
| 216 Window implements WindowEventHandlers; | 217 Window implements WindowEventHandlers; |
| 217 Window implements WindowTimers; | 218 Window implements WindowTimers; |
| OLD | NEW |