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

Side by Side Diff: content/child/blink_platform_impl.cc

Issue 630793002: Add ValidationTooShort localized sring, in preparation for a message displayed when a form input co… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/child/blink_platform_impl.h" 5 #include "content/child/blink_platform_impl.h"
6 6
7 #include <math.h> 7 #include <math.h>
8 8
9 #include <vector> 9 #include <vector>
10 10
(...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after
362 case WebLocalizedString::ValidationRangeUnderflow: 362 case WebLocalizedString::ValidationRangeUnderflow:
363 return IDS_FORM_VALIDATION_RANGE_UNDERFLOW; 363 return IDS_FORM_VALIDATION_RANGE_UNDERFLOW;
364 case WebLocalizedString::ValidationRangeUnderflowDateTime: 364 case WebLocalizedString::ValidationRangeUnderflowDateTime:
365 return IDS_FORM_VALIDATION_RANGE_UNDERFLOW_DATETIME; 365 return IDS_FORM_VALIDATION_RANGE_UNDERFLOW_DATETIME;
366 case WebLocalizedString::ValidationStepMismatch: 366 case WebLocalizedString::ValidationStepMismatch:
367 return IDS_FORM_VALIDATION_STEP_MISMATCH; 367 return IDS_FORM_VALIDATION_STEP_MISMATCH;
368 case WebLocalizedString::ValidationStepMismatchCloseToLimit: 368 case WebLocalizedString::ValidationStepMismatchCloseToLimit:
369 return IDS_FORM_VALIDATION_STEP_MISMATCH_CLOSE_TO_LIMIT; 369 return IDS_FORM_VALIDATION_STEP_MISMATCH_CLOSE_TO_LIMIT;
370 case WebLocalizedString::ValidationTooLong: 370 case WebLocalizedString::ValidationTooLong:
371 return IDS_FORM_VALIDATION_TOO_LONG; 371 return IDS_FORM_VALIDATION_TOO_LONG;
372 case WebLocalizedString::ValidationTooShort:
373 return IDS_FORM_VALIDATION_TOO_SHORT;
372 case WebLocalizedString::ValidationTypeMismatch: 374 case WebLocalizedString::ValidationTypeMismatch:
373 return IDS_FORM_VALIDATION_TYPE_MISMATCH; 375 return IDS_FORM_VALIDATION_TYPE_MISMATCH;
374 case WebLocalizedString::ValidationTypeMismatchForEmail: 376 case WebLocalizedString::ValidationTypeMismatchForEmail:
375 return IDS_FORM_VALIDATION_TYPE_MISMATCH_EMAIL; 377 return IDS_FORM_VALIDATION_TYPE_MISMATCH_EMAIL;
376 case WebLocalizedString::ValidationTypeMismatchForEmailEmpty: 378 case WebLocalizedString::ValidationTypeMismatchForEmailEmpty:
377 return IDS_FORM_VALIDATION_TYPE_MISMATCH_EMAIL_EMPTY; 379 return IDS_FORM_VALIDATION_TYPE_MISMATCH_EMAIL_EMPTY;
378 case WebLocalizedString::ValidationTypeMismatchForEmailEmptyDomain: 380 case WebLocalizedString::ValidationTypeMismatchForEmailEmptyDomain:
379 return IDS_FORM_VALIDATION_TYPE_MISMATCH_EMAIL_EMPTY_DOMAIN; 381 return IDS_FORM_VALIDATION_TYPE_MISMATCH_EMAIL_EMPTY_DOMAIN;
380 case WebLocalizedString::ValidationTypeMismatchForEmailEmptyLocal: 382 case WebLocalizedString::ValidationTypeMismatchForEmailEmptyLocal:
381 return IDS_FORM_VALIDATION_TYPE_MISMATCH_EMAIL_EMPTY_LOCAL; 383 return IDS_FORM_VALIDATION_TYPE_MISMATCH_EMAIL_EMPTY_LOCAL;
(...skipping 826 matching lines...) Expand 10 before | Expand all | Expand 10 after
1208 } 1210 }
1209 1211
1210 // static 1212 // static
1211 void BlinkPlatformImpl::DestroyCurrentThread(void* thread) { 1213 void BlinkPlatformImpl::DestroyCurrentThread(void* thread) {
1212 WebThreadImplForMessageLoop* impl = 1214 WebThreadImplForMessageLoop* impl =
1213 static_cast<WebThreadImplForMessageLoop*>(thread); 1215 static_cast<WebThreadImplForMessageLoop*>(thread);
1214 delete impl; 1216 delete impl;
1215 } 1217 }
1216 1218
1217 } // namespace content 1219 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698