Disable view source for Developer Tools.
[chromium-blink-merge.git] / chrome / browser / ui / cocoa / media_picker / desktop_media_picker_bridge.mm
blob52a33c6a727d30b473ce80ccc1f0b86f9046769a
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::OnSourceNameChanged(int index) {
24   [observer_ sourceNameChangedAtIndex:index];
27 void DesktopMediaPickerBridge::OnSourceThumbnailChanged(int index) {
28   [observer_ sourceThumbnailChangedAtIndex:index];