Commit 9a4dbd9a authored by Mohamad Al-Jaf's avatar Mohamad Al-Jaf Committed by Alexandre Julliard

include: Add ISystemMediaTransportControlsDisplayUpdater interface definition.

parent 3cb90b60
...@@ -215,7 +215,7 @@ static HRESULT WINAPI media_control_put_PlaybackStatus( ISystemMediaTransportCon ...@@ -215,7 +215,7 @@ static HRESULT WINAPI media_control_put_PlaybackStatus( ISystemMediaTransportCon
return S_OK; return S_OK;
} }
static HRESULT WINAPI media_control_get_DisplayUpdater( ISystemMediaTransportControls *iface, __x_ABI_CWindows_CMedia_CISystemMediaTransportControlsDisplayUpdater **value ) static HRESULT WINAPI media_control_get_DisplayUpdater( ISystemMediaTransportControls *iface, ISystemMediaTransportControlsDisplayUpdater **value )
{ {
FIXME( "iface %p, value %p stub!\n", iface, value ); FIXME( "iface %p, value %p stub!\n", iface, value );
return E_NOTIMPL; return E_NOTIMPL;
......
...@@ -22,28 +22,40 @@ ...@@ -22,28 +22,40 @@
import "inspectable.idl"; import "inspectable.idl";
import "windows.foundation.idl"; import "windows.foundation.idl";
import "windows.storage.idl";
import "windows.storage.streams.idl";
namespace Windows.Media namespace Windows.Media
{ {
typedef enum AudioProcessing AudioProcessing; typedef enum AudioProcessing AudioProcessing;
typedef enum MediaPlaybackStatus MediaPlaybackStatus; typedef enum MediaPlaybackStatus MediaPlaybackStatus;
typedef enum MediaPlaybackType MediaPlaybackType;
typedef enum SoundLevel SoundLevel; typedef enum SoundLevel SoundLevel;
typedef enum SystemMediaTransportControlsButton SystemMediaTransportControlsButton; typedef enum SystemMediaTransportControlsButton SystemMediaTransportControlsButton;
typedef enum SystemMediaTransportControlsProperty SystemMediaTransportControlsProperty; typedef enum SystemMediaTransportControlsProperty SystemMediaTransportControlsProperty;
interface IImageDisplayProperties;
interface IMediaControl; interface IMediaControl;
interface IMediaMarker; interface IMediaMarker;
interface IMusicDisplayProperties;
interface IMusicDisplayProperties2;
interface IMusicDisplayProperties3;
interface ISystemMediaTransportControls; interface ISystemMediaTransportControls;
interface ISystemMediaTransportControls2; interface ISystemMediaTransportControls2;
interface ISystemMediaTransportControlsButtonPressedEventArgs; interface ISystemMediaTransportControlsButtonPressedEventArgs;
interface ISystemMediaTransportControlsDisplayUpdater; interface ISystemMediaTransportControlsDisplayUpdater;
interface ISystemMediaTransportControlsPropertyChangedEventArgs; interface ISystemMediaTransportControlsPropertyChangedEventArgs;
interface ISystemMediaTransportControlsStatics; interface ISystemMediaTransportControlsStatics;
interface IVideoDisplayProperties;
interface IVideoDisplayProperties2;
runtimeclass ImageDisplayProperties;
runtimeclass MusicDisplayProperties;
runtimeclass SystemMediaTransportControls; runtimeclass SystemMediaTransportControls;
runtimeclass SystemMediaTransportControlsButtonPressedEventArgs; runtimeclass SystemMediaTransportControlsButtonPressedEventArgs;
runtimeclass SystemMediaTransportControlsDisplayUpdater; runtimeclass SystemMediaTransportControlsDisplayUpdater;
runtimeclass SystemMediaTransportControlsPropertyChangedEventArgs; runtimeclass SystemMediaTransportControlsPropertyChangedEventArgs;
runtimeclass VideoDisplayProperties;
declare declare
{ {
...@@ -79,6 +91,17 @@ namespace Windows.Media ...@@ -79,6 +91,17 @@ namespace Windows.Media
[ [
contract(Windows.Foundation.UniversalApiContract, 1.0) contract(Windows.Foundation.UniversalApiContract, 1.0)
] ]
enum MediaPlaybackType
{
Unknown = 0,
Music = 1,
Video = 2,
Image = 3,
};
[
contract(Windows.Foundation.UniversalApiContract, 1.0)
]
enum SoundLevel enum SoundLevel
{ {
Muted = 0, Muted = 0,
...@@ -169,6 +192,30 @@ namespace Windows.Media ...@@ -169,6 +192,30 @@ namespace Windows.Media
[ [
contract(Windows.Foundation.UniversalApiContract, 1.0), contract(Windows.Foundation.UniversalApiContract, 1.0),
exclusiveto(Windows.Media.SystemMediaTransportControlsDisplayUpdater),
uuid(8abbc53e-fa55-4ecf-ad8e-c984e5dd1550)
]
interface ISystemMediaTransportControlsDisplayUpdater : IInspectable
{
[propget] HRESULT Type([out, retval] Windows.Media.MediaPlaybackType *value);
[propput] HRESULT Type([in] Windows.Media.MediaPlaybackType value);
[propget] HRESULT AppMediaId([out, retval] HSTRING *value);
[propput] HRESULT AppMediaId([in] HSTRING value);
[propget] HRESULT Thumbnail([out, retval] Windows.Storage.Streams.RandomAccessStreamReference **value);
[propput] HRESULT Thumbnail([in] Windows.Storage.Streams.RandomAccessStreamReference *value);
[propget] HRESULT MusicProperties([out, retval] Windows.Media.MusicDisplayProperties **value);
[propget] HRESULT VideoProperties([out, retval] Windows.Media.VideoDisplayProperties **value);
[propget] HRESULT ImageProperties([out, retval] Windows.Media.ImageDisplayProperties **value);
HRESULT CopyFromFileAsync(
[in] Windows.Media.MediaPlaybackType type, [in] Windows.Storage.StorageFile *source,
[out, retval] Windows.Foundation.IAsyncOperation<boolean> **operation
);
HRESULT ClearAll();
HRESULT Update();
}
[
contract(Windows.Foundation.UniversalApiContract, 1.0),
exclusiveto(Windows.Media.SystemMediaTransportControlsButtonPressedEventArgs), exclusiveto(Windows.Media.SystemMediaTransportControlsButtonPressedEventArgs),
uuid(b7f47116-a56f-4dc8-9e11-92031f4a87c2) uuid(b7f47116-a56f-4dc8-9e11-92031f4a87c2)
] ]
...@@ -190,6 +237,28 @@ namespace Windows.Media ...@@ -190,6 +237,28 @@ namespace Windows.Media
[ [
contract(Windows.Foundation.UniversalApiContract, 1.0), contract(Windows.Foundation.UniversalApiContract, 1.0),
marshaling_behavior(agile), marshaling_behavior(agile),
threading(both)
]
runtimeclass ImageDisplayProperties
{
[default] interface Windows.Media.IImageDisplayProperties;
}
[
contract(Windows.Foundation.UniversalApiContract, 1.0),
marshaling_behavior(agile),
threading(both)
]
runtimeclass MusicDisplayProperties
{
[default] interface Windows.Media.IMusicDisplayProperties;
[contract(Windows.Foundation.UniversalApiContract, 1.0)] interface Windows.Media.IMusicDisplayProperties2;
[contract(Windows.Foundation.UniversalApiContract, 3.0)] interface Windows.Media.IMusicDisplayProperties3;
}
[
contract(Windows.Foundation.UniversalApiContract, 1.0),
marshaling_behavior(agile),
static(Windows.Media.ISystemMediaTransportControlsStatics, Windows.Foundation.UniversalApiContract, 1.0), static(Windows.Media.ISystemMediaTransportControlsStatics, Windows.Foundation.UniversalApiContract, 1.0),
threading(mta) threading(mta)
] ]
...@@ -226,4 +295,15 @@ namespace Windows.Media ...@@ -226,4 +295,15 @@ namespace Windows.Media
{ {
[default] interface Windows.Media.ISystemMediaTransportControlsPropertyChangedEventArgs; [default] interface Windows.Media.ISystemMediaTransportControlsPropertyChangedEventArgs;
} }
[
contract(Windows.Foundation.UniversalApiContract, 1.0),
marshaling_behavior(agile),
threading(both)
]
runtimeclass VideoDisplayProperties
{
[default] interface Windows.Media.IVideoDisplayProperties;
[contract(Windows.Foundation.UniversalApiContract, 1.0)] interface Windows.Media.IVideoDisplayProperties2;
}
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment