OLD | NEW |
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 1140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1151 Color RenderTheme::platformActiveTextSearchHighlightColor() const | 1151 Color RenderTheme::platformActiveTextSearchHighlightColor() const |
1152 { | 1152 { |
1153 return Color(255, 150, 50); // Orange. | 1153 return Color(255, 150, 50); // Orange. |
1154 } | 1154 } |
1155 | 1155 |
1156 Color RenderTheme::platformInactiveTextSearchHighlightColor() const | 1156 Color RenderTheme::platformInactiveTextSearchHighlightColor() const |
1157 { | 1157 { |
1158 return Color(255, 255, 0); // Yellow. | 1158 return Color(255, 255, 0); // Yellow. |
1159 } | 1159 } |
1160 | 1160 |
| 1161 #if ENABLE(TOUCH_EVENTS) |
1161 Color RenderTheme::tapHighlightColor() | 1162 Color RenderTheme::tapHighlightColor() |
1162 { | 1163 { |
1163 return defaultTheme()->platformTapHighlightColor(); | 1164 return defaultTheme()->platformTapHighlightColor(); |
1164 } | 1165 } |
| 1166 #endif |
1165 | 1167 |
1166 // Value chosen by observation. This can be tweaked. | 1168 // Value chosen by observation. This can be tweaked. |
1167 static const int minColorContrastValue = 1300; | 1169 static const int minColorContrastValue = 1300; |
1168 // For transparent or translucent background color, use lightening. | 1170 // For transparent or translucent background color, use lightening. |
1169 static const int minDisabledColorAlphaValue = 128; | 1171 static const int minDisabledColorAlphaValue = 128; |
1170 | 1172 |
1171 Color RenderTheme::disabledTextColor(const Color& textColor, const Color& backgr
oundColor) const | 1173 Color RenderTheme::disabledTextColor(const Color& textColor, const Color& backgr
oundColor) const |
1172 { | 1174 { |
1173 // The explicit check for black is an optimization for the 99% case (black o
n white). | 1175 // The explicit check for black is an optimization for the 99% case (black o
n white). |
1174 // This also means that black on black will turn into grey on black when dis
abled. | 1176 // This also means that black on black will turn into grey on black when dis
abled. |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1219 | 1221 |
1220 return StringTruncator::centerTruncate(string, width, font, StringTruncator:
:EnableRoundingHacks); | 1222 return StringTruncator::centerTruncate(string, width, font, StringTruncator:
:EnableRoundingHacks); |
1221 } | 1223 } |
1222 | 1224 |
1223 bool RenderTheme::shouldOpenPickerWithF4Key() const | 1225 bool RenderTheme::shouldOpenPickerWithF4Key() const |
1224 { | 1226 { |
1225 return false; | 1227 return false; |
1226 } | 1228 } |
1227 | 1229 |
1228 } // namespace WebCore | 1230 } // namespace WebCore |
OLD | NEW |