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

Unified Diff: third_party/WebKit/Source/modules/fontaccess/FontAccess.idl

Issue 1615133002: Implement API for accessing fonts installed locally on the system. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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
Index: third_party/WebKit/Source/modules/fontaccess/FontAccess.idl
diff --git a/third_party/WebKit/Source/modules/speech/SpeechGrammar.idl b/third_party/WebKit/Source/modules/fontaccess/FontAccess.idl
similarity index 79%
copy from third_party/WebKit/Source/modules/speech/SpeechGrammar.idl
copy to third_party/WebKit/Source/modules/fontaccess/FontAccess.idl
index 1e3a34631d69b1806c1cc60bc52c8f63582b7fcd..fa4c6867ff9002cfdae3c9be5995a7adabb328ff 100644
--- a/third_party/WebKit/Source/modules/speech/SpeechGrammar.idl
+++ b/third_party/WebKit/Source/modules/fontaccess/FontAccess.idl
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2012 Google Inc. All rights reserved.
+ * Copyright (C) 2016 Google Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -24,10 +24,11 @@
*/
[
- Constructor,
+ Exposed=(Window,Worker),
GarbageCollected,
- NoInterfaceObject,
-] interface SpeechGrammar {
- [URL,CallWith=ExecutionContext] attribute DOMString src;
- attribute float weight;
+ RuntimeEnabled=FontAccess,
+ APIExperimentEnabled=FontAccess
+] interface FontAccess {
+ [CallWith=ScriptState] static Promise<sequence<FontDescription>> getFonts();
+ [CallWith=ScriptState] static Promise getFontData(DOMString family, DOMString style);
};

Powered by Google App Engine
This is Rietveld 408576698