| 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_ITEM_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_MEDIA_PICKER_DESKTOP_MEDIA_PICKER_ITEM_H_ |
| 6 #define CHROME_BROWSER_UI_COCOA_MEDIA_PICKER_DESKTOP_MEDIA_PICKER_ITEM_H_ | 6 #define CHROME_BROWSER_UI_COCOA_MEDIA_PICKER_DESKTOP_MEDIA_PICKER_ITEM_H_ |
| 7 | 7 |
| 8 #import <AppKit/AppKit.h> | 8 #import <AppKit/AppKit.h> |
| 9 | 9 |
| 10 #import "base/mac/scoped_nsobject.h" | 10 #import "base/mac/scoped_nsobject.h" |
| 11 #include "chrome/browser/media/desktop_media_list.h" | 11 #include "chrome/browser/media/webrtc/desktop_media_list.h" |
| 12 | 12 |
| 13 // Stores the data representing a |DesktopMediaPicker| source for displaying in | 13 // Stores the data representing a |DesktopMediaPicker| source for displaying in |
| 14 // a |IKImageBrowserView|. Implements the |IKImageBrowserItem| informal | 14 // a |IKImageBrowserView|. Implements the |IKImageBrowserItem| informal |
| 15 // protocol. | 15 // protocol. |
| 16 @interface DesktopMediaPickerItem : NSObject { | 16 @interface DesktopMediaPickerItem : NSObject { |
| 17 @private | 17 @private |
| 18 content::DesktopMediaID sourceID_; | 18 content::DesktopMediaID sourceID_; |
| 19 base::scoped_nsobject<NSString> imageUID_; | 19 base::scoped_nsobject<NSString> imageUID_; |
| 20 base::scoped_nsobject<NSString> imageTitle_; | 20 base::scoped_nsobject<NSString> imageTitle_; |
| 21 base::scoped_nsobject<NSImage> image_; | 21 base::scoped_nsobject<NSImage> image_; |
| (...skipping 18 matching lines...) Expand all Loading... |
| 40 | 40 |
| 41 // Sets the image of the item to be displayed in |IKImageBrowserView|. | 41 // Sets the image of the item to be displayed in |IKImageBrowserView|. |
| 42 - (void)setImageRepresentation:(NSImage*)image; | 42 - (void)setImageRepresentation:(NSImage*)image; |
| 43 | 43 |
| 44 // Sets the label of the item to be displayed in |IKImageBrowserView|. | 44 // Sets the label of the item to be displayed in |IKImageBrowserView|. |
| 45 - (void)setImageTitle:(NSString*)imageTitle; | 45 - (void)setImageTitle:(NSString*)imageTitle; |
| 46 | 46 |
| 47 @end | 47 @end |
| 48 | 48 |
| 49 #endif // CHROME_BROWSER_UI_COCOA_MEDIA_PICKER_DESKTOP_MEDIA_PICKER_ITEM_H_ | 49 #endif // CHROME_BROWSER_UI_COCOA_MEDIA_PICKER_DESKTOP_MEDIA_PICKER_ITEM_H_ |
| OLD | NEW |