Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(306)

Side by Side Diff: Source/core/frame/Window.idl

Issue 1119683003: Implement requestIdleCallback API (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
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(Frame RequestCallback callback); 84 [MeasureAs=UnprefixedRequestAnimationFrame] long requestAnimationFrame(Frame RequestCallback callback);
85 void cancelAnimationFrame(long handle); 85 void cancelAnimationFrame(long handle);
86 86
87 [RuntimeEnabled=RequestIdleFrame] long requestIdleFrame(IdleRequestCallback callback);
88 [RuntimeEnabled=RequestIdleFrame] void cancelIdleFrame(long handle);
89
87 [DoNotCheckSecurity, Custom, RaisesException] void postMessage(any message, DOMString targetOrigin, optional sequence<Transferable> transfer); 90 [DoNotCheckSecurity, Custom, RaisesException] void postMessage(any message, DOMString targetOrigin, optional sequence<Transferable> transfer);
88 91
89 // HTML obsolete features 92 // HTML obsolete features
90 // https://html.spec.whatwg.org/#Window-partial 93 // https://html.spec.whatwg.org/#Window-partial
91 [MeasureAs=WindowCaptureEvents] void captureEvents(); 94 [MeasureAs=WindowCaptureEvents] void captureEvents();
92 [MeasureAs=WindowReleaseEvents] void releaseEvents(); 95 [MeasureAs=WindowReleaseEvents] void releaseEvents();
93 96
94 // CSS Object Model (CSSOM) 97 // CSS Object Model (CSSOM)
95 // http://dev.w3.org/csswg/cssom/#extensions-to-the-window-interface 98 // http://dev.w3.org/csswg/cssom/#extensions-to-the-window-interface
96 // FIXME: The optional pseudoElt argument should have no default. 99 // FIXME: The optional pseudoElt argument should have no default.
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 // FIXME: make this typedef accurate once enough of http://crbug.com/240176 211 // FIXME: make this typedef accurate once enough of http://crbug.com/240176
209 // is in place. 212 // is in place.
210 // FIXME: consider putting this typedef in an .idl file containing spec-wide 213 // FIXME: consider putting this typedef in an .idl file containing spec-wide
211 // utility type definitions. 214 // utility type definitions.
212 typedef MessagePort Transferable; 215 typedef MessagePort Transferable;
213 216
214 Window implements GlobalEventHandlers; 217 Window implements GlobalEventHandlers;
215 Window implements WindowBase64; 218 Window implements WindowBase64;
216 Window implements WindowEventHandlers; 219 Window implements WindowEventHandlers;
217 Window implements WindowTimers; 220 Window implements WindowTimers;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698