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

Unified Diff: core/css/FontFace.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/CSSValueList.idl ('k') | core/css/FontFaceSet.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: core/css/FontFace.idl
diff --git a/modules/encoding/TextDecoder.idl b/core/css/FontFace.idl
similarity index 67%
copy from modules/encoding/TextDecoder.idl
copy to core/css/FontFace.idl
index 576d29807a0bc281223f178570a73f271b77c44b..a66872bb63b1d4cee38abd457d56716eb42e2b3a 100644
--- a/modules/encoding/TextDecoder.idl
+++ b/core/css/FontFace.idl
@@ -28,12 +28,30 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+enum FontFaceLoadStatus {
+ "unloaded",
+ "loading",
+ "loaded",
+ "error"
+};
+
[
- EnabledAtRuntime=EncodingAPI,
- GlobalContext=Window&WorkerGlobalScope,
- Constructor([Default=NullString] optional DOMString label, optional Dictionary options),
+ EnabledAtRuntime=FontLoadEvents,
+ Constructor(DOMString family, DOMString source, Dictionary descriptors),
ConstructorRaisesException
-] interface TextDecoder {
- readonly attribute DOMString encoding;
- [RaisesException] DOMString decode(optional ArrayBufferView input, optional Dictionary options);
+] interface FontFace {
+
+ [SetterRaisesException] attribute DOMString family;
+ [SetterRaisesException] attribute DOMString style;
+ [SetterRaisesException] attribute DOMString weight;
+ [SetterRaisesException] attribute DOMString stretch;
+ [SetterRaisesException] attribute DOMString unicodeRange;
+ [SetterRaisesException] attribute DOMString variant;
+ [SetterRaisesException] attribute DOMString featureSettings;
+
+ readonly attribute FontFaceLoadStatus status;
+
+ // FIXME: Implement them
+ // void load();
+ // Promise ready();
};
« no previous file with comments | « core/css/CSSValueList.idl ('k') | core/css/FontFaceSet.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698