summaryrefslogtreecommitdiffstats
path: root/Source/WebCore/platform/android/RenderThemeAndroid.cpp
diff options
context:
space:
mode:
authorJohn Reck <jreck@google.com>2012-02-06 09:00:44 -0800
committerJohn Reck <jreck@google.com>2012-02-15 16:57:38 -0800
commitceeeab6161d7d8bf970ecf98affa4f4966df6f01 (patch)
tree0666a9ebf25e9d4e09ef3f8ee8ed0f6cf33fd4f1 /Source/WebCore/platform/android/RenderThemeAndroid.cpp
parent628a06bda2490e4c405ce3263381412423f4c735 (diff)
downloadexternal_webkit-ceeeab6161d7d8bf970ecf98affa4f4966df6f01.zip
external_webkit-ceeeab6161d7d8bf970ecf98affa4f4966df6f01.tar.gz
external_webkit-ceeeab6161d7d8bf970ecf98affa4f4966df6f01.tar.bz2
Initial support for keyboard navigation
Bug: 6019693 Change-Id: I7b4f6d83e8913e647e8ac7340afd01d609c4343b
Diffstat (limited to 'Source/WebCore/platform/android/RenderThemeAndroid.cpp')
-rw-r--r--Source/WebCore/platform/android/RenderThemeAndroid.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/Source/WebCore/platform/android/RenderThemeAndroid.cpp b/Source/WebCore/platform/android/RenderThemeAndroid.cpp
index d579003..b570d0e 100644
--- a/Source/WebCore/platform/android/RenderThemeAndroid.cpp
+++ b/Source/WebCore/platform/android/RenderThemeAndroid.cpp
@@ -621,8 +621,19 @@ bool RenderThemeAndroid::paintMenuListButton(RenderObject* obj, const PaintInfo&
return paintCombo(obj, info, rect);
}
+Color RenderThemeAndroid::platformFocusRingColor() const
+{
+ static Color focusRingColor(0x66, 0x33, 0xB5, 0xE5);
+ return focusRingColor;
+}
+
bool RenderThemeAndroid::supportsFocusRing(const RenderStyle* style) const
{
+ // TODO: Draw this on the UI side
+ // For now, just return false to let WebKit draw the focus ring. We only
+ // draw this ring when navigating via the keyboard, this does not affect
+ // the touch ring
+ return false;
return style->opacity() > 0
&& style->hasAppearance()
&& style->appearance() != TextFieldPart