diff options
Diffstat (limited to 'chromium/third_party/WebKit/Source/core/frame/WindowTimers.idl')
-rw-r--r-- | chromium/third_party/WebKit/Source/core/frame/WindowTimers.idl | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/chromium/third_party/WebKit/Source/core/frame/WindowTimers.idl b/chromium/third_party/WebKit/Source/core/frame/WindowTimers.idl index 744567d39e1..47f394fc249 100644 --- a/chromium/third_party/WebKit/Source/core/frame/WindowTimers.idl +++ b/chromium/third_party/WebKit/Source/core/frame/WindowTimers.idl @@ -25,13 +25,21 @@ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +// http://www.whatwg.org/specs/web-apps/current-work/multipage/timers.html#windowtimers + [ - NoInterfaceObject, - ImplementedAs=DOMWindowTimers + ImplementedAs=DOMWindowTimers, + LegacyTreatAsPartialInterface, + NoInterfaceObject, // Always used on target of 'implements' ] interface WindowTimers { + // FIXME: currently using [Custom] and |any| because overload algorithm + // can't handle Function/DOMString overload properly + // http://crbug.com/293561 + // FIXME: would be clearer as a union type, like: + // typedef (Function or DOMString) Handler + // Needs spec update and better union support: http://crbug.com/240176 [Custom] long setTimeout(any handler, [Default=Undefined] optional long timeout); void clearTimeout([Default=Undefined] optional long handle); [Custom] long setInterval(any handler, [Default=Undefined] optional long timeout); void clearInterval([Default=Undefined] optional long handle); }; - |