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

Side by Side Diff: media/blink/webmediaplayer_impl.cc

Issue 2556333002: Detect change on video/viewport intersection when rendered remotely (Closed)
Patch Set: Fix nits. 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
« no previous file with comments | « media/blink/webmediaplayer_impl.h ('k') | media/remoting/remoting_renderer_controller.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "media/blink/webmediaplayer_impl.h" 5 #include "media/blink/webmediaplayer_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <cmath> 8 #include <cmath>
9 #include <limits> 9 #include <limits>
10 #include <string> 10 #include <string>
(...skipping 1968 matching lines...) Expand 10 before | Expand all | Expand 10 after
1979 else 1979 else
1980 watch_time_reporter_->OnShown(); 1980 watch_time_reporter_->OnShown();
1981 } 1981 }
1982 1982
1983 bool WebMediaPlayerImpl::IsHidden() const { 1983 bool WebMediaPlayerImpl::IsHidden() const {
1984 DCHECK(main_task_runner_->BelongsToCurrentThread()); 1984 DCHECK(main_task_runner_->BelongsToCurrentThread());
1985 1985
1986 return delegate_ && delegate_->IsHidden(); 1986 return delegate_ && delegate_->IsHidden();
1987 } 1987 }
1988 1988
1989 void WebMediaPlayerImpl::ActivateViewportIntersectionMonitoring(bool activate) {
1990 DCHECK(main_task_runner_->BelongsToCurrentThread());
1991
1992 client_->activateViewportIntersectionMonitoring(activate);
1993 }
1994
1989 } // namespace media 1995 } // namespace media
OLDNEW
« no previous file with comments | « media/blink/webmediaplayer_impl.h ('k') | media/remoting/remoting_renderer_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698