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

Side by Side Diff: third_party/WebKit/Source/platform/exported/WebMediaStreamTrack.cpp

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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 bool WebMediaStreamTrack::isEnabled() const { 84 bool WebMediaStreamTrack::isEnabled() const {
85 ASSERT(!m_private.isNull()); 85 ASSERT(!m_private.isNull());
86 return m_private->enabled(); 86 return m_private->enabled();
87 } 87 }
88 88
89 bool WebMediaStreamTrack::isMuted() const { 89 bool WebMediaStreamTrack::isMuted() const {
90 ASSERT(!m_private.isNull()); 90 ASSERT(!m_private.isNull());
91 return m_private->muted(); 91 return m_private->muted();
92 } 92 }
93 93
94 WebMediaStreamTrack::ContentHintType WebMediaStreamTrack::contentHint() const {
95 DCHECK(!m_private.isNull());
96 return m_private->contentHint();
97 }
98
94 WebString WebMediaStreamTrack::id() const { 99 WebString WebMediaStreamTrack::id() const {
95 ASSERT(!m_private.isNull()); 100 ASSERT(!m_private.isNull());
96 return m_private->id(); 101 return m_private->id();
97 } 102 }
98 103
99 WebMediaStreamSource WebMediaStreamTrack::source() const { 104 WebMediaStreamSource WebMediaStreamTrack::source() const {
100 ASSERT(!m_private.isNull()); 105 ASSERT(!m_private.isNull());
101 return WebMediaStreamSource(m_private->source()); 106 return WebMediaStreamSource(m_private->source());
102 } 107 }
103 108
(...skipping 14 matching lines...) Expand all
118 void WebMediaStreamTrack::setSourceProvider(WebAudioSourceProvider* provider) { 123 void WebMediaStreamTrack::setSourceProvider(WebAudioSourceProvider* provider) {
119 ASSERT(!m_private.isNull()); 124 ASSERT(!m_private.isNull());
120 m_private->setSourceProvider(provider); 125 m_private->setSourceProvider(provider);
121 } 126 }
122 127
123 void WebMediaStreamTrack::assign(const WebMediaStreamTrack& other) { 128 void WebMediaStreamTrack::assign(const WebMediaStreamTrack& other) {
124 m_private = other.m_private; 129 m_private = other.m_private;
125 } 130 }
126 131
127 } // namespace blink 132 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698