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

Unified Diff: webkit/glue/webthemeengine_impl_win.cc

Issue 10513009: Indicate focused state on text buttons with blue outline. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add comment. Created 8 years, 6 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 | « webkit/glue/webthemeengine_impl_linux.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/webthemeengine_impl_win.cc
diff --git a/webkit/glue/webthemeengine_impl_win.cc b/webkit/glue/webthemeengine_impl_win.cc
index d717b326a689fca7096afed9b1caaf2be113b990..30464e08bc48a14b44f1ad3ccc0f8a75a0ace88c 100644
--- a/webkit/glue/webthemeengine_impl_win.cc
+++ b/webkit/glue/webthemeengine_impl_win.cc
@@ -30,6 +30,8 @@ static RECT WebRectToRECT(const WebRect& rect) {
static ui::NativeTheme::State WebButtonStateToGfx(
int part, int state, ui::NativeTheme::ButtonExtraParams* extra) {
ui::NativeTheme::State gfx_state = ui::NativeTheme::kNormal;
+ // Native buttons have a different focus style.
+ extra->is_focused = false;
if (part == BP_PUSHBUTTON) {
switch (state) {
« no previous file with comments | « webkit/glue/webthemeengine_impl_linux.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698