[Metrics] Make MetricsStateManager take a callback param to check if UMA is enabled.
[chromium-blink-merge.git] / chrome / browser / ui / cocoa / media_picker / desktop_media_picker_bridge.mm
blob07b330851a1b838ee8abd67fd17eb5e59d4b85cb
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
3 // found in the LICENSE file.
5 #import "chrome/browser/ui/cocoa/media_picker/desktop_media_picker_bridge.h"
7 DesktopMediaPickerBridge::DesktopMediaPickerBridge(
8     id<DesktopMediaPickerObserver> observer)
9     : observer_(observer) {
12 DesktopMediaPickerBridge::~DesktopMediaPickerBridge() {
15 void DesktopMediaPickerBridge::OnSourceAdded(int index) {
16   [observer_ sourceAddedAtIndex:index];
19 void DesktopMediaPickerBridge::OnSourceRemoved(int index) {
20   [observer_ sourceRemovedAtIndex:index];
23 void DesktopMediaPickerBridge::OnSourceMoved(int old_index, int new_index) {
24   [observer_ sourceMovedFrom:old_index to:new_index];
27 void DesktopMediaPickerBridge::OnSourceNameChanged(int index) {
28   [observer_ sourceNameChangedAtIndex:index];
31 void DesktopMediaPickerBridge::OnSourceThumbnailChanged(int index) {
32   [observer_ sourceThumbnailChangedAtIndex:index];