Index: css/FontLoader.idl |
diff --git a/workers/AbstractWorker.idl b/css/FontLoader.idl |
similarity index 76% |
copy from workers/AbstractWorker.idl |
copy to css/FontLoader.idl |
index 643fa958e645280730cc3fb1fd7f0643709885fa..3b1f8a24a69d82a3ec11577b5115970fa344b281 100644 |
--- a/workers/AbstractWorker.idl |
+++ b/css/FontLoader.idl |
@@ -1,6 +1,5 @@ |
/* |
- * Copyright (C) 2009 Google Inc. All rights reserved. |
- * Copyright (C) 2011 Apple Inc. All rights reserved. |
+ * Copyright (C) 2013 Google Inc. All rights reserved. |
* |
* Redistribution and use in source and binary forms, with or without |
* modification, are permitted provided that the following conditions are |
@@ -30,14 +29,24 @@ |
*/ |
[ |
- Conditional=WORKERS, |
+ Conditional=FONT_LOAD_EVENTS, |
+ V8EnabledAtRuntime=fontLoadEvents, |
ActiveDOMObject, |
- JSCustomToJSObject, |
- EventTarget |
-] interface AbstractWorker { |
+ EventTarget, |
+ GenerateIsReachable=ImplDocument, |
+] interface FontLoader { |
+ attribute EventListener onloading; |
Anton Muhin
2013/03/22 12:04:27
do we have proper bindings for those automatically
Mads Ager (google)
2013/03/22 13:21:08
I havn't seen anything break because of this and I
|
+ attribute EventListener onloadingdone; |
+ attribute EventListener onloadstart; |
+ attribute EventListener onload; |
attribute EventListener onerror; |
+ boolean checkFont(in DOMString font, in [Optional=DefaultIsNullString] DOMString text); |
+ void loadFont(in Dictionary params); |
+ void notifyWhenFontsReady(in [Callback] VoidCallback callback); |
+ readonly attribute boolean loading; |
+ |
void addEventListener(in DOMString type, |
in EventListener listener, |
in [Optional] boolean useCapture); |
@@ -47,4 +56,3 @@ |
boolean dispatchEvent(in Event evt) |
raises(EventException); |
}; |
- |