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

Side by Side Diff: content/renderer/media/webmediaplayer_impl.cc

Issue 142273002: Remove implementations of WebMediaPlayer::supportsFullscreen() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 months 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 | Annotate | Revision Log
OLDNEW
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_impl.h" 5 #include "content/renderer/media/webmediaplayer_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <limits> 8 #include <limits>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after
325 if (data_source_) 325 if (data_source_)
326 data_source_->MediaIsPaused(); 326 data_source_->MediaIsPaused();
327 paused_time_ = pipeline_->GetMediaTime(); 327 paused_time_ = pipeline_->GetMediaTime();
328 328
329 media_log_->AddEvent(media_log_->CreateEvent(media::MediaLogEvent::PAUSE)); 329 media_log_->AddEvent(media_log_->CreateEvent(media::MediaLogEvent::PAUSE));
330 330
331 if (delegate_.get()) 331 if (delegate_.get())
332 delegate_->DidPause(this); 332 delegate_->DidPause(this);
333 } 333 }
334 334
335 bool WebMediaPlayerImpl::supportsFullscreen() const {
336 DCHECK(main_loop_->BelongsToCurrentThread());
337 return true;
338 }
339
340 bool WebMediaPlayerImpl::supportsSave() const { 335 bool WebMediaPlayerImpl::supportsSave() const {
341 DCHECK(main_loop_->BelongsToCurrentThread()); 336 DCHECK(main_loop_->BelongsToCurrentThread());
342 return supports_save_; 337 return supports_save_;
343 } 338 }
344 339
345 void WebMediaPlayerImpl::seek(double seconds) { 340 void WebMediaPlayerImpl::seek(double seconds) {
346 DCHECK(main_loop_->BelongsToCurrentThread()); 341 DCHECK(main_loop_->BelongsToCurrentThread());
347 342
348 if (ready_state_ > WebMediaPlayer::ReadyStateHaveMetadata) 343 if (ready_state_ > WebMediaPlayer::ReadyStateHaveMetadata)
349 SetReadyState(WebMediaPlayer::ReadyStateHaveMetadata); 344 SetReadyState(WebMediaPlayer::ReadyStateHaveMetadata);
(...skipping 967 matching lines...) Expand 10 before | Expand all | Expand 10 after
1317 // The |current_frame_| wasn't painted, it is being replaced, and we haven't 1312 // The |current_frame_| wasn't painted, it is being replaced, and we haven't
1318 // even gotten the chance to request a repaint for it yet. Mark it as dropped. 1313 // even gotten the chance to request a repaint for it yet. Mark it as dropped.
1319 TRACE_EVENT0("media", "WebMediaPlayerImpl:frameDropped"); 1314 TRACE_EVENT0("media", "WebMediaPlayerImpl:frameDropped");
1320 DVLOG(1) << "Frame dropped before being painted: " 1315 DVLOG(1) << "Frame dropped before being painted: "
1321 << current_frame_->GetTimestamp().InSecondsF(); 1316 << current_frame_->GetTimestamp().InSecondsF();
1322 if (frames_dropped_before_paint_ < kuint32max) 1317 if (frames_dropped_before_paint_ < kuint32max)
1323 frames_dropped_before_paint_++; 1318 frames_dropped_before_paint_++;
1324 } 1319 }
1325 1320
1326 } // namespace content 1321 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/media/webmediaplayer_impl.h ('k') | content/renderer/media/webmediaplayer_ms.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698