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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 void alert(DOMString message); | 76 void alert(DOMString message); |
77 boolean confirm(optional DOMString message = ""); | 77 boolean confirm(optional DOMString message = ""); |
78 DOMString? prompt(optional DOMString message = "", optional DOMString defaul
tValue = ""); | 78 DOMString? prompt(optional DOMString message = "", optional DOMString defaul
tValue = ""); |
79 void print(); | 79 void print(); |
80 | 80 |
81 // FIXME: requestAnimationFrame should take a FrameRequestCallback: | 81 // FIXME: requestAnimationFrame should take a FrameRequestCallback: |
82 // https://www.w3.org/Bugs/Public/show_bug.cgi?id=28152 | 82 // https://www.w3.org/Bugs/Public/show_bug.cgi?id=28152 |
83 [MeasureAs=UnprefixedRequestAnimationFrame] long requestAnimationFrame(Frame
RequestCallback callback); | 83 [MeasureAs=UnprefixedRequestAnimationFrame] long requestAnimationFrame(Frame
RequestCallback callback); |
84 void cancelAnimationFrame(long handle); | 84 void cancelAnimationFrame(long handle); |
85 | 85 |
| 86 [RuntimeEnabled=RequestIdleCallback] long requestIdleCallback(IdleRequestCal
lback callback, optional double timeout = 0); |
| 87 [RuntimeEnabled=RequestIdleCallback] void cancelIdleCallback(long handle); |
| 88 |
86 [DoNotCheckSecurity, Custom, RaisesException] void postMessage(any message,
DOMString targetOrigin, optional sequence<Transferable> transfer); | 89 [DoNotCheckSecurity, Custom, RaisesException] void postMessage(any message,
DOMString targetOrigin, optional sequence<Transferable> transfer); |
87 | 90 |
88 // HTML obsolete features | 91 // HTML obsolete features |
89 // https://html.spec.whatwg.org/#Window-partial | 92 // https://html.spec.whatwg.org/#Window-partial |
90 [MeasureAs=WindowCaptureEvents] void captureEvents(); | 93 [MeasureAs=WindowCaptureEvents] void captureEvents(); |
91 [MeasureAs=WindowReleaseEvents] void releaseEvents(); | 94 [MeasureAs=WindowReleaseEvents] void releaseEvents(); |
92 | 95 |
93 // CSS Object Model (CSSOM) | 96 // CSS Object Model (CSSOM) |
94 // http://dev.w3.org/csswg/cssom/#extensions-to-the-window-interface | 97 // http://dev.w3.org/csswg/cssom/#extensions-to-the-window-interface |
95 // FIXME: The optional pseudoElt argument should have no default. | 98 // FIXME: The optional pseudoElt argument should have no default. |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
200 // FIXME: make this typedef accurate once enough of http://crbug.com/240176 | 203 // FIXME: make this typedef accurate once enough of http://crbug.com/240176 |
201 // is in place. | 204 // is in place. |
202 // FIXME: consider putting this typedef in an .idl file containing spec-wide | 205 // FIXME: consider putting this typedef in an .idl file containing spec-wide |
203 // utility type definitions. | 206 // utility type definitions. |
204 typedef MessagePort Transferable; | 207 typedef MessagePort Transferable; |
205 | 208 |
206 Window implements GlobalEventHandlers; | 209 Window implements GlobalEventHandlers; |
207 Window implements WindowBase64; | 210 Window implements WindowBase64; |
208 Window implements WindowEventHandlers; | 211 Window implements WindowEventHandlers; |
209 Window implements WindowTimers; | 212 Window implements WindowTimers; |
OLD | NEW |