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

Side by Side Diff: chrome/browser/ui/views/desktop_media_picker_views.cc

Issue 103493005: Rename View::set_focusable and View::set_accessibility_focusable (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added a few missing files 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 #include "chrome/browser/media/desktop_media_picker.h" 5 #include "chrome/browser/media/desktop_media_picker.h"
6 6
7 #include "ash/shell.h" 7 #include "ash/shell.h"
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "chrome/browser/media/desktop_media_list.h" 9 #include "chrome/browser/media/desktop_media_list.h"
10 #include "chrome/browser/media/desktop_media_list_observer.h" 10 #include "chrome/browser/media/desktop_media_list_observer.h"
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 DesktopMediaSourceView::DesktopMediaSourceView( 208 DesktopMediaSourceView::DesktopMediaSourceView(
209 DesktopMediaListView* parent, 209 DesktopMediaListView* parent,
210 DesktopMediaID source_id) 210 DesktopMediaID source_id)
211 : parent_(parent), 211 : parent_(parent),
212 source_id_(source_id), 212 source_id_(source_id),
213 image_view_(new views::ImageView()), 213 image_view_(new views::ImageView()),
214 label_(new views::Label()), 214 label_(new views::Label()),
215 selected_(false) { 215 selected_(false) {
216 AddChildView(image_view_); 216 AddChildView(image_view_);
217 AddChildView(label_); 217 AddChildView(label_);
218 set_focusable(true); 218 SetFocusable(true);
219 } 219 }
220 220
221 DesktopMediaSourceView::~DesktopMediaSourceView() {} 221 DesktopMediaSourceView::~DesktopMediaSourceView() {}
222 222
223 void DesktopMediaSourceView::SetName(const base::string16& name) { 223 void DesktopMediaSourceView::SetName(const base::string16& name) {
224 label_->SetText(name); 224 label_->SetText(name);
225 } 225 }
226 226
227 void DesktopMediaSourceView::SetThumbnail(const gfx::ImageSkia& thumbnail) { 227 void DesktopMediaSourceView::SetThumbnail(const gfx::ImageSkia& thumbnail) {
228 image_view_->SetImage(thumbnail); 228 image_view_->SetImage(thumbnail);
(...skipping 393 matching lines...) Expand 10 before | Expand all | Expand 10 after
622 base::Bind(callback_, source)); 622 base::Bind(callback_, source));
623 callback_.Reset(); 623 callback_.Reset();
624 } 624 }
625 625
626 } // namespace 626 } // namespace
627 627
628 // static 628 // static
629 scoped_ptr<DesktopMediaPicker> DesktopMediaPicker::Create() { 629 scoped_ptr<DesktopMediaPicker> DesktopMediaPicker::Create() {
630 return scoped_ptr<DesktopMediaPicker>(new DesktopMediaPickerViews()); 630 return scoped_ptr<DesktopMediaPicker>(new DesktopMediaPickerViews());
631 } 631 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698