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 "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 Loading... |
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 |
OLD | NEW |