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

Unified Diff: webkit/glue/webthemeengine_impl_android.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_android.cc
diff --git a/webkit/glue/webthemeengine_impl_android.cc b/webkit/glue/webthemeengine_impl_android.cc
index 30b3e7674d7154437dbc97d17459103e58d37792..5729bb11ee865b434a434cb40238ffef6224efe2 100644
--- a/webkit/glue/webthemeengine_impl_android.cc
+++ b/webkit/glue/webthemeengine_impl_android.cc
@@ -107,6 +107,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: Can you put |false| on the same line as the a
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