Latest update for winrt

PiperOrigin-RevId: 452591835
This commit is contained in:
jfcarroll
2022-06-02 12:05:19 -07:00
committed by Copybara-Service
parent 11558b453c
commit 28da839987
1366 changed files with 69568 additions and 70576 deletions
@@ -1,4 +1,4 @@
// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.210930.14
// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.220531.1
#pragma once
#ifndef WINRT_Windows_Media_Control_0_H
@@ -6,18 +6,11 @@
WINRT_EXPORT namespace winrt::Windows::Foundation
{
struct EventRegistrationToken;
template <typename TResult> struct __declspec(empty_bases) IAsyncOperation;
template <typename T> struct __declspec(empty_bases) IReference;
template <typename TSender, typename TResult> struct __declspec(empty_bases) TypedEventHandler;
}
WINRT_EXPORT namespace winrt::Windows::Foundation::Collections
{
template <typename T> struct __declspec(empty_bases) IVectorView;
}
WINRT_EXPORT namespace winrt::Windows::Media
{
enum class MediaPlaybackAutoRepeatMode : int32_t;
enum class MediaPlaybackType : int32_t;
}
WINRT_EXPORT namespace winrt::Windows::Storage::Streams
{
@@ -283,37 +276,37 @@ namespace winrt::impl
template <typename D>
struct consume_Windows_Media_Control_IGlobalSystemMediaTransportControlsSession
{
[[nodiscard]] WINRT_IMPL_AUTO(hstring) SourceAppUserModelId() const;
WINRT_IMPL_AUTO(winrt::Windows::Foundation::IAsyncOperation<winrt::Windows::Media::Control::GlobalSystemMediaTransportControlsSessionMediaProperties>) TryGetMediaPropertiesAsync() const;
WINRT_IMPL_AUTO(winrt::Windows::Media::Control::GlobalSystemMediaTransportControlsSessionTimelineProperties) GetTimelineProperties() const;
WINRT_IMPL_AUTO(winrt::Windows::Media::Control::GlobalSystemMediaTransportControlsSessionPlaybackInfo) GetPlaybackInfo() const;
WINRT_IMPL_AUTO(winrt::Windows::Foundation::IAsyncOperation<bool>) TryPlayAsync() const;
WINRT_IMPL_AUTO(winrt::Windows::Foundation::IAsyncOperation<bool>) TryPauseAsync() const;
WINRT_IMPL_AUTO(winrt::Windows::Foundation::IAsyncOperation<bool>) TryStopAsync() const;
WINRT_IMPL_AUTO(winrt::Windows::Foundation::IAsyncOperation<bool>) TryRecordAsync() const;
WINRT_IMPL_AUTO(winrt::Windows::Foundation::IAsyncOperation<bool>) TryFastForwardAsync() const;
WINRT_IMPL_AUTO(winrt::Windows::Foundation::IAsyncOperation<bool>) TryRewindAsync() const;
WINRT_IMPL_AUTO(winrt::Windows::Foundation::IAsyncOperation<bool>) TrySkipNextAsync() const;
WINRT_IMPL_AUTO(winrt::Windows::Foundation::IAsyncOperation<bool>) TrySkipPreviousAsync() const;
WINRT_IMPL_AUTO(winrt::Windows::Foundation::IAsyncOperation<bool>) TryChangeChannelUpAsync() const;
WINRT_IMPL_AUTO(winrt::Windows::Foundation::IAsyncOperation<bool>) TryChangeChannelDownAsync() const;
WINRT_IMPL_AUTO(winrt::Windows::Foundation::IAsyncOperation<bool>) TryTogglePlayPauseAsync() const;
WINRT_IMPL_AUTO(winrt::Windows::Foundation::IAsyncOperation<bool>) TryChangeAutoRepeatModeAsync(winrt::Windows::Media::MediaPlaybackAutoRepeatMode const& requestedAutoRepeatMode) const;
WINRT_IMPL_AUTO(winrt::Windows::Foundation::IAsyncOperation<bool>) TryChangePlaybackRateAsync(double requestedPlaybackRate) const;
WINRT_IMPL_AUTO(winrt::Windows::Foundation::IAsyncOperation<bool>) TryChangeShuffleActiveAsync(bool requestedShuffleState) const;
WINRT_IMPL_AUTO(winrt::Windows::Foundation::IAsyncOperation<bool>) TryChangePlaybackPositionAsync(int64_t requestedPlaybackPosition) const;
WINRT_IMPL_AUTO(winrt::event_token) TimelinePropertiesChanged(winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::Media::Control::GlobalSystemMediaTransportControlsSession, winrt::Windows::Media::Control::TimelinePropertiesChangedEventArgs> const& handler) const;
[[nodiscard]] auto SourceAppUserModelId() const;
auto TryGetMediaPropertiesAsync() const;
auto GetTimelineProperties() const;
auto GetPlaybackInfo() const;
auto TryPlayAsync() const;
auto TryPauseAsync() const;
auto TryStopAsync() const;
auto TryRecordAsync() const;
auto TryFastForwardAsync() const;
auto TryRewindAsync() const;
auto TrySkipNextAsync() const;
auto TrySkipPreviousAsync() const;
auto TryChangeChannelUpAsync() const;
auto TryChangeChannelDownAsync() const;
auto TryTogglePlayPauseAsync() const;
auto TryChangeAutoRepeatModeAsync(winrt::Windows::Media::MediaPlaybackAutoRepeatMode const& requestedAutoRepeatMode) const;
auto TryChangePlaybackRateAsync(double requestedPlaybackRate) const;
auto TryChangeShuffleActiveAsync(bool requestedShuffleState) const;
auto TryChangePlaybackPositionAsync(int64_t requestedPlaybackPosition) const;
auto TimelinePropertiesChanged(winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::Media::Control::GlobalSystemMediaTransportControlsSession, winrt::Windows::Media::Control::TimelinePropertiesChangedEventArgs> const& handler) const;
using TimelinePropertiesChanged_revoker = impl::event_revoker<winrt::Windows::Media::Control::IGlobalSystemMediaTransportControlsSession, &impl::abi_t<winrt::Windows::Media::Control::IGlobalSystemMediaTransportControlsSession>::remove_TimelinePropertiesChanged>;
[[nodiscard]] TimelinePropertiesChanged_revoker TimelinePropertiesChanged(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::Media::Control::GlobalSystemMediaTransportControlsSession, winrt::Windows::Media::Control::TimelinePropertiesChangedEventArgs> const& handler) const;
WINRT_IMPL_AUTO(void) TimelinePropertiesChanged(winrt::event_token const& token) const noexcept;
WINRT_IMPL_AUTO(winrt::event_token) PlaybackInfoChanged(winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::Media::Control::GlobalSystemMediaTransportControlsSession, winrt::Windows::Media::Control::PlaybackInfoChangedEventArgs> const& handler) const;
[[nodiscard]] auto TimelinePropertiesChanged(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::Media::Control::GlobalSystemMediaTransportControlsSession, winrt::Windows::Media::Control::TimelinePropertiesChangedEventArgs> const& handler) const;
auto TimelinePropertiesChanged(winrt::event_token const& token) const noexcept;
auto PlaybackInfoChanged(winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::Media::Control::GlobalSystemMediaTransportControlsSession, winrt::Windows::Media::Control::PlaybackInfoChangedEventArgs> const& handler) const;
using PlaybackInfoChanged_revoker = impl::event_revoker<winrt::Windows::Media::Control::IGlobalSystemMediaTransportControlsSession, &impl::abi_t<winrt::Windows::Media::Control::IGlobalSystemMediaTransportControlsSession>::remove_PlaybackInfoChanged>;
[[nodiscard]] PlaybackInfoChanged_revoker PlaybackInfoChanged(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::Media::Control::GlobalSystemMediaTransportControlsSession, winrt::Windows::Media::Control::PlaybackInfoChangedEventArgs> const& handler) const;
WINRT_IMPL_AUTO(void) PlaybackInfoChanged(winrt::event_token const& token) const noexcept;
WINRT_IMPL_AUTO(winrt::event_token) MediaPropertiesChanged(winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::Media::Control::GlobalSystemMediaTransportControlsSession, winrt::Windows::Media::Control::MediaPropertiesChangedEventArgs> const& handler) const;
[[nodiscard]] auto PlaybackInfoChanged(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::Media::Control::GlobalSystemMediaTransportControlsSession, winrt::Windows::Media::Control::PlaybackInfoChangedEventArgs> const& handler) const;
auto PlaybackInfoChanged(winrt::event_token const& token) const noexcept;
auto MediaPropertiesChanged(winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::Media::Control::GlobalSystemMediaTransportControlsSession, winrt::Windows::Media::Control::MediaPropertiesChangedEventArgs> const& handler) const;
using MediaPropertiesChanged_revoker = impl::event_revoker<winrt::Windows::Media::Control::IGlobalSystemMediaTransportControlsSession, &impl::abi_t<winrt::Windows::Media::Control::IGlobalSystemMediaTransportControlsSession>::remove_MediaPropertiesChanged>;
[[nodiscard]] MediaPropertiesChanged_revoker MediaPropertiesChanged(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::Media::Control::GlobalSystemMediaTransportControlsSession, winrt::Windows::Media::Control::MediaPropertiesChangedEventArgs> const& handler) const;
WINRT_IMPL_AUTO(void) MediaPropertiesChanged(winrt::event_token const& token) const noexcept;
[[nodiscard]] auto MediaPropertiesChanged(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::Media::Control::GlobalSystemMediaTransportControlsSession, winrt::Windows::Media::Control::MediaPropertiesChangedEventArgs> const& handler) const;
auto MediaPropertiesChanged(winrt::event_token const& token) const noexcept;
};
template <> struct consume<winrt::Windows::Media::Control::IGlobalSystemMediaTransportControlsSession>
{
@@ -322,16 +315,16 @@ namespace winrt::impl
template <typename D>
struct consume_Windows_Media_Control_IGlobalSystemMediaTransportControlsSessionManager
{
WINRT_IMPL_AUTO(winrt::Windows::Media::Control::GlobalSystemMediaTransportControlsSession) GetCurrentSession() const;
WINRT_IMPL_AUTO(winrt::Windows::Foundation::Collections::IVectorView<winrt::Windows::Media::Control::GlobalSystemMediaTransportControlsSession>) GetSessions() const;
WINRT_IMPL_AUTO(winrt::event_token) CurrentSessionChanged(winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::Media::Control::GlobalSystemMediaTransportControlsSessionManager, winrt::Windows::Media::Control::CurrentSessionChangedEventArgs> const& handler) const;
auto GetCurrentSession() const;
auto GetSessions() const;
auto CurrentSessionChanged(winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::Media::Control::GlobalSystemMediaTransportControlsSessionManager, winrt::Windows::Media::Control::CurrentSessionChangedEventArgs> const& handler) const;
using CurrentSessionChanged_revoker = impl::event_revoker<winrt::Windows::Media::Control::IGlobalSystemMediaTransportControlsSessionManager, &impl::abi_t<winrt::Windows::Media::Control::IGlobalSystemMediaTransportControlsSessionManager>::remove_CurrentSessionChanged>;
[[nodiscard]] CurrentSessionChanged_revoker CurrentSessionChanged(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::Media::Control::GlobalSystemMediaTransportControlsSessionManager, winrt::Windows::Media::Control::CurrentSessionChangedEventArgs> const& handler) const;
WINRT_IMPL_AUTO(void) CurrentSessionChanged(winrt::event_token const& token) const noexcept;
WINRT_IMPL_AUTO(winrt::event_token) SessionsChanged(winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::Media::Control::GlobalSystemMediaTransportControlsSessionManager, winrt::Windows::Media::Control::SessionsChangedEventArgs> const& handler) const;
[[nodiscard]] auto CurrentSessionChanged(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::Media::Control::GlobalSystemMediaTransportControlsSessionManager, winrt::Windows::Media::Control::CurrentSessionChangedEventArgs> const& handler) const;
auto CurrentSessionChanged(winrt::event_token const& token) const noexcept;
auto SessionsChanged(winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::Media::Control::GlobalSystemMediaTransportControlsSessionManager, winrt::Windows::Media::Control::SessionsChangedEventArgs> const& handler) const;
using SessionsChanged_revoker = impl::event_revoker<winrt::Windows::Media::Control::IGlobalSystemMediaTransportControlsSessionManager, &impl::abi_t<winrt::Windows::Media::Control::IGlobalSystemMediaTransportControlsSessionManager>::remove_SessionsChanged>;
[[nodiscard]] SessionsChanged_revoker SessionsChanged(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::Media::Control::GlobalSystemMediaTransportControlsSessionManager, winrt::Windows::Media::Control::SessionsChangedEventArgs> const& handler) const;
WINRT_IMPL_AUTO(void) SessionsChanged(winrt::event_token const& token) const noexcept;
[[nodiscard]] auto SessionsChanged(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::Media::Control::GlobalSystemMediaTransportControlsSessionManager, winrt::Windows::Media::Control::SessionsChangedEventArgs> const& handler) const;
auto SessionsChanged(winrt::event_token const& token) const noexcept;
};
template <> struct consume<winrt::Windows::Media::Control::IGlobalSystemMediaTransportControlsSessionManager>
{
@@ -340,7 +333,7 @@ namespace winrt::impl
template <typename D>
struct consume_Windows_Media_Control_IGlobalSystemMediaTransportControlsSessionManagerStatics
{
WINRT_IMPL_AUTO(winrt::Windows::Foundation::IAsyncOperation<winrt::Windows::Media::Control::GlobalSystemMediaTransportControlsSessionManager>) RequestAsync() const;
auto RequestAsync() const;
};
template <> struct consume<winrt::Windows::Media::Control::IGlobalSystemMediaTransportControlsSessionManagerStatics>
{
@@ -349,16 +342,16 @@ namespace winrt::impl
template <typename D>
struct consume_Windows_Media_Control_IGlobalSystemMediaTransportControlsSessionMediaProperties
{
[[nodiscard]] WINRT_IMPL_AUTO(hstring) Title() const;
[[nodiscard]] WINRT_IMPL_AUTO(hstring) Subtitle() const;
[[nodiscard]] WINRT_IMPL_AUTO(hstring) AlbumArtist() const;
[[nodiscard]] WINRT_IMPL_AUTO(hstring) Artist() const;
[[nodiscard]] WINRT_IMPL_AUTO(hstring) AlbumTitle() const;
[[nodiscard]] WINRT_IMPL_AUTO(int32_t) TrackNumber() const;
[[nodiscard]] WINRT_IMPL_AUTO(winrt::Windows::Foundation::Collections::IVectorView<hstring>) Genres() const;
[[nodiscard]] WINRT_IMPL_AUTO(int32_t) AlbumTrackCount() const;
[[nodiscard]] WINRT_IMPL_AUTO(winrt::Windows::Foundation::IReference<winrt::Windows::Media::MediaPlaybackType>) PlaybackType() const;
[[nodiscard]] WINRT_IMPL_AUTO(winrt::Windows::Storage::Streams::IRandomAccessStreamReference) Thumbnail() const;
[[nodiscard]] auto Title() const;
[[nodiscard]] auto Subtitle() const;
[[nodiscard]] auto AlbumArtist() const;
[[nodiscard]] auto Artist() const;
[[nodiscard]] auto AlbumTitle() const;
[[nodiscard]] auto TrackNumber() const;
[[nodiscard]] auto Genres() const;
[[nodiscard]] auto AlbumTrackCount() const;
[[nodiscard]] auto PlaybackType() const;
[[nodiscard]] auto Thumbnail() const;
};
template <> struct consume<winrt::Windows::Media::Control::IGlobalSystemMediaTransportControlsSessionMediaProperties>
{
@@ -367,21 +360,21 @@ namespace winrt::impl
template <typename D>
struct consume_Windows_Media_Control_IGlobalSystemMediaTransportControlsSessionPlaybackControls
{
[[nodiscard]] WINRT_IMPL_AUTO(bool) IsPlayEnabled() const;
[[nodiscard]] WINRT_IMPL_AUTO(bool) IsPauseEnabled() const;
[[nodiscard]] WINRT_IMPL_AUTO(bool) IsStopEnabled() const;
[[nodiscard]] WINRT_IMPL_AUTO(bool) IsRecordEnabled() const;
[[nodiscard]] WINRT_IMPL_AUTO(bool) IsFastForwardEnabled() const;
[[nodiscard]] WINRT_IMPL_AUTO(bool) IsRewindEnabled() const;
[[nodiscard]] WINRT_IMPL_AUTO(bool) IsNextEnabled() const;
[[nodiscard]] WINRT_IMPL_AUTO(bool) IsPreviousEnabled() const;
[[nodiscard]] WINRT_IMPL_AUTO(bool) IsChannelUpEnabled() const;
[[nodiscard]] WINRT_IMPL_AUTO(bool) IsChannelDownEnabled() const;
[[nodiscard]] WINRT_IMPL_AUTO(bool) IsPlayPauseToggleEnabled() const;
[[nodiscard]] WINRT_IMPL_AUTO(bool) IsShuffleEnabled() const;
[[nodiscard]] WINRT_IMPL_AUTO(bool) IsRepeatEnabled() const;
[[nodiscard]] WINRT_IMPL_AUTO(bool) IsPlaybackRateEnabled() const;
[[nodiscard]] WINRT_IMPL_AUTO(bool) IsPlaybackPositionEnabled() const;
[[nodiscard]] auto IsPlayEnabled() const;
[[nodiscard]] auto IsPauseEnabled() const;
[[nodiscard]] auto IsStopEnabled() const;
[[nodiscard]] auto IsRecordEnabled() const;
[[nodiscard]] auto IsFastForwardEnabled() const;
[[nodiscard]] auto IsRewindEnabled() const;
[[nodiscard]] auto IsNextEnabled() const;
[[nodiscard]] auto IsPreviousEnabled() const;
[[nodiscard]] auto IsChannelUpEnabled() const;
[[nodiscard]] auto IsChannelDownEnabled() const;
[[nodiscard]] auto IsPlayPauseToggleEnabled() const;
[[nodiscard]] auto IsShuffleEnabled() const;
[[nodiscard]] auto IsRepeatEnabled() const;
[[nodiscard]] auto IsPlaybackRateEnabled() const;
[[nodiscard]] auto IsPlaybackPositionEnabled() const;
};
template <> struct consume<winrt::Windows::Media::Control::IGlobalSystemMediaTransportControlsSessionPlaybackControls>
{
@@ -390,12 +383,12 @@ namespace winrt::impl
template <typename D>
struct consume_Windows_Media_Control_IGlobalSystemMediaTransportControlsSessionPlaybackInfo
{
[[nodiscard]] WINRT_IMPL_AUTO(winrt::Windows::Media::Control::GlobalSystemMediaTransportControlsSessionPlaybackControls) Controls() const;
[[nodiscard]] WINRT_IMPL_AUTO(winrt::Windows::Media::Control::GlobalSystemMediaTransportControlsSessionPlaybackStatus) PlaybackStatus() const;
[[nodiscard]] WINRT_IMPL_AUTO(winrt::Windows::Foundation::IReference<winrt::Windows::Media::MediaPlaybackType>) PlaybackType() const;
[[nodiscard]] WINRT_IMPL_AUTO(winrt::Windows::Foundation::IReference<winrt::Windows::Media::MediaPlaybackAutoRepeatMode>) AutoRepeatMode() const;
[[nodiscard]] WINRT_IMPL_AUTO(winrt::Windows::Foundation::IReference<double>) PlaybackRate() const;
[[nodiscard]] WINRT_IMPL_AUTO(winrt::Windows::Foundation::IReference<bool>) IsShuffleActive() const;
[[nodiscard]] auto Controls() const;
[[nodiscard]] auto PlaybackStatus() const;
[[nodiscard]] auto PlaybackType() const;
[[nodiscard]] auto AutoRepeatMode() const;
[[nodiscard]] auto PlaybackRate() const;
[[nodiscard]] auto IsShuffleActive() const;
};
template <> struct consume<winrt::Windows::Media::Control::IGlobalSystemMediaTransportControlsSessionPlaybackInfo>
{
@@ -404,12 +397,12 @@ namespace winrt::impl
template <typename D>
struct consume_Windows_Media_Control_IGlobalSystemMediaTransportControlsSessionTimelineProperties
{
[[nodiscard]] WINRT_IMPL_AUTO(winrt::Windows::Foundation::TimeSpan) StartTime() const;
[[nodiscard]] WINRT_IMPL_AUTO(winrt::Windows::Foundation::TimeSpan) EndTime() const;
[[nodiscard]] WINRT_IMPL_AUTO(winrt::Windows::Foundation::TimeSpan) MinSeekTime() const;
[[nodiscard]] WINRT_IMPL_AUTO(winrt::Windows::Foundation::TimeSpan) MaxSeekTime() const;
[[nodiscard]] WINRT_IMPL_AUTO(winrt::Windows::Foundation::TimeSpan) Position() const;
[[nodiscard]] WINRT_IMPL_AUTO(winrt::Windows::Foundation::DateTime) LastUpdatedTime() const;
[[nodiscard]] auto StartTime() const;
[[nodiscard]] auto EndTime() const;
[[nodiscard]] auto MinSeekTime() const;
[[nodiscard]] auto MaxSeekTime() const;
[[nodiscard]] auto Position() const;
[[nodiscard]] auto LastUpdatedTime() const;
};
template <> struct consume<winrt::Windows::Media::Control::IGlobalSystemMediaTransportControlsSessionTimelineProperties>
{