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

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutTheme.h

Issue 2932913002: Move spellcheck underline colors into LayoutTheme (Closed)
Patch Set: Fix Mac build Created 3 years, 6 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/LayoutTheme.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 InactiveSelectionBackgroundColor() const; 123 Color InactiveSelectionBackgroundColor() const;
124 Color ActiveSelectionForegroundColor() const; 124 Color ActiveSelectionForegroundColor() const;
125 Color InactiveSelectionForegroundColor() const; 125 Color InactiveSelectionForegroundColor() const;
126 126
127 // List box selection colors 127 // List box selection colors
128 Color ActiveListBoxSelectionBackgroundColor() const; 128 Color ActiveListBoxSelectionBackgroundColor() const;
129 Color ActiveListBoxSelectionForegroundColor() const; 129 Color ActiveListBoxSelectionForegroundColor() const;
130 Color InactiveListBoxSelectionBackgroundColor() const; 130 Color InactiveListBoxSelectionBackgroundColor() const;
131 Color InactiveListBoxSelectionForegroundColor() const; 131 Color InactiveListBoxSelectionForegroundColor() const;
132 132
133 // Underline colors for spelling and grammar markers.
chrishtr 2017/06/10 00:45:56 I think this comment is redundant, you can just re
134 Color SpellingMarkerUnderlineColor() const;
135 Color GrammarMarkerUnderlineColor() const;
chrishtr 2017/06/10 00:45:56 What's the point of having these extra methods?
rlanday 2017/06/10 16:34:03 I'm not sure, I was just copying how the existing
136
133 // Highlight and text colors for TextMatches. 137 // Highlight and text colors for TextMatches.
134 Color PlatformTextSearchHighlightColor(bool active_match) const; 138 Color PlatformTextSearchHighlightColor(bool active_match) const;
135 Color PlatformTextSearchColor(bool active_match) const; 139 Color PlatformTextSearchColor(bool active_match) const;
136 140
137 Color FocusRingColor() const; 141 Color FocusRingColor() const;
138 virtual Color PlatformFocusRingColor() const { return Color(0, 0, 0); } 142 virtual Color PlatformFocusRingColor() const { return Color(0, 0, 0); }
139 void SetCustomFocusRingColor(const Color&); 143 void SetCustomFocusRingColor(const Color&);
140 static Color TapHighlightColor(); 144 static Color TapHighlightColor();
141 virtual Color PlatformTapHighlightColor() const { 145 virtual Color PlatformTapHighlightColor() const {
142 return LayoutTheme::kDefaultTapHighlightColor; 146 return LayoutTheme::kDefaultTapHighlightColor;
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 virtual Color PlatformActiveSelectionBackgroundColor() const; 235 virtual Color PlatformActiveSelectionBackgroundColor() const;
232 virtual Color PlatformInactiveSelectionBackgroundColor() const; 236 virtual Color PlatformInactiveSelectionBackgroundColor() const;
233 virtual Color PlatformActiveSelectionForegroundColor() const; 237 virtual Color PlatformActiveSelectionForegroundColor() const;
234 virtual Color PlatformInactiveSelectionForegroundColor() const; 238 virtual Color PlatformInactiveSelectionForegroundColor() const;
235 239
236 virtual Color PlatformActiveListBoxSelectionBackgroundColor() const; 240 virtual Color PlatformActiveListBoxSelectionBackgroundColor() const;
237 virtual Color PlatformInactiveListBoxSelectionBackgroundColor() const; 241 virtual Color PlatformInactiveListBoxSelectionBackgroundColor() const;
238 virtual Color PlatformActiveListBoxSelectionForegroundColor() const; 242 virtual Color PlatformActiveListBoxSelectionForegroundColor() const;
239 virtual Color PlatformInactiveListBoxSelectionForegroundColor() const; 243 virtual Color PlatformInactiveListBoxSelectionForegroundColor() const;
240 244
245 virtual Color PlatformSpellingMarkerUnderlineColor() const;
246 virtual Color PlatformGrammarMarkerUnderlineColor() const;
247
241 virtual bool ThemeDrawsFocusRing(const ComputedStyle&) const = 0; 248 virtual bool ThemeDrawsFocusRing(const ComputedStyle&) const = 0;
242 249
243 // Methods for each appearance value. 250 // Methods for each appearance value.
244 virtual void AdjustCheckboxStyle(ComputedStyle&) const; 251 virtual void AdjustCheckboxStyle(ComputedStyle&) const;
245 virtual void SetCheckboxSize(ComputedStyle&) const {} 252 virtual void SetCheckboxSize(ComputedStyle&) const {}
246 253
247 virtual void AdjustRadioStyle(ComputedStyle&) const; 254 virtual void AdjustRadioStyle(ComputedStyle&) const;
248 virtual void SetRadioSize(ComputedStyle&) const {} 255 virtual void SetRadioSize(ComputedStyle&) const {}
249 256
250 virtual void AdjustButtonStyle(ComputedStyle&) const; 257 virtual void AdjustButtonStyle(ComputedStyle&) const;
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
290 static const RGBA32 kDefaultTapHighlightColor = 0x66000000; 297 static const RGBA32 kDefaultTapHighlightColor = 0x66000000;
291 298
292 static const RGBA32 kDefaultCompositionBackgroundColor = 0xFFFFDD55; 299 static const RGBA32 kDefaultCompositionBackgroundColor = 0xFFFFDD55;
293 300
294 Theme* platform_theme_; // The platform-specific theme. 301 Theme* platform_theme_; // The platform-specific theme.
295 }; 302 };
296 303
297 } // namespace blink 304 } // namespace blink
298 305
299 #endif // LayoutTheme_h 306 #endif // LayoutTheme_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/LayoutTheme.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698