| 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/browser/media/android/browser_media_player_manager.h" | 5 #include "content/browser/media/android/browser_media_player_manager.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/android/scoped_java_ref.h" | 9 #include "base/android/scoped_java_ref.h" |
| 10 #include "base/memory/singleton.h" | 10 #include "base/memory/singleton.h" |
| (...skipping 514 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 525 | 525 |
| 526 void BrowserMediaPlayerManager::OnRequestRemotePlayback(int /* player_id */) { | 526 void BrowserMediaPlayerManager::OnRequestRemotePlayback(int /* player_id */) { |
| 527 // Does nothing if we don't have a remote player | 527 // Does nothing if we don't have a remote player |
| 528 } | 528 } |
| 529 | 529 |
| 530 void BrowserMediaPlayerManager::OnRequestRemotePlaybackControl( | 530 void BrowserMediaPlayerManager::OnRequestRemotePlaybackControl( |
| 531 int /* player_id */) { | 531 int /* player_id */) { |
| 532 // Does nothing if we don't have a remote player | 532 // Does nothing if we don't have a remote player |
| 533 } | 533 } |
| 534 | 534 |
| 535 void BrowserMediaPlayerManager::OnRequestRemotePlaybackStop( |
| 536 int /* player_id */) { |
| 537 // Does nothing if we don't have a remote player |
| 538 } |
| 539 |
| 535 bool BrowserMediaPlayerManager::IsPlayingRemotely(int player_id) { | 540 bool BrowserMediaPlayerManager::IsPlayingRemotely(int player_id) { |
| 536 return false; | 541 return false; |
| 537 } | 542 } |
| 538 | 543 |
| 539 void BrowserMediaPlayerManager::AddPlayer( | 544 void BrowserMediaPlayerManager::AddPlayer( |
| 540 MediaPlayerAndroid* player, int delegate_id) { | 545 MediaPlayerAndroid* player, int delegate_id) { |
| 541 DCHECK(!GetPlayer(player->player_id())); | 546 DCHECK(!GetPlayer(player->player_id())); |
| 542 players_.push_back(player); | 547 players_.push_back(player); |
| 543 player_id_to_delegate_id_map_[player->player_id()] = | 548 player_id_to_delegate_id_map_[player->player_id()] = |
| 544 delegate_id; | 549 delegate_id; |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 661 if (!player) | 666 if (!player) |
| 662 return; | 667 return; |
| 663 player->Start(); | 668 player->Start(); |
| 664 if (fullscreen_player_id_ == player_id && fullscreen_player_is_released_) { | 669 if (fullscreen_player_id_ == player_id && fullscreen_player_is_released_) { |
| 665 video_view_->OpenVideo(); | 670 video_view_->OpenVideo(); |
| 666 fullscreen_player_is_released_ = false; | 671 fullscreen_player_is_released_ = false; |
| 667 } | 672 } |
| 668 } | 673 } |
| 669 | 674 |
| 670 } // namespace content | 675 } // namespace content |
| OLD | NEW |