Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(16)

Side by Side Diff: chrome/browser/ui/cocoa/media_picker/desktop_media_picker_item.mm

Issue 89683003: Rename DesktopMediaPickerModel[Impl]->[Native]DesktopMediaList (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 #import "chrome/browser/ui/cocoa/media_picker/desktop_media_picker_item.h" 5 #import "chrome/browser/ui/cocoa/media_picker/desktop_media_picker_item.h"
6 6
7 #import <Quartz/Quartz.h> 7 #import <Quartz/Quartz.h>
8 8
9 #include "chrome/browser/media/desktop_media_picker_model.h" 9 #include "chrome/browser/media/desktop_media_list.h"
10 10
11 @implementation DesktopMediaPickerItem 11 @implementation DesktopMediaPickerItem
12 12
13 - (id)initWithSourceId:(content::DesktopMediaID)sourceID 13 - (id)initWithSourceId:(content::DesktopMediaID)sourceID
14 imageUID:(int)imageUID 14 imageUID:(int)imageUID
15 imageTitle:(NSString*)imageTitle { 15 imageTitle:(NSString*)imageTitle {
16 if ((self = [super init])) { 16 if ((self = [super init])) {
17 sourceID_ = sourceID; 17 sourceID_ = sourceID;
18 imageUID_.reset([[NSString stringWithFormat:@"%d", imageUID] retain]); 18 imageUID_.reset([[NSString stringWithFormat:@"%d", imageUID] retain]);
19 imageTitle_.reset([imageTitle retain]); 19 imageTitle_.reset([imageTitle retain]);
(...skipping 30 matching lines...) Expand all
50 50
51 - (NSUInteger)imageVersion { 51 - (NSUInteger)imageVersion {
52 return imageVersion_; 52 return imageVersion_;
53 } 53 }
54 54
55 - (id)imageRepresentation { 55 - (id)imageRepresentation {
56 return image_.get(); 56 return image_.get();
57 } 57 }
58 58
59 @end // @interface DesktopMediaPickerItem 59 @end // @interface DesktopMediaPickerItem
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698