summaryrefslogtreecommitdiffstats
path: root/webkit/glue/webview_impl.cc
diff options
context:
space:
mode:
authorestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-03 00:06:09 +0000
committerestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-03 00:06:09 +0000
commitd3ba7727bab47266a43ba17790be43eaf4c7961f (patch)
treeb796080c822c41b935fde0b37806f64d961abb2d /webkit/glue/webview_impl.cc
parent15730c45ebf0eb657ba30e19f643bfe1cf299ce7 (diff)
downloadchromium_src-d3ba7727bab47266a43ba17790be43eaf4c7961f.zip
chromium_src-d3ba7727bab47266a43ba17790be43eaf4c7961f.tar.gz
chromium_src-d3ba7727bab47266a43ba17790be43eaf4c7961f.tar.bz2
Set the focus ring color to match the Gtk theme focus color.
BUG=8540 Review URL: http://codereview.chromium.org/173642 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@25278 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/webview_impl.cc')
-rw-r--r--webkit/glue/webview_impl.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/webkit/glue/webview_impl.cc b/webkit/glue/webview_impl.cc
index c295303..d5f9c06 100644
--- a/webkit/glue/webview_impl.cc
+++ b/webkit/glue/webview_impl.cc
@@ -44,6 +44,8 @@ MSVC_PUSH_WARNING_LEVEL(0);
#include "PopupMenuClient.h"
#if defined(OS_WIN)
#include "RenderThemeChromiumWin.h"
+#elif defined(OS_LINUX)
+#include "RenderThemeChromiumLinux.h"
#else
#include "RenderTheme.h"
#endif
@@ -1778,6 +1780,13 @@ bool WebViewImpl::IsActive() {
: false;
}
+#if defined(OS_LINUX)
+void WebViewImpl::SetThemeFocusRingColor(int r, int g, int b) {
+ reinterpret_cast<RenderThemeChromiumLinux*>(theme())->
+ setFocusRingColor(Color(r, g, b));
+}
+#endif
+
void WebViewImpl::DidCommitLoad(bool* is_new_navigation) {
if (is_new_navigation)
*is_new_navigation = observed_new_navigation_;