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

Unified Diff: webkit/glue/webthemeengine_impl_linux.cc

Issue 10513009: Indicate focused state on text buttons with blue outline. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
Index: webkit/glue/webthemeengine_impl_linux.cc
diff --git a/webkit/glue/webthemeengine_impl_linux.cc b/webkit/glue/webthemeengine_impl_linux.cc
index 8bd81f479365561a0f53838b02e69bcccfa4b495..1b303c4f9317e66cad6f91884e2fa9ecc7cb34d9 100644
--- a/webkit/glue/webthemeengine_impl_linux.cc
+++ b/webkit/glue/webthemeengine_impl_linux.cc
@@ -104,6 +104,9 @@ static void GetNativeThemeExtraParams(
extra_params->button.isDefault;
native_theme_extra_params->button.has_border =
extra_params->button.hasBorder;
+ // Native buttons have a different focus style.
+ native_theme_extra_params->button.is_focused =
+ false;
tony 2012/06/04 19:20:45 Nit: false on previous line.
flackr 2012/06/05 14:13:18 Done.
native_theme_extra_params->button.background_color =
extra_params->button.backgroundColor;
break;

Powered by Google App Engine
This is Rietveld 408576698