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

Unified Diff: Source/core/platform/graphics/Color.h

Issue 14098003: Change the caret color according to the lightness of the background color. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: updated patch Created 7 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: Source/core/platform/graphics/Color.h
diff --git a/Source/core/platform/graphics/Color.h b/Source/core/platform/graphics/Color.h
index 87530607801f840b0c3919ff7bf76a37ccaee959..f0ed2a41a355650319260a4ced679b5764d8aa0c 100644
--- a/Source/core/platform/graphics/Color.h
+++ b/Source/core/platform/graphics/Color.h
@@ -103,6 +103,8 @@ public:
void getRGBA(double& r, double& g, double& b, double& a) const;
void getHSL(double& h, double& s, double& l) const;
+ double lightness() const;
+
Color light() const;
Color dark() const;

Powered by Google App Engine
This is Rietveld 408576698