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

Unified Diff: third_party/WebKit/Source/platform/mediastream/MediaStreamComponent.h

Issue 2501623003: Implement MediaStreamTrack contentHint skeleton. (Closed)
Patch Set: ContentHint -> ContentHintType Created 4 years 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/platform/mediastream/MediaStreamComponent.h
diff --git a/third_party/WebKit/Source/platform/mediastream/MediaStreamComponent.h b/third_party/WebKit/Source/platform/mediastream/MediaStreamComponent.h
index 635bc82eab9a607eed48724db6a4f6af944a7c2e..825f60bf02e8d7766a7ed6eb087c979b37faeef0 100644
--- a/third_party/WebKit/Source/platform/mediastream/MediaStreamComponent.h
+++ b/third_party/WebKit/Source/platform/mediastream/MediaStreamComponent.h
@@ -80,6 +80,8 @@ class PLATFORM_EXPORT MediaStreamComponent final
void setEnabled(bool enabled) { m_enabled = enabled; }
bool muted() const { return m_muted; }
void setMuted(bool muted) { m_muted = muted; }
+ WebMediaStreamTrack::ContentHintType contentHint() { return m_contentHint; }
+ void setContentHint(WebMediaStreamTrack::ContentHintType);
AudioSourceProvider* getAudioSourceProvider() { return &m_sourceProvider; }
void setSourceProvider(WebAudioSourceProvider* provider) {
m_sourceProvider.wrap(provider);
@@ -98,7 +100,8 @@ class PLATFORM_EXPORT MediaStreamComponent final
MediaStreamComponent(const String& id,
MediaStreamSource*,
bool enabled,
- bool muted);
+ bool muted,
+ WebMediaStreamTrack::ContentHintType);
// AudioSourceProviderImpl wraps a WebAudioSourceProvider::provideInput()
// calls into chromium to get a rendered audio stream.
@@ -127,6 +130,7 @@ class PLATFORM_EXPORT MediaStreamComponent final
String m_id;
bool m_enabled;
bool m_muted;
+ WebMediaStreamTrack::ContentHintType m_contentHint;
std::unique_ptr<TrackData> m_trackData;
};

Powered by Google App Engine
This is Rietveld 408576698