OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "ash/common/media_controller.h" | 5 #include "ash/media_controller.h" |
6 | 6 |
7 namespace ash { | 7 namespace ash { |
8 | 8 |
9 MediaController::MediaController() {} | 9 MediaController::MediaController() {} |
10 | 10 |
11 MediaController::~MediaController() {} | 11 MediaController::~MediaController() {} |
12 | 12 |
13 void MediaController::BindRequest(mojom::MediaControllerRequest request) { | 13 void MediaController::BindRequest(mojom::MediaControllerRequest request) { |
14 bindings_.AddBinding(this, std::move(request)); | 14 bindings_.AddBinding(this, std::move(request)); |
15 } | 15 } |
(...skipping 30 matching lines...) Expand all Loading... |
46 client_.Bind(std::move(client)); | 46 client_.Bind(std::move(client)); |
47 } | 47 } |
48 | 48 |
49 void MediaController::NotifyCaptureState( | 49 void MediaController::NotifyCaptureState( |
50 const std::vector<mojom::MediaCaptureState>& capture_states) { | 50 const std::vector<mojom::MediaCaptureState>& capture_states) { |
51 for (auto& observer : observers_) | 51 for (auto& observer : observers_) |
52 observer.OnMediaCaptureChanged(capture_states); | 52 observer.OnMediaCaptureChanged(capture_states); |
53 } | 53 } |
54 | 54 |
55 } // namespace ash | 55 } // namespace ash |
OLD | NEW |