| 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 16 matching lines...) Expand all Loading... |
| 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 PrimaryGlobal, | 33 PrimaryGlobal, |
| 34 ] interface Window : EventTarget { | 34 ] interface Window : EventTarget { |
| 35 // the current browsing context | 35 // the current browsing context |
| 36 // 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. |
| 37 [Unforgeable, CallWith=ScriptState, CrossOrigin] readonly attribute Window w
indow; | 37 [Unforgeable, CrossOrigin] readonly attribute Window window; |
| 38 [Replaceable, CallWith=ScriptState, CrossOrigin] readonly attribute Window s
elf; | 38 [Replaceable, CrossOrigin] readonly attribute Window self; |
| 39 [Unforgeable, CachedAccessor] readonly attribute Document document; | 39 [Unforgeable, CachedAccessor] readonly attribute Document document; |
| 40 attribute DOMString name; | 40 attribute DOMString name; |
| 41 [PutForwards=href, Unforgeable, CrossOrigin=(Getter,Setter)] readonly attrib
ute Location location; | 41 [PutForwards=href, Unforgeable, CrossOrigin=(Getter,Setter)] readonly attrib
ute Location location; |
| 42 readonly attribute History history; | 42 readonly attribute History history; |
| 43 [Replaceable, MeasureAs=BarPropLocationbar] readonly attribute BarProp locat
ionbar; | 43 [Replaceable, MeasureAs=BarPropLocationbar] readonly attribute BarProp locat
ionbar; |
| 44 [Replaceable, MeasureAs=BarPropMenubar] readonly attribute BarProp menubar; | 44 [Replaceable, MeasureAs=BarPropMenubar] readonly attribute BarProp menubar; |
| 45 [Replaceable, MeasureAs=BarPropPersonalbar] readonly attribute BarProp perso
nalbar; | 45 [Replaceable, MeasureAs=BarPropPersonalbar] readonly attribute BarProp perso
nalbar; |
| 46 [Replaceable, MeasureAs=BarPropScrollbars] readonly attribute BarProp scroll
bars; | 46 [Replaceable, MeasureAs=BarPropScrollbars] readonly attribute BarProp scroll
bars; |
| 47 [Replaceable, MeasureAs=BarPropStatusbar] readonly attribute BarProp statusb
ar; | 47 [Replaceable, MeasureAs=BarPropStatusbar] readonly attribute BarProp statusb
ar; |
| 48 [Replaceable, MeasureAs=BarPropToolbar] readonly attribute BarProp toolbar; | 48 [Replaceable, MeasureAs=BarPropToolbar] readonly attribute BarProp toolbar; |
| 49 attribute DOMString status; | 49 attribute DOMString status; |
| 50 [CrossOrigin, CallWith=ExecutionContext] void close(); | 50 [CrossOrigin, CallWith=ExecutionContext] void close(); |
| 51 [CrossOrigin] readonly attribute boolean closed; | 51 [CrossOrigin] readonly attribute boolean closed; |
| 52 void stop(); | 52 void stop(); |
| 53 [CrossOrigin, CallWith=ExecutionContext] void focus(); | 53 [CrossOrigin, CallWith=ExecutionContext] void focus(); |
| 54 [CrossOrigin] void blur(); | 54 [CrossOrigin] void blur(); |
| 55 | 55 |
| 56 // other browsing contexts | 56 // other browsing contexts |
| 57 [Replaceable, CallWith=ScriptState, CrossOrigin] readonly attribute Window f
rames; | 57 [Replaceable, CrossOrigin] readonly attribute Window frames; |
| 58 [Replaceable, CrossOrigin] readonly attribute unsigned long length; | 58 [Replaceable, CrossOrigin] readonly attribute unsigned long length; |
| 59 [Unforgeable, CrossOrigin] readonly attribute Window? top; | 59 [Unforgeable, CrossOrigin] readonly attribute Window? top; |
| 60 // FIXME: opener should be of type any. | 60 // FIXME: opener should be of type any. |
| 61 [CrossOrigin, Custom=Setter] attribute Window opener; | 61 [CrossOrigin, Custom=Setter] attribute Window opener; |
| 62 [Replaceable, CrossOrigin] readonly attribute Window? parent; | 62 [Replaceable, CrossOrigin] readonly attribute Window? parent; |
| 63 [CheckSecurity=ReturnValue, Custom=Getter] readonly attribute Element? frame
Element; | 63 [CheckSecurity=ReturnValue, Custom=Getter] readonly attribute Element? frame
Element; |
| 64 // FIXME: open() should have 4 optional arguments with defaults. | 64 // FIXME: open() should have 4 optional arguments with defaults. |
| 65 [Custom] Window? open(DOMString url, DOMString target, optional DOMString fe
atures); | 65 [Custom] Window? open(DOMString url, DOMString target, optional DOMString fe
atures); |
| 66 // FIXME: These getters should not have [NotEnumerable]. | 66 // FIXME: These getters should not have [NotEnumerable]. |
| 67 [NotEnumerable, CrossOrigin] getter Window (unsigned long index); | 67 [NotEnumerable, CrossOrigin] getter Window (unsigned long index); |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 208 // FIXME: make this typedef accurate once enough of https://crbug.com/240176 | 208 // FIXME: make this typedef accurate once enough of https://crbug.com/240176 |
| 209 // is in place. | 209 // is in place. |
| 210 // FIXME: consider putting this typedef in an .idl file containing spec-wide | 210 // FIXME: consider putting this typedef in an .idl file containing spec-wide |
| 211 // utility type definitions. | 211 // utility type definitions. |
| 212 typedef MessagePort Transferable; | 212 typedef MessagePort Transferable; |
| 213 | 213 |
| 214 Window implements GlobalEventHandlers; | 214 Window implements GlobalEventHandlers; |
| 215 Window implements WindowBase64; | 215 Window implements WindowBase64; |
| 216 Window implements WindowEventHandlers; | 216 Window implements WindowEventHandlers; |
| 217 Window implements WindowTimers; | 217 Window implements WindowTimers; |
| OLD | NEW |