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

Unified Diff: chrome/renderer/render_view.cc

Issue 398003: linux: Use gtk-cursor-blink from GtkSettings to set the caret blink interval (Closed)
Patch Set: latest Created 10 years, 11 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 | « chrome/common/renderer_preferences.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/render_view.cc
diff --git a/chrome/renderer/render_view.cc b/chrome/renderer/render_view.cc
index c474e7286eeb7692435f7eb948850226e4c1d040..aff9afaa05e7161a1ff37bc21ec40cd8e8e9b232 100644
--- a/chrome/renderer/render_view.cc
+++ b/chrome/renderer/render_view.cc
@@ -115,6 +115,8 @@
// TODO(port): these files are currently Windows only because they concern:
// * theming
#include "app/gfx/native_theme_win.h"
+#elif defined(OS_LINUX)
+#include "third_party/WebKit/WebKit/chromium/public/linux/WebRenderTheme.h"
#endif
using appcache::WebApplicationCacheHostImpl;
@@ -3449,6 +3451,7 @@ void RenderView::OnSetRendererPrefs(const RendererPreferences& renderer_prefs) {
#if defined(OS_LINUX) && !defined(TOOLKIT_VIEWS)
WebColorName name = WebKit::WebColorWebkitFocusRingColor;
WebKit::setNamedColors(&name, &renderer_prefs.focus_ring_color, 1);
+ WebKit::setCaretBlinkInterval(renderer_prefs.caret_blink_interval);
if (webview()) {
webview()->setScrollbarColors(
« no previous file with comments | « chrome/common/renderer_preferences.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698