| 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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 | 74 |
| 75 // user prompts | 75 // user prompts |
| 76 void alert(); | 76 void alert(); |
| 77 void alert(DOMString message); | 77 void alert(DOMString message); |
| 78 boolean confirm(optional DOMString message = ""); | 78 boolean confirm(optional DOMString message = ""); |
| 79 DOMString? prompt(optional DOMString message = "", optional DOMString defaul
tValue = ""); | 79 DOMString? prompt(optional DOMString message = "", optional DOMString defaul
tValue = ""); |
| 80 void print(); | 80 void print(); |
| 81 | 81 |
| 82 // FIXME: requestAnimationFrame should take a FrameRequestCallback: | 82 // FIXME: requestAnimationFrame should take a FrameRequestCallback: |
| 83 // https://www.w3.org/Bugs/Public/show_bug.cgi?id=28152 | 83 // https://www.w3.org/Bugs/Public/show_bug.cgi?id=28152 |
| 84 [MeasureAs=UnprefixedRequestAnimationFrame] long requestAnimationFrame(Reque
stAnimationFrameCallback callback); | 84 [MeasureAs=UnprefixedRequestAnimationFrame] long requestAnimationFrame(Frame
RequestCallback callback); |
| 85 void cancelAnimationFrame(long handle); | 85 void cancelAnimationFrame(long handle); |
| 86 | 86 |
| 87 [DoNotCheckSecurity, Custom, RaisesException] void postMessage(any message,
DOMString targetOrigin, optional sequence<Transferable> transfer); | 87 [DoNotCheckSecurity, Custom, RaisesException] void postMessage(any message,
DOMString targetOrigin, optional sequence<Transferable> transfer); |
| 88 | 88 |
| 89 // HTML obsolete features | 89 // HTML obsolete features |
| 90 // https://html.spec.whatwg.org/#Window-partial | 90 // https://html.spec.whatwg.org/#Window-partial |
| 91 [MeasureAs=WindowCaptureEvents] void captureEvents(); | 91 [MeasureAs=WindowCaptureEvents] void captureEvents(); |
| 92 [MeasureAs=WindowReleaseEvents] void releaseEvents(); | 92 [MeasureAs=WindowReleaseEvents] void releaseEvents(); |
| 93 | 93 |
| 94 // CSS Object Model (CSSOM) | 94 // CSS Object Model (CSSOM) |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 [MeasureAs=WindowScreenTop, Replaceable] readonly attribute long screenTop; | 159 [MeasureAs=WindowScreenTop, Replaceable] readonly attribute long screenTop; |
| 160 [MeasureAs=WindowDefaultStatus] attribute DOMString defaultStatus; | 160 [MeasureAs=WindowDefaultStatus] attribute DOMString defaultStatus; |
| 161 [MeasureAs=WindowDefaultstatus, ImplementedAs=defaultStatus] attribute DOMSt
ring defaultstatus; | 161 [MeasureAs=WindowDefaultstatus, ImplementedAs=defaultStatus] attribute DOMSt
ring defaultstatus; |
| 162 [MeasureAs=StyleMedia] readonly attribute StyleMedia styleMedia; | 162 [MeasureAs=StyleMedia] readonly attribute StyleMedia styleMedia; |
| 163 [DeprecateAs=GetMatchedCSSRules] CSSRuleList getMatchedCSSRules([Default=Und
efined] optional Element element, | 163 [DeprecateAs=GetMatchedCSSRules] CSSRuleList getMatchedCSSRules([Default=Und
efined] optional Element element, |
| 164 [TreatUndefi
nedAs=NullString, Default=Undefined] optional DOMString? pseudoElement); | 164 [TreatUndefi
nedAs=NullString, Default=Undefined] optional DOMString? pseudoElement); |
| 165 // This is the interface orientation in degrees. Some examples are: | 165 // This is the interface orientation in degrees. Some examples are: |
| 166 // 0 is straight up; -90 is when the device is rotated 90 clockwise; | 166 // 0 is straight up; -90 is when the device is rotated 90 clockwise; |
| 167 // 90 is when rotated counter clockwise. | 167 // 90 is when rotated counter clockwise. |
| 168 [MeasureAs=WindowOrientation, RuntimeEnabled=OrientationEvent] readonly attr
ibute long orientation; | 168 [MeasureAs=WindowOrientation, RuntimeEnabled=OrientationEvent] readonly attr
ibute long orientation; |
| 169 [DeprecateAs=PrefixedRequestAnimationFrame] long webkitRequestAnimationFrame
(RequestAnimationFrameCallback callback); | 169 [DeprecateAs=PrefixedRequestAnimationFrame] long webkitRequestAnimationFrame
(FrameRequestCallback callback); |
| 170 [DeprecateAs=PrefixedCancelAnimationFrame, ImplementedAs=cancelAnimationFram
e] void webkitCancelAnimationFrame(long id); | 170 [DeprecateAs=PrefixedCancelAnimationFrame, ImplementedAs=cancelAnimationFram
e] void webkitCancelAnimationFrame(long id); |
| 171 [DeprecateAs=PrefixedCancelRequestAnimationFrame, ImplementedAs=cancelAnimat
ionFrame] void webkitCancelRequestAnimationFrame(long id); | 171 [DeprecateAs=PrefixedCancelRequestAnimationFrame, ImplementedAs=cancelAnimat
ionFrame] void webkitCancelRequestAnimationFrame(long id); |
| 172 [MeasureAs=PrefixedTransitionEventConstructor] attribute TransitionEventCons
tructor WebKitTransitionEvent; | 172 [MeasureAs=PrefixedTransitionEventConstructor] attribute TransitionEventCons
tructor WebKitTransitionEvent; |
| 173 [Measure] attribute AnimationEventConstructor WebKitAnimationEvent; | 173 [Measure] attribute AnimationEventConstructor WebKitAnimationEvent; |
| 174 [DeprecateAs=PrefixedWindowURL] attribute URLConstructor webkitURL; | 174 [DeprecateAs=PrefixedWindowURL] attribute URLConstructor webkitURL; |
| 175 [MeasureAs=PrefixedMutationObserverConstructor] attribute MutationObserverCo
nstructor WebKitMutationObserver; | 175 [MeasureAs=PrefixedMutationObserverConstructor] attribute MutationObserverCo
nstructor WebKitMutationObserver; |
| 176 | 176 |
| 177 // Event handler attributes | 177 // Event handler attributes |
| 178 [RuntimeEnabled=CSSAnimationUnprefixed] attribute EventHandler onanimationen
d; | 178 [RuntimeEnabled=CSSAnimationUnprefixed] attribute EventHandler onanimationen
d; |
| 179 [RuntimeEnabled=CSSAnimationUnprefixed] attribute EventHandler onanimationit
eration; | 179 [RuntimeEnabled=CSSAnimationUnprefixed] attribute EventHandler onanimationit
eration; |
| (...skipping 27 matching lines...) Expand all 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 |