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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutTheme.h

Issue 2216733002: blink: honor renderer caret_blink_interval in non-default themes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 | « content/renderer/render_view_impl.cc ('k') | third_party/WebKit/Source/core/layout/LayoutTheme.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/layout/LayoutTheme.h
diff --git a/third_party/WebKit/Source/core/layout/LayoutTheme.h b/third_party/WebKit/Source/core/layout/LayoutTheme.h
index cad575fd8978c2969fd2ac74a62c1f36cad5c423..84ad07a945ae9e5190416d8e2413a41b49c7aea8 100644
--- a/third_party/WebKit/Source/core/layout/LayoutTheme.h
+++ b/third_party/WebKit/Source/core/layout/LayoutTheme.h
@@ -130,7 +130,8 @@ public:
virtual Color platformDefaultCompositionBackgroundColor() const { return defaultCompositionBackgroundColor; }
virtual void platformColorsDidChange();
- virtual double caretBlinkInterval() const { return 0.5; }
+ void setCaretBlinkInterval(double);
+ virtual double caretBlinkInterval() const;
// System fonts and colors for CSS.
virtual void systemFont(CSSValueID systemFontID, FontStyle&, FontWeight&, float& fontSize, AtomicString& fontFamily) const = 0;
@@ -242,6 +243,7 @@ private:
Color m_customFocusRingColor;
bool m_hasCustomFocusRingColor;
+ double m_caretBlinkInterval = 0.5;
// This color is expected to be drawn on a semi-transparent overlay,
// making it more transparent than its alpha value indicates.
« no previous file with comments | « content/renderer/render_view_impl.cc ('k') | third_party/WebKit/Source/core/layout/LayoutTheme.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698