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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 // other browsing contexts | 57 // other browsing contexts |
58 [Replaceable, CrossOrigin] readonly attribute Window frames; | 58 [Replaceable, CrossOrigin] readonly attribute Window frames; |
59 [Replaceable, CrossOrigin] readonly attribute unsigned long length; | 59 [Replaceable, CrossOrigin] readonly attribute unsigned long length; |
60 [Unforgeable, CrossOrigin] readonly attribute Window? top; | 60 [Unforgeable, CrossOrigin] readonly attribute Window? top; |
61 // FIXME: opener should be of type any. | 61 // FIXME: opener should be of type any. |
62 [CrossOrigin, Custom=Setter] attribute Window opener; | 62 [CrossOrigin, Custom=Setter] attribute Window opener; |
63 [Replaceable, CrossOrigin] readonly attribute Window? parent; | 63 [Replaceable, CrossOrigin] readonly attribute Window? parent; |
64 [CheckSecurity=ReturnValue, Custom=Getter] readonly attribute Element? frame
Element; | 64 [CheckSecurity=ReturnValue, Custom=Getter] readonly attribute Element? frame
Element; |
65 // FIXME: open() should have 4 optional arguments with defaults. | 65 // FIXME: open() should have 4 optional arguments with defaults. |
66 [Custom] Window? open(DOMString url, DOMString target, optional DOMString fe
atures); | 66 [Custom] Window? open(DOMString url, DOMString target, optional DOMString fe
atures); |
67 // FIXME: These getters should not have [NotEnumerable]. | 67 |
| 68 // indexed properties |
| 69 // https://html.spec.whatwg.org/C/browsers.html#windowproxy-getownproperty |
68 [NotEnumerable, CrossOrigin] getter Window (unsigned long index); | 70 [NotEnumerable, CrossOrigin] getter Window (unsigned long index); |
| 71 // https://html.spec.whatwg.org/C/browsers.html#windowproxy-defineownpropert
y |
| 72 setter void (unsigned long index, any value); |
| 73 |
| 74 // named properties |
69 [Custom, NotEnumerable, CrossOrigin] getter object (DOMString name); | 75 [Custom, NotEnumerable, CrossOrigin] getter object (DOMString name); |
70 | 76 |
71 // the user agent | 77 // the user agent |
72 [LogActivity=GetterOnly] readonly attribute Navigator navigator; | 78 [LogActivity=GetterOnly] readonly attribute Navigator navigator; |
73 [LogActivity=GetterOnly] readonly attribute ApplicationCache applicationCach
e; | 79 [LogActivity=GetterOnly] readonly attribute ApplicationCache applicationCach
e; |
74 | 80 |
75 // user prompts | 81 // user prompts |
76 [Measure, CallWith=ScriptState] void alert(); | 82 [Measure, CallWith=ScriptState] void alert(); |
77 [Measure, CallWith=ScriptState] void alert(DOMString message); | 83 [Measure, CallWith=ScriptState] void alert(DOMString message); |
78 [Measure, CallWith=ScriptState] boolean confirm(optional DOMString message =
""); | 84 [Measure, CallWith=ScriptState] boolean confirm(optional DOMString message =
""); |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
212 // FIXME: make this typedef accurate once enough of https://crbug.com/240176 | 218 // FIXME: make this typedef accurate once enough of https://crbug.com/240176 |
213 // is in place. | 219 // is in place. |
214 // FIXME: consider putting this typedef in an .idl file containing spec-wide | 220 // FIXME: consider putting this typedef in an .idl file containing spec-wide |
215 // utility type definitions. | 221 // utility type definitions. |
216 typedef MessagePort Transferable; | 222 typedef MessagePort Transferable; |
217 | 223 |
218 Window implements GlobalEventHandlers; | 224 Window implements GlobalEventHandlers; |
219 Window implements WindowBase64; | 225 Window implements WindowBase64; |
220 Window implements WindowEventHandlers; | 226 Window implements WindowEventHandlers; |
221 Window implements WindowTimers; | 227 Window implements WindowTimers; |
OLD | NEW |