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 #ifndef CHROME_BROWSER_UI_COCOA_MEDIA_PICKER_DESKTOP_MEDIA_PICKER_BRIDGE_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_MEDIA_PICKER_DESKTOP_MEDIA_PICKER_BRIDGE_H_ |
6 #define CHROME_BROWSER_UI_COCOA_MEDIA_PICKER_DESKTOP_MEDIA_PICKER_BRIDGE_H_ | 6 #define CHROME_BROWSER_UI_COCOA_MEDIA_PICKER_DESKTOP_MEDIA_PICKER_BRIDGE_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "chrome/browser/media/desktop_media_list.h" | 9 #include "chrome/browser/media/webrtc/desktop_media_list.h" |
10 #include "chrome/browser/media/desktop_media_list_observer.h" | 10 #include "chrome/browser/media/webrtc/desktop_media_list_observer.h" |
11 | 11 |
12 // Protocol corresponding to |DesktopMediaListObserver|. | 12 // Protocol corresponding to |DesktopMediaListObserver|. |
13 @protocol DesktopMediaPickerObserver | 13 @protocol DesktopMediaPickerObserver |
14 - (void)sourceAddedForList:(DesktopMediaList*)list atIndex:(int)index; | 14 - (void)sourceAddedForList:(DesktopMediaList*)list atIndex:(int)index; |
15 - (void)sourceRemovedForList:(DesktopMediaList*)list atIndex:(int)index; | 15 - (void)sourceRemovedForList:(DesktopMediaList*)list atIndex:(int)index; |
16 - (void)sourceMovedForList:(DesktopMediaList*)list | 16 - (void)sourceMovedForList:(DesktopMediaList*)list |
17 from:(int)oldIndex | 17 from:(int)oldIndex |
18 to:(int)newIndex; | 18 to:(int)newIndex; |
19 - (void)sourceNameChangedForList:(DesktopMediaList*)list atIndex:(int)index; | 19 - (void)sourceNameChangedForList:(DesktopMediaList*)list atIndex:(int)index; |
20 - (void)sourceThumbnailChangedForList:(DesktopMediaList*)list | 20 - (void)sourceThumbnailChangedForList:(DesktopMediaList*)list |
(...skipping 17 matching lines...) Expand all Loading... |
38 void OnSourceNameChanged(DesktopMediaList* list, int index) override; | 38 void OnSourceNameChanged(DesktopMediaList* list, int index) override; |
39 void OnSourceThumbnailChanged(DesktopMediaList* list, int index) override; | 39 void OnSourceThumbnailChanged(DesktopMediaList* list, int index) override; |
40 | 40 |
41 private: | 41 private: |
42 id<DesktopMediaPickerObserver> observer_; // weak; owns this | 42 id<DesktopMediaPickerObserver> observer_; // weak; owns this |
43 | 43 |
44 DISALLOW_COPY_AND_ASSIGN(DesktopMediaPickerBridge); | 44 DISALLOW_COPY_AND_ASSIGN(DesktopMediaPickerBridge); |
45 }; | 45 }; |
46 | 46 |
47 #endif // CHROME_BROWSER_UI_COCOA_MEDIA_PICKER_DESKTOP_MEDIA_PICKER_BRIDGE_H_ | 47 #endif // CHROME_BROWSER_UI_COCOA_MEDIA_PICKER_DESKTOP_MEDIA_PICKER_BRIDGE_H_ |
OLD | NEW |