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

Unified Diff: ash/system/tray/tray_popup_header_button.cc

Issue 78803002: Fixing focus highlight on high DPI devices for accessibility (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed Created 7 years, 1 month 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 | « ash/system/tray/tray_popup_header_button.h ('k') | ash/system/tray/tray_popup_label_button.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/tray/tray_popup_header_button.cc
diff --git a/ash/system/tray/tray_popup_header_button.cc b/ash/system/tray/tray_popup_header_button.cc
index 7e20c00e4e752c50165d4e0847383f1505a196bd..ceeda043ad00fa4107c0f4dc3238c1ac5c5e1dc5 100644
--- a/ash/system/tray/tray_popup_header_button.cc
+++ b/ash/system/tray/tray_popup_header_button.cc
@@ -37,6 +37,10 @@ TrayPopupHeaderButton::TrayPopupHeaderButton(views::ButtonListener* listener,
SetAccessibleName(bundle.GetLocalizedString(accessible_name_id));
set_focusable(true);
set_request_focus_on_press(false);
+
+ set_focus_border(views::FocusBorder::CreateSolidFocusBorder(
+ kFocusBorderColor,
+ gfx::Insets(1, 2, 2, 3)));
}
TrayPopupHeaderButton::~TrayPopupHeaderButton() {}
@@ -57,13 +61,6 @@ void TrayPopupHeaderButton::OnPaintBorder(gfx::Canvas* canvas) {
ash::kBorderDarkColor);
}
-void TrayPopupHeaderButton::OnPaintFocusBorder(gfx::Canvas* canvas) {
- if (HasFocus()) {
- canvas->DrawRect(gfx::Rect(2, 1, width() - 4, height() - 3),
- kFocusBorderColor);
- }
-}
-
void TrayPopupHeaderButton::StateChanged() {
SchedulePaint();
}
« no previous file with comments | « ash/system/tray/tray_popup_header_button.h ('k') | ash/system/tray/tray_popup_label_button.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698