OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef ColorPropertyFunctions_h | 5 #ifndef ColorPropertyFunctions_h |
6 #define ColorPropertyFunctions_h | 6 #define ColorPropertyFunctions_h |
7 | 7 |
8 #include "core/CSSPropertyNames.h" | 8 #include "core/CSSPropertyNames.h" |
9 #include "core/css/StyleColor.h" | 9 #include "core/css/StyleColor.h" |
10 | 10 |
11 namespace blink { | 11 namespace blink { |
12 | 12 |
13 class ComputedStyle; | 13 class ComputedStyle; |
14 | 14 |
15 class ColorPropertyFunctions { | 15 class ColorPropertyFunctions { |
16 public: | 16 public: |
17 static StyleColor getInitialColor(CSSPropertyID); | 17 static bool getInitialColor(CSSPropertyID, StyleColor& initialColor); |
18 static StyleColor getUnvisitedColor(CSSPropertyID, const ComputedStyle&); | 18 static StyleColor getUnvisitedColor(CSSPropertyID, const ComputedStyle&); |
19 static StyleColor getVisitedColor(CSSPropertyID, const ComputedStyle&); | 19 static StyleColor getVisitedColor(CSSPropertyID, const ComputedStyle&); |
20 static void setUnvisitedColor(CSSPropertyID, ComputedStyle&, const Color&); | 20 static void setUnvisitedColor(CSSPropertyID, ComputedStyle&, const Color&); |
21 static void setVisitedColor(CSSPropertyID, ComputedStyle&, const Color&); | 21 static void setVisitedColor(CSSPropertyID, ComputedStyle&, const Color&); |
22 }; | 22 }; |
23 | 23 |
24 } // namespace blink | 24 } // namespace blink |
25 | 25 |
26 #endif // ColorPropertyFunctions_h | 26 #endif // ColorPropertyFunctions_h |
OLD | NEW |