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

Unified Diff: chrome/browser/ui/views/infobars/infobar_view.cc

Issue 8439015: Make infobar controls focusable by default. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 2 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/infobars/extension_infobar.cc ('k') | views/controls/button/text_button.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/infobars/infobar_view.cc
===================================================================
--- chrome/browser/ui/views/infobars/infobar_view.cc (revision 107928)
+++ chrome/browser/ui/views/infobars/infobar_view.cc (working copy)
@@ -94,6 +94,7 @@
link->SetHorizontalAlignment(views::Label::ALIGN_LEFT);
link->set_listener(listener);
link->SetBackgroundColor(background()->get_color());
+ link->set_focusable(true);
return link;
}
@@ -112,6 +113,7 @@
menu_button->SetHighlightColor(SK_ColorBLACK);
menu_button->SetHoverColor(SK_ColorBLACK);
menu_button->SetFont(rb.GetFont(ResourceBundle::MediumFont));
+ menu_button->set_focusable(true);
return menu_button;
}
@@ -151,6 +153,7 @@
}
}
#endif
+ text_button->set_focusable(true);
return text_button;
}
« no previous file with comments | « chrome/browser/ui/views/infobars/extension_infobar.cc ('k') | views/controls/button/text_button.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698