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

Side by Side Diff: Source/core/html/forms/NumberInputType.cpp

Issue 926113005: Remove InputType::shouldRespectSpeechAttribute (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 10 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
« no previous file with comments | « Source/core/html/forms/NumberInputType.h ('k') | Source/core/html/forms/PasswordInputType.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 * Copyright (C) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 Google Inc. All rights reserved.
3 * Copyright (C) 2011 Apple Inc. All rights reserved. 3 * Copyright (C) 2011 Apple Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after
249 String NumberInputType::rangeOverflowText(const Decimal& maximum) const 249 String NumberInputType::rangeOverflowText(const Decimal& maximum) const
250 { 250 {
251 return locale().queryString(WebLocalizedString::ValidationRangeOverflow, loc alizeValue(serialize(maximum))); 251 return locale().queryString(WebLocalizedString::ValidationRangeOverflow, loc alizeValue(serialize(maximum)));
252 } 252 }
253 253
254 String NumberInputType::rangeUnderflowText(const Decimal& minimum) const 254 String NumberInputType::rangeUnderflowText(const Decimal& minimum) const
255 { 255 {
256 return locale().queryString(WebLocalizedString::ValidationRangeUnderflow, lo calizeValue(serialize(minimum))); 256 return locale().queryString(WebLocalizedString::ValidationRangeUnderflow, lo calizeValue(serialize(minimum)));
257 } 257 }
258 258
259 bool NumberInputType::shouldRespectSpeechAttribute()
260 {
261 return true;
262 }
263
264 bool NumberInputType::supportsPlaceholder() const 259 bool NumberInputType::supportsPlaceholder() const
265 { 260 {
266 return true; 261 return true;
267 } 262 }
268 263
269 void NumberInputType::minOrMaxAttributeChanged() 264 void NumberInputType::minOrMaxAttributeChanged()
270 { 265 {
271 InputType::minOrMaxAttributeChanged(); 266 InputType::minOrMaxAttributeChanged();
272 267
273 if (element().renderer()) 268 if (element().renderer())
274 element().renderer()->setNeedsLayoutAndPrefWidthsRecalcAndFullPaintInval idation(); 269 element().renderer()->setNeedsLayoutAndPrefWidthsRecalcAndFullPaintInval idation();
275 } 270 }
276 271
277 void NumberInputType::stepAttributeChanged() 272 void NumberInputType::stepAttributeChanged()
278 { 273 {
279 InputType::stepAttributeChanged(); 274 InputType::stepAttributeChanged();
280 275
281 if (element().renderer()) 276 if (element().renderer())
282 element().renderer()->setNeedsLayoutAndPrefWidthsRecalcAndFullPaintInval idation(); 277 element().renderer()->setNeedsLayoutAndPrefWidthsRecalcAndFullPaintInval idation();
283 } 278 }
284 279
285 bool NumberInputType::supportsSelectionAPI() const 280 bool NumberInputType::supportsSelectionAPI() const
286 { 281 {
287 return false; 282 return false;
288 } 283 }
289 284
290 } // namespace blink 285 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/html/forms/NumberInputType.h ('k') | Source/core/html/forms/PasswordInputType.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698