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

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

Issue 2801483002: Add DocumentMarker::MatchStatus enum for text match markers (Closed)
Patch Set: Use string in JavaScript API Created 3 years, 8 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
Index: third_party/WebKit/Source/core/layout/LayoutTheme.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutTheme.cpp b/third_party/WebKit/Source/core/layout/LayoutTheme.cpp
index 149cb93de6d81c71d3af06833ce034636d9e96f8..0206c5948893189a4ab6a3be74652606d2e0e9cf 100644
--- a/third_party/WebKit/Source/core/layout/LayoutTheme.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutTheme.cpp
@@ -790,13 +790,15 @@ Color LayoutTheme::systemColor(CSSValueID cssValueId) const {
return Color();
}
-Color LayoutTheme::platformTextSearchHighlightColor(bool activeMatch) const {
- if (activeMatch)
+Color LayoutTheme::platformTextSearchHighlightColor(
+ DocumentMarker::MatchStatus activeMatch) const {
+ if (activeMatch == DocumentMarker::MatchStatus::Active)
return Color(255, 150, 50); // Orange.
return Color(255, 255, 0); // Yellow.
}
-Color LayoutTheme::platformTextSearchColor(bool activeMatch) const {
+Color LayoutTheme::platformTextSearchColor(
+ DocumentMarker::MatchStatus activeMatch) const {
return Color::black;
}

Powered by Google App Engine
This is Rietveld 408576698