OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "content/renderer/media/webmediaplayer_ms.h" | 5 #include "content/renderer/media/webmediaplayer_ms.h" |
6 | 6 |
7 #include <limits> | 7 #include <limits> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 | 157 |
158 if (delegate_.get()) | 158 if (delegate_.get()) |
159 delegate_->DidPause(this); | 159 delegate_->DidPause(this); |
160 } | 160 } |
161 | 161 |
162 paused_ = true; | 162 paused_ = true; |
163 | 163 |
164 media_log_->AddEvent(media_log_->CreateEvent(media::MediaLogEvent::PAUSE)); | 164 media_log_->AddEvent(media_log_->CreateEvent(media::MediaLogEvent::PAUSE)); |
165 } | 165 } |
166 | 166 |
167 bool WebMediaPlayerMS::supportsFullscreen() const { | |
168 DCHECK(thread_checker_.CalledOnValidThread()); | |
169 return true; | |
170 } | |
171 | |
172 bool WebMediaPlayerMS::supportsSave() const { | 167 bool WebMediaPlayerMS::supportsSave() const { |
173 DCHECK(thread_checker_.CalledOnValidThread()); | 168 DCHECK(thread_checker_.CalledOnValidThread()); |
174 return false; | 169 return false; |
175 } | 170 } |
176 | 171 |
177 void WebMediaPlayerMS::seek(double seconds) { | 172 void WebMediaPlayerMS::seek(double seconds) { |
178 DCHECK(thread_checker_.CalledOnValidThread()); | 173 DCHECK(thread_checker_.CalledOnValidThread()); |
179 } | 174 } |
180 | 175 |
181 void WebMediaPlayerMS::setRate(double rate) { | 176 void WebMediaPlayerMS::setRate(double rate) { |
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
423 GetClient()->readyStateChanged(); | 418 GetClient()->readyStateChanged(); |
424 } | 419 } |
425 | 420 |
426 blink::WebMediaPlayerClient* WebMediaPlayerMS::GetClient() { | 421 blink::WebMediaPlayerClient* WebMediaPlayerMS::GetClient() { |
427 DCHECK(thread_checker_.CalledOnValidThread()); | 422 DCHECK(thread_checker_.CalledOnValidThread()); |
428 DCHECK(client_); | 423 DCHECK(client_); |
429 return client_; | 424 return client_; |
430 } | 425 } |
431 | 426 |
432 } // namespace content | 427 } // namespace content |
OLD | NEW |