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

Unified Diff: chrome/browser/ui/views/apps/app_info_dialog/app_info_permissions_panel.cc

Issue 1690543004: MacViews: Implement Full Keyboard Access. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix FocusManagerTest.StoreFocusedView Created 4 years, 10 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/apps/app_info_dialog/app_info_permissions_panel.cc
diff --git a/chrome/browser/ui/views/apps/app_info_dialog/app_info_permissions_panel.cc b/chrome/browser/ui/views/apps/app_info_dialog/app_info_permissions_panel.cc
index 82964d9b6323162bbd957554149123a23a689a81..712eb6fa0b72443949adff87d379c3c659235e75 100644
--- a/chrome/browser/ui/views/apps/app_info_dialog/app_info_permissions_panel.cc
+++ b/chrome/browser/ui/views/apps/app_info_dialog/app_info_permissions_panel.cc
@@ -29,6 +29,7 @@
#include "ui/views/layout/box_layout.h"
#include "ui/views/layout/grid_layout.h"
#include "ui/views/layout/layout_constants.h"
+#include "ui/views/style/platform_style.h"
#include "ui/views/view.h"
namespace {
@@ -62,7 +63,7 @@ class RevokeButton : public views::ImageButton, public views::ButtonListener {
// Make the button focusable & give it alt-text so permissions can be
// revoked using only the keyboard.
- SetFocusable(true);
+ views::PlatformStyle::SetControlStyleFocus(this);
SetTooltipText(l10n_util::GetStringFUTF16(
IDS_APPLICATION_INFO_REVOKE_PERMISSION_ALT_TEXT, permission_message));
}

Powered by Google App Engine
This is Rietveld 408576698