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

Side by Side Diff: Source/core/rendering/RenderTheme.cpp

Issue 14280004: Revert removal of events (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/rendering/RenderTheme.h ('k') | Source/core/rendering/RenderThemeChromiumAndroid.h » ('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 1140 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderTheme.h ('k') | Source/core/rendering/RenderThemeChromiumAndroid.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698