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

Side by Side 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * This file is part of the theme implementation for form controls in WebCore. 2 * This file is part of the theme implementation for form controls in WebCore.
3 * 3 *
4 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Computer, Inc. 4 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Computer, Inc.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 Color platformTextSearchColor(bool activeMatch) const; 123 Color platformTextSearchColor(bool activeMatch) const;
124 124
125 Color focusRingColor() const; 125 Color focusRingColor() const;
126 virtual Color platformFocusRingColor() const { return Color(0, 0, 0); } 126 virtual Color platformFocusRingColor() const { return Color(0, 0, 0); }
127 void setCustomFocusRingColor(const Color&); 127 void setCustomFocusRingColor(const Color&);
128 static Color tapHighlightColor(); 128 static Color tapHighlightColor();
129 virtual Color platformTapHighlightColor() const { return LayoutTheme::defaul tTapHighlightColor; } 129 virtual Color platformTapHighlightColor() const { return LayoutTheme::defaul tTapHighlightColor; }
130 virtual Color platformDefaultCompositionBackgroundColor() const { return def aultCompositionBackgroundColor; } 130 virtual Color platformDefaultCompositionBackgroundColor() const { return def aultCompositionBackgroundColor; }
131 virtual void platformColorsDidChange(); 131 virtual void platformColorsDidChange();
132 132
133 virtual double caretBlinkInterval() const { return 0.5; } 133 void setCaretBlinkInterval(double);
134 virtual double caretBlinkInterval() const;
134 135
135 // System fonts and colors for CSS. 136 // System fonts and colors for CSS.
136 virtual void systemFont(CSSValueID systemFontID, FontStyle&, FontWeight&, fl oat& fontSize, AtomicString& fontFamily) const = 0; 137 virtual void systemFont(CSSValueID systemFontID, FontStyle&, FontWeight&, fl oat& fontSize, AtomicString& fontFamily) const = 0;
137 void systemFont(CSSValueID systemFontID, FontDescription&); 138 void systemFont(CSSValueID systemFontID, FontDescription&);
138 virtual Color systemColor(CSSValueID) const; 139 virtual Color systemColor(CSSValueID) const;
139 140
140 // Whether the default system font should have its average character width 141 // Whether the default system font should have its average character width
141 // adjusted to match MS Shell Dlg. 142 // adjusted to match MS Shell Dlg.
142 virtual bool needsHackForTextControlWithFontFamily(const AtomicString&) cons t { return false; } 143 virtual bool needsHackForTextControlWithFontFamily(const AtomicString&) cons t { return false; }
143 144
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 static bool isSpinUpButtonPartHovered(const LayoutObject&); 236 static bool isSpinUpButtonPartHovered(const LayoutObject&);
236 static bool isReadOnlyControl(const LayoutObject&); 237 static bool isReadOnlyControl(const LayoutObject&);
237 238
238 private: 239 private:
239 // This function is to be implemented in your platform-specific theme implem entation to hand back the 240 // This function is to be implemented in your platform-specific theme implem entation to hand back the
240 // appropriate platform theme. 241 // appropriate platform theme.
241 static LayoutTheme& nativeTheme(); 242 static LayoutTheme& nativeTheme();
242 243
243 Color m_customFocusRingColor; 244 Color m_customFocusRingColor;
244 bool m_hasCustomFocusRingColor; 245 bool m_hasCustomFocusRingColor;
246 double m_caretBlinkInterval = 0.5;
245 247
246 // This color is expected to be drawn on a semi-transparent overlay, 248 // This color is expected to be drawn on a semi-transparent overlay,
247 // making it more transparent than its alpha value indicates. 249 // making it more transparent than its alpha value indicates.
248 static const RGBA32 defaultTapHighlightColor = 0x66000000; 250 static const RGBA32 defaultTapHighlightColor = 0x66000000;
249 251
250 static const RGBA32 defaultCompositionBackgroundColor = 0xFFFFDD55; 252 static const RGBA32 defaultCompositionBackgroundColor = 0xFFFFDD55;
251 253
252 Theme* m_platformTheme; // The platform-specific theme. 254 Theme* m_platformTheme; // The platform-specific theme.
253 }; 255 };
254 256
255 } // namespace blink 257 } // namespace blink
256 258
257 #endif // LayoutTheme_h 259 #endif // LayoutTheme_h
OLDNEW
« 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