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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 [Replaceable, DoNotCheckSecurity] readonly attribute Window parent; | 62 [Replaceable, DoNotCheckSecurity] 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, DoNotCheckSecurity] getter Window (unsigned long index); | 67 [NotEnumerable, DoNotCheckSecurity] getter Window (unsigned long index); |
68 [Custom, NotEnumerable, DoNotCheckSecurity] getter object (DOMString name); | 68 [Custom, NotEnumerable, DoNotCheckSecurity] getter object (DOMString name); |
69 | 69 |
70 // the user agent | 70 // the user agent |
71 [LogActivity=GetterOnly] readonly attribute Navigator navigator; | 71 [LogActivity=GetterOnly] readonly attribute Navigator navigator; |
72 [RuntimeEnabled=ApplicationCache, LogActivity=GetterOnly] readonly attribute
ApplicationCache applicationCache; | 72 [LogActivity=GetterOnly] readonly attribute ApplicationCache applicationCach
e; |
73 | 73 |
74 // user prompts | 74 // user prompts |
75 [Measure, CallWith=ScriptState] void alert(); | 75 [Measure, CallWith=ScriptState] void alert(); |
76 [Measure, CallWith=ScriptState] void alert(DOMString message); | 76 [Measure, CallWith=ScriptState] void alert(DOMString message); |
77 [Measure, CallWith=ScriptState] boolean confirm(optional DOMString message =
""); | 77 [Measure, CallWith=ScriptState] boolean confirm(optional DOMString message =
""); |
78 [Measure, CallWith=ScriptState] DOMString? prompt(optional DOMString message
= "", optional DOMString defaultValue = ""); | 78 [Measure, CallWith=ScriptState] DOMString? prompt(optional DOMString message
= "", optional DOMString defaultValue = ""); |
79 [Measure, CallWith=ScriptState] void print(); | 79 [Measure, CallWith=ScriptState] void print(); |
80 | 80 |
81 [MeasureAs=UnprefixedRequestAnimationFrame] long requestAnimationFrame(Frame
RequestCallback callback); | 81 [MeasureAs=UnprefixedRequestAnimationFrame] long requestAnimationFrame(Frame
RequestCallback callback); |
82 void cancelAnimationFrame(long handle); | 82 void cancelAnimationFrame(long handle); |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
207 // 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 |
208 // is in place. | 208 // is in place. |
209 // 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 |
210 // utility type definitions. | 210 // utility type definitions. |
211 typedef MessagePort Transferable; | 211 typedef MessagePort Transferable; |
212 | 212 |
213 Window implements GlobalEventHandlers; | 213 Window implements GlobalEventHandlers; |
214 Window implements WindowBase64; | 214 Window implements WindowBase64; |
215 Window implements WindowEventHandlers; | 215 Window implements WindowEventHandlers; |
216 Window implements WindowTimers; | 216 Window implements WindowTimers; |
OLD | NEW |