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

Unified Diff: chrome/browser/ui/views/desktop_media_picker_views.cc

Issue 1690543004: MacViews: Implement Full Keyboard Access. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/views/desktop_media_picker_views.cc
diff --git a/chrome/browser/ui/views/desktop_media_picker_views.cc b/chrome/browser/ui/views/desktop_media_picker_views.cc
index 065247cf4baf4622a87b3840cb11bfa36fa0bd37..a7ac651c55f04cb3df6c0300df81a983e1adc390 100644
--- a/chrome/browser/ui/views/desktop_media_picker_views.cc
+++ b/chrome/browser/ui/views/desktop_media_picker_views.cc
@@ -83,7 +83,7 @@ DesktopMediaSourceView::DesktopMediaSourceView(
selected_(false) {
AddChildView(image_view_);
AddChildView(label_);
- SetFocusable(true);
+ SetFocusBehavior(views::View::FocusBehavior::ALWAYS);
}
DesktopMediaSourceView::~DesktopMediaSourceView() {}
@@ -212,7 +212,7 @@ DesktopMediaListView::DesktopMediaListView(
std::unique_ptr<DesktopMediaList> media_list)
: parent_(parent), media_list_(std::move(media_list)), weak_factory_(this) {
media_list_->SetThumbnailSize(gfx::Size(kThumbnailWidth, kThumbnailHeight));
- SetFocusable(true);
+ SetFocusBehavior(views::View::FocusBehavior::ALWAYS);
}
DesktopMediaListView::~DesktopMediaListView() {}

Powered by Google App Engine
This is Rietveld 408576698