| 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/android/webmediaplayer_android.h" | 5 #include "content/renderer/media/android/webmediaplayer_android.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_helpers.h" | 10 #include "base/callback_helpers.h" |
| (...skipping 1521 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1532 decryptor_ready_cb_ = decryptor_ready_cb; | 1532 decryptor_ready_cb_ = decryptor_ready_cb; |
| 1533 } | 1533 } |
| 1534 | 1534 |
| 1535 void WebMediaPlayerAndroid::enterFullscreen() { | 1535 void WebMediaPlayerAndroid::enterFullscreen() { |
| 1536 if (player_manager_->CanEnterFullscreen(frame_)) { | 1536 if (player_manager_->CanEnterFullscreen(frame_)) { |
| 1537 player_manager_->EnterFullscreen(player_id_, frame_); | 1537 player_manager_->EnterFullscreen(player_id_, frame_); |
| 1538 SetNeedsEstablishPeer(false); | 1538 SetNeedsEstablishPeer(false); |
| 1539 } | 1539 } |
| 1540 } | 1540 } |
| 1541 | 1541 |
| 1542 void WebMediaPlayerAndroid::exitFullscreen() { | |
| 1543 player_manager_->ExitFullscreen(player_id_); | |
| 1544 } | |
| 1545 | |
| 1546 bool WebMediaPlayerAndroid::canEnterFullscreen() const { | 1542 bool WebMediaPlayerAndroid::canEnterFullscreen() const { |
| 1547 return player_manager_->CanEnterFullscreen(frame_); | 1543 return player_manager_->CanEnterFullscreen(frame_); |
| 1548 } | 1544 } |
| 1549 | 1545 |
| 1550 } // namespace content | 1546 } // namespace content |
| OLD | NEW |