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

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

Issue 14096013: Implement select element list box with shadow DOM. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@shadowselect
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
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 1072 matching lines...) Expand 10 before | Expand all | Expand 10 after
1083 Page::scheduleForcedStyleRecalcForAllPages(); 1083 Page::scheduleForcedStyleRecalcForAllPages();
1084 } 1084 }
1085 1085
1086 Color RenderTheme::systemColor(int cssValueId) const 1086 Color RenderTheme::systemColor(int cssValueId) const
1087 { 1087 {
1088 switch (cssValueId) { 1088 switch (cssValueId) {
1089 case CSSValueActiveborder: 1089 case CSSValueActiveborder:
1090 return 0xFFFFFFFF; 1090 return 0xFFFFFFFF;
1091 case CSSValueActivecaption: 1091 case CSSValueActivecaption:
1092 return 0xFFCCCCCC; 1092 return 0xFFCCCCCC;
1093 case CSSValueActivelistboxselection:
1094 return activeListBoxSelectionBackgroundColor();
1095 case CSSValueActivelistboxselectiontext:
1096 return activeListBoxSelectionForegroundColor();
1093 case CSSValueAppworkspace: 1097 case CSSValueAppworkspace:
1094 return 0xFFFFFFFF; 1098 return 0xFFFFFFFF;
1095 case CSSValueBackground: 1099 case CSSValueBackground:
1096 return 0xFF6363CE; 1100 return 0xFF6363CE;
1097 case CSSValueButtonface: 1101 case CSSValueButtonface:
1098 return 0xFFC0C0C0; 1102 return 0xFFC0C0C0;
1099 case CSSValueButtonhighlight: 1103 case CSSValueButtonhighlight:
1100 return 0xFFDDDDDD; 1104 return 0xFFDDDDDD;
1101 case CSSValueButtonshadow: 1105 case CSSValueButtonshadow:
1102 return 0xFF888888; 1106 return 0xFF888888;
1103 case CSSValueButtontext: 1107 case CSSValueButtontext:
1104 return 0xFF000000; 1108 return 0xFF000000;
1105 case CSSValueCaptiontext: 1109 case CSSValueCaptiontext:
1106 return 0xFF000000; 1110 return 0xFF000000;
1107 case CSSValueGraytext: 1111 case CSSValueGraytext:
1108 return 0xFF808080; 1112 return 0xFF808080;
1109 case CSSValueHighlight: 1113 case CSSValueHighlight:
1110 return 0xFFB5D5FF; 1114 return 0xFFB5D5FF;
1111 case CSSValueHighlighttext: 1115 case CSSValueHighlighttext:
1112 return 0xFF000000; 1116 return 0xFF000000;
1113 case CSSValueInactiveborder: 1117 case CSSValueInactiveborder:
1114 return 0xFFFFFFFF; 1118 return 0xFFFFFFFF;
1115 case CSSValueInactivecaption: 1119 case CSSValueInactivecaption:
1116 return 0xFFFFFFFF; 1120 return 0xFFFFFFFF;
1117 case CSSValueInactivecaptiontext: 1121 case CSSValueInactivecaptiontext:
1118 return 0xFF7F7F7F; 1122 return 0xFF7F7F7F;
1123 case CSSValueInactivelistboxselection:
1124 return inactiveListBoxSelectionBackgroundColor();
1125 case CSSValueInactivelistboxselectiontext:
1126 return inactiveListBoxSelectionForegroundColor();
1119 case CSSValueInfobackground: 1127 case CSSValueInfobackground:
1120 return 0xFFFBFCC5; 1128 return 0xFFFBFCC5;
1121 case CSSValueInfotext: 1129 case CSSValueInfotext:
1122 return 0xFF000000; 1130 return 0xFF000000;
1123 case CSSValueMenu: 1131 case CSSValueMenu:
1124 return 0xFFC0C0C0; 1132 return 0xFFC0C0C0;
1125 case CSSValueMenutext: 1133 case CSSValueMenutext:
1126 return 0xFF000000; 1134 return 0xFF000000;
1127 case CSSValueScrollbar: 1135 case CSSValueScrollbar:
1128 return 0xFFFFFFFF; 1136 return 0xFFFFFFFF;
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
1221 1229
1222 return StringTruncator::centerTruncate(string, width, font, StringTruncator: :EnableRoundingHacks); 1230 return StringTruncator::centerTruncate(string, width, font, StringTruncator: :EnableRoundingHacks);
1223 } 1231 }
1224 1232
1225 bool RenderTheme::shouldOpenPickerWithF4Key() const 1233 bool RenderTheme::shouldOpenPickerWithF4Key() const
1226 { 1234 {
1227 return false; 1235 return false;
1228 } 1236 }
1229 1237
1230 } // namespace WebCore 1238 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698