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

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

Issue 181013012: Remove RenderTheme::supportsDataListUI. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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') | no next file » | 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 1100 matching lines...) Expand 10 before | Expand all | Expand 10 after
1111 } 1111 }
1112 1112
1113 return StringTruncator::centerTruncate(string, width, font, StringTruncator: :EnableRoundingHacks); 1113 return StringTruncator::centerTruncate(string, width, font, StringTruncator: :EnableRoundingHacks);
1114 } 1114 }
1115 1115
1116 bool RenderTheme::shouldOpenPickerWithF4Key() const 1116 bool RenderTheme::shouldOpenPickerWithF4Key() const
1117 { 1117 {
1118 return false; 1118 return false;
1119 } 1119 }
1120 1120
1121 bool RenderTheme::supportsDataListUI(const AtomicString& type) const
1122 {
1123 return type == InputTypeNames::text || type == InputTypeNames::search || typ e == InputTypeNames::url
1124 || type == InputTypeNames::tel || type == InputTypeNames::email || type == InputTypeNames::number
1125 || type == InputTypeNames::color
1126 || type == InputTypeNames::date
1127 || type == InputTypeNames::datetime
1128 || type == InputTypeNames::datetime_local
1129 || type == InputTypeNames::month
1130 || type == InputTypeNames::week
1131 || type == InputTypeNames::time
1132 || type == InputTypeNames::range;
1133 }
1134
1135 #if ENABLE(INPUT_MULTIPLE_FIELDS_UI) 1121 #if ENABLE(INPUT_MULTIPLE_FIELDS_UI)
1136 bool RenderTheme::supportsCalendarPicker(const AtomicString& type) const 1122 bool RenderTheme::supportsCalendarPicker(const AtomicString& type) const
1137 { 1123 {
1138 return type == InputTypeNames::date 1124 return type == InputTypeNames::date
1139 || type == InputTypeNames::datetime 1125 || type == InputTypeNames::datetime
1140 || type == InputTypeNames::datetime_local 1126 || type == InputTypeNames::datetime_local
1141 || type == InputTypeNames::month 1127 || type == InputTypeNames::month
1142 || type == InputTypeNames::week; 1128 || type == InputTypeNames::week;
1143 } 1129 }
1144 #endif 1130 #endif
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
1262 1248
1263 // padding - not honored by WinIE, needs to be removed. 1249 // padding - not honored by WinIE, needs to be removed.
1264 style->resetPadding(); 1250 style->resetPadding();
1265 1251
1266 // border - honored by WinIE, but looks terrible (just paints in the control box and turns off the Windows XP theme) 1252 // border - honored by WinIE, but looks terrible (just paints in the control box and turns off the Windows XP theme)
1267 // for now, we will not honor it. 1253 // for now, we will not honor it.
1268 style->resetBorder(); 1254 style->resetBorder();
1269 } 1255 }
1270 1256
1271 } // namespace WebCore 1257 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderTheme.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698