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

Unified Diff: core/css/FontFaceSet.idl

Issue 37053003: Roll IDL to multivm@1467 (Closed) Base URL: https://dart.googlecode.com/svn/third_party/WebCore
Patch Set: Created 7 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « core/css/FontFace.idl ('k') | core/css/FontLoader.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: core/css/FontFaceSet.idl
diff --git a/core/css/FontLoader.idl b/core/css/FontFaceSet.idl
similarity index 73%
rename from core/css/FontLoader.idl
rename to core/css/FontFaceSet.idl
index 06ce8c0bcfd3c4259940702e593e51ada70c1f75..9fe5d56031e76b24097841df09f026588a4298d3 100644
--- a/core/css/FontLoader.idl
+++ b/core/css/FontFaceSet.idl
@@ -28,21 +28,23 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+enum FontFaceSetLoadStatus { "loading", "loaded" };
+
[
NoInterfaceObject,
- EnabledAtRuntime=fontLoadEvents,
+ EnabledAtRuntime=FontLoadEvents,
ActiveDOMObject,
GenerateIsReachable=document
-] interface FontLoader : EventTarget {
+] interface FontFaceSet : EventTarget {
attribute EventHandler onloading;
attribute EventHandler onloadingdone;
- attribute EventHandler onloadstart;
- attribute EventHandler onload;
- attribute EventHandler onerror;
+ attribute EventHandler onloadingerror;
+
+ [RaisesException] sequence<FontFace> match(DOMString font, [Default=NullString] optional DOMString text);
+ [RaisesException] boolean check(DOMString font, [Default=NullString] optional DOMString text);
+ [EnabledAtRuntime=Promise, RaisesException] Promise load(DOMString font, [Default=NullString] optional DOMString text);
+ [EnabledAtRuntime=Promise] Promise ready();
- boolean checkFont(DOMString font, [Default=NullString] optional DOMString text);
- void loadFont(Dictionary params);
- void notifyWhenFontsReady(VoidCallback callback);
- readonly attribute boolean loading;
+ readonly attribute FontFaceSetLoadStatus status;
};
« no previous file with comments | « core/css/FontFace.idl ('k') | core/css/FontLoader.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698