Rémi Bernon : include: Add Windows.Media.SpeechSynthesis.SpeechSynthesizer runtimeclass.

Alexandre Julliard julliard at winehq.org
Tue Feb 9 15:57:08 CST 2021


Module: wine
Branch: master
Commit: 02edba0f9d27d5130cc6398f2c0d2cb4e09cbfb7
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=02edba0f9d27d5130cc6398f2c0d2cb4e09cbfb7

Author: Rémi Bernon <rbernon at codeweavers.com>
Date:   Tue Feb  9 10:37:22 2021 +0100

include: Add Windows.Media.SpeechSynthesis.SpeechSynthesizer runtimeclass.

As an illustration for the newly supported attributes.

Signed-off-by: Rémi Bernon <rbernon at codeweavers.com>
Signed-off-by: Jacek Caban <jacek at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 include/windows.media.speechsynthesis.idl | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/include/windows.media.speechsynthesis.idl b/include/windows.media.speechsynthesis.idl
index 502261f79c6..87497678f30 100644
--- a/include/windows.media.speechsynthesis.idl
+++ b/include/windows.media.speechsynthesis.idl
@@ -24,10 +24,16 @@ import "inspectable.idl";
 import "windows.foundation.idl";
 
 namespace Windows {
+    namespace Foundation {
+        interface IClosable;
+    }
     namespace Media {
         namespace SpeechSynthesis {
             typedef enum VoiceGender VoiceGender;
             interface IInstalledVoicesStatic;
+            interface IInstalledVoicesStatic2;
+            interface ISpeechSynthesizer;
+            interface ISpeechSynthesizer2;
             interface IVoiceInformation;
             runtimeclass VoiceInformation;
         }
@@ -66,6 +72,20 @@ namespace Windows {
             {
                 [default] interface Windows.Media.SpeechSynthesis.IVoiceInformation;
             }
+
+            [
+                activatable(Windows.Foundation.UniversalApiContract, 1.0),
+                contract(Windows.Foundation.UniversalApiContract, 1.0),
+                marshaling_behavior(agile),
+                static(Windows.Media.SpeechSynthesis.IInstalledVoicesStatic, Windows.Foundation.UniversalApiContract, 1.0),
+                static(Windows.Media.SpeechSynthesis.IInstalledVoicesStatic2, Windows.Foundation.UniversalApiContract, 5.0)
+            ]
+            runtimeclass SpeechSynthesizer
+            {
+                [default] interface Windows.Media.SpeechSynthesis.ISpeechSynthesizer;
+                interface Windows.Foundation.IClosable;
+                [contract(Windows.Foundation.UniversalApiContract, 4.0)] interface Windows.Media.SpeechSynthesis.ISpeechSynthesizer2;
+            }
         }
     }
 }




More information about the wine-cvs mailing list