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

Unified Diff: ui/app_list/views/folder_header_view.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_label_button.cc ('k') | ui/gfx/canvas.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/app_list/views/folder_header_view.cc
diff --git a/ui/app_list/views/folder_header_view.cc b/ui/app_list/views/folder_header_view.cc
index 3c21813700ffcb89edcd0d5f88b7baaafd6d1b4e..558726ce11a752b776675eff50db2f8c00ab6e37 100644
--- a/ui/app_list/views/folder_header_view.cc
+++ b/ui/app_list/views/folder_header_view.cc
@@ -36,6 +36,10 @@ class FolderHeaderView::FolderNameView : public views::Textfield {
public:
FolderNameView() {
set_border(views::Border::CreateEmptyBorder(1, 1, 1, 1));
+ const SkColor kFocusBorderColor = SkColorSetRGB(64, 128, 250);
+ set_focus_border(views::FocusBorder::CreateSolidFocusBorder(
+ kFocusBorderColor,
+ gfx::Insets(0, 0, 1, 1)));
}
virtual ~FolderNameView() {
@@ -46,15 +50,6 @@ class FolderHeaderView::FolderNameView : public views::Textfield {
return gfx::Size(kFolderNameWidth, kFolderNameHeight);
}
- virtual void OnPaintFocusBorder(gfx::Canvas* canvas) OVERRIDE {
- const SkColor kFocusBorderColor = SkColorSetRGB(64, 128, 250);
- if (HasFocus()) {
- gfx::Rect rect = GetLocalBounds();
- rect.Inset(0, 0, 1, 1);
- canvas->DrawRect(rect, kFocusBorderColor);
- }
- }
-
private:
DISALLOW_COPY_AND_ASSIGN(FolderNameView);
};
« no previous file with comments | « ash/system/tray/tray_popup_label_button.cc ('k') | ui/gfx/canvas.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698