Chromium Code Reviews| Index: media/remoting/remoting_controller.cc |
| diff --git a/media/remoting/remoting_controller.cc b/media/remoting/remoting_controller.cc |
| index 73c372f68673518e429677979a24dbd83fd66864..0da71667333a47a3446dc2bb4d2283a4787b3302 100644 |
| --- a/media/remoting/remoting_controller.cc |
| +++ b/media/remoting/remoting_controller.cc |
| @@ -142,6 +142,13 @@ void RemotingController::OnExitedFullscreen() { |
| UpdateAndMaybeSwitch(); |
| } |
| +void RemotingController::OnVideoViewportRatioChanged(double ratio) { |
| + DCHECK(task_runner_->BelongsToCurrentThread()); |
| + |
| + is_fullscreen_ = ratio > 0.85; |
|
miu
2016/11/05 02:47:46
Need "debouncing" logic here. Something like "no c
xjz
2016/11/09 02:24:28
Done.
|
| + UpdateAndMaybeSwitch(); |
| +} |
| + |
| void RemotingController::OnSetCdm(CdmContext* cdm_context) { |
| DCHECK(task_runner_->BelongsToCurrentThread()); |