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); |
}; |