| Index: ash/media_controller.cc
|
| diff --git a/ash/media_controller.cc b/ash/media_controller.cc
|
| deleted file mode 100644
|
| index 6f320bff716211b832f8f9776262a9e36824d37a..0000000000000000000000000000000000000000
|
| --- a/ash/media_controller.cc
|
| +++ /dev/null
|
| @@ -1,55 +0,0 @@
|
| -// Copyright 2016 The Chromium Authors. All rights reserved.
|
| -// Use of this source code is governed by a BSD-style license that can be
|
| -// found in the LICENSE file.
|
| -
|
| -#include "ash/media_controller.h"
|
| -
|
| -namespace ash {
|
| -
|
| -MediaController::MediaController() {}
|
| -
|
| -MediaController::~MediaController() {}
|
| -
|
| -void MediaController::BindRequest(mojom::MediaControllerRequest request) {
|
| - bindings_.AddBinding(this, std::move(request));
|
| -}
|
| -
|
| -void MediaController::AddObserver(MediaCaptureObserver* observer) {
|
| - observers_.AddObserver(observer);
|
| -}
|
| -
|
| -void MediaController::RemoveObserver(MediaCaptureObserver* observer) {
|
| - observers_.RemoveObserver(observer);
|
| -}
|
| -
|
| -void MediaController::HandleMediaNextTrack() {
|
| - if (client_)
|
| - client_->HandleMediaNextTrack();
|
| -}
|
| -
|
| -void MediaController::HandleMediaPlayPause() {
|
| - if (client_)
|
| - client_->HandleMediaPlayPause();
|
| -}
|
| -
|
| -void MediaController::HandleMediaPrevTrack() {
|
| - if (client_)
|
| - client_->HandleMediaPrevTrack();
|
| -}
|
| -
|
| -void MediaController::RequestCaptureState() {
|
| - if (client_)
|
| - client_->RequestCaptureState();
|
| -}
|
| -
|
| -void MediaController::SetClient(mojom::MediaClientAssociatedPtrInfo client) {
|
| - client_.Bind(std::move(client));
|
| -}
|
| -
|
| -void MediaController::NotifyCaptureState(
|
| - const std::vector<mojom::MediaCaptureState>& capture_states) {
|
| - for (auto& observer : observers_)
|
| - observer.OnMediaCaptureChanged(capture_states);
|
| -}
|
| -
|
| -} // namespace ash
|
|
|