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

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

Issue 1870573003: Full Keyboard Access: Second Approach (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
« no previous file with comments | « chrome/browser/ui/views/autofill/autofill_dialog_views.cc ('k') | chrome/browser/ui/views/find_bar_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 82a6d04ff15c7ab36007906e4753fae8e4f0b169..09ca5c96757ff3ad4a0cc9c449e9653ac91c55f0 100644
--- a/chrome/browser/ui/views/desktop_media_picker_views.cc
+++ b/chrome/browser/ui/views/desktop_media_picker_views.cc
@@ -35,6 +35,7 @@
#include "ui/views/controls/scroll_view.h"
#include "ui/views/layout/box_layout.h"
#include "ui/views/layout/layout_constants.h"
+#include "ui/views/style/platform_style.h"
#include "ui/views/widget/widget.h"
#include "ui/views/window/dialog_client_view.h"
#include "ui/wm/core/shadow_types.h"
@@ -83,7 +84,8 @@ DesktopMediaSourceView::DesktopMediaSourceView(
selected_(false) {
AddChildView(image_view_);
AddChildView(label_);
- SetFocusable(true);
+ views::PlatformStyle::ConfigureFocus(
+ views::PlatformStyle::CONTROL::DESKTOP_MEDIA_SOURCE_VIEW, this);
}
DesktopMediaSourceView::~DesktopMediaSourceView() {}
@@ -212,7 +214,8 @@ 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);
+ views::PlatformStyle::ConfigureFocus(
+ views::PlatformStyle::CONTROL::DESKTOP_MEDIA_LIST_VIEW, this);
}
DesktopMediaListView::~DesktopMediaListView() {}
« no previous file with comments | « chrome/browser/ui/views/autofill/autofill_dialog_views.cc ('k') | chrome/browser/ui/views/find_bar_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698