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

Side by Side Diff: Source/platform/text/PlatformLocale.h

Issue 435753003: Implement minlength for <input> and <textarea>. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add layout tests for minlength & maxlength together; fix comments 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 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 26 matching lines...) Expand all
37 class PLATFORM_EXPORT Locale { 37 class PLATFORM_EXPORT Locale {
38 WTF_MAKE_NONCOPYABLE(Locale); 38 WTF_MAKE_NONCOPYABLE(Locale);
39 public: 39 public:
40 static PassOwnPtr<Locale> create(const String& localeIdentifier); 40 static PassOwnPtr<Locale> create(const String& localeIdentifier);
41 static Locale& defaultLocale(); 41 static Locale& defaultLocale();
42 42
43 String queryString(blink::WebLocalizedString::Name); 43 String queryString(blink::WebLocalizedString::Name);
44 String queryString(blink::WebLocalizedString::Name, const String& parameter) ; 44 String queryString(blink::WebLocalizedString::Name, const String& parameter) ;
45 String queryString(blink::WebLocalizedString::Name, const String& parameter1 , const String& parameter2); 45 String queryString(blink::WebLocalizedString::Name, const String& parameter1 , const String& parameter2);
46 String validationMessageTooLongText(unsigned valueLength, int maxLength); 46 String validationMessageTooLongText(unsigned valueLength, int maxLength);
47 String validationMessageTooShortText(unsigned valueLength, int minLength);
47 48
48 // Converts the specified number string to another number string localized 49 // Converts the specified number string to another number string localized
49 // for this Locale locale. The input string must conform to HTML 50 // for this Locale locale. The input string must conform to HTML
50 // floating-point numbers, and is not empty. 51 // floating-point numbers, and is not empty.
51 String convertToLocalizedNumber(const String&); 52 String convertToLocalizedNumber(const String&);
52 53
53 // Converts the specified localized number string to a number string in the 54 // Converts the specified localized number string to a number string in the
54 // HTML floating-point number format. The input string is provided by a end 55 // HTML floating-point number format. The input string is provided by a end
55 // user, and might not be a number string. It's ok that the function returns 56 // user, and might not be a number string. It's ok that the function returns
56 // a string which is not conforms to the HTML floating-point number format, 57 // a string which is not conforms to the HTML floating-point number format,
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 String m_decimalSymbols[DecimalSymbolsSize]; 160 String m_decimalSymbols[DecimalSymbolsSize];
160 String m_positivePrefix; 161 String m_positivePrefix;
161 String m_positiveSuffix; 162 String m_positiveSuffix;
162 String m_negativePrefix; 163 String m_negativePrefix;
163 String m_negativeSuffix; 164 String m_negativeSuffix;
164 bool m_hasLocaleData; 165 bool m_hasLocaleData;
165 }; 166 };
166 167
167 } 168 }
168 #endif 169 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698