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

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

Issue 2080623002: Revert "Remove OwnPtr from Blink." (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 12 matching lines...) Expand all
23 * DAMAGE. 23 * DAMAGE.
24 */ 24 */
25 25
26 #ifndef PlatformLocale_h 26 #ifndef PlatformLocale_h
27 #define PlatformLocale_h 27 #define PlatformLocale_h
28 28
29 #include "platform/DateComponents.h" 29 #include "platform/DateComponents.h"
30 #include "platform/Language.h" 30 #include "platform/Language.h"
31 #include "public/platform/WebLocalizedString.h" 31 #include "public/platform/WebLocalizedString.h"
32 #include "wtf/Allocator.h" 32 #include "wtf/Allocator.h"
33 #include "wtf/PassOwnPtr.h"
33 #include "wtf/text/WTFString.h" 34 #include "wtf/text/WTFString.h"
34 #include <memory>
35 35
36 namespace blink { 36 namespace blink {
37 37
38 class PLATFORM_EXPORT Locale { 38 class PLATFORM_EXPORT Locale {
39 WTF_MAKE_NONCOPYABLE(Locale); 39 WTF_MAKE_NONCOPYABLE(Locale);
40 USING_FAST_MALLOC(Locale); 40 USING_FAST_MALLOC(Locale);
41 public: 41 public:
42 static std::unique_ptr<Locale> create(const String& localeIdentifier); 42 static PassOwnPtr<Locale> create(const String& localeIdentifier);
43 static Locale& defaultLocale(); 43 static Locale& defaultLocale();
44 44
45 String queryString(WebLocalizedString::Name); 45 String queryString(WebLocalizedString::Name);
46 String queryString(WebLocalizedString::Name, const String& parameter); 46 String queryString(WebLocalizedString::Name, const String& parameter);
47 String queryString(WebLocalizedString::Name, const String& parameter1, const String& parameter2); 47 String queryString(WebLocalizedString::Name, const String& parameter1, const String& parameter2);
48 String validationMessageTooLongText(unsigned valueLength, int maxLength); 48 String validationMessageTooLongText(unsigned valueLength, int maxLength);
49 String validationMessageTooShortText(unsigned valueLength, int minLength); 49 String validationMessageTooShortText(unsigned valueLength, int minLength);
50 50
51 // Converts the specified number string to another number string localized 51 // Converts the specified number string to another number string localized
52 // for this Locale locale. The input string must conform to HTML 52 // for this Locale locale. The input string must conform to HTML
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 String m_positivePrefix; 165 String m_positivePrefix;
166 String m_positiveSuffix; 166 String m_positiveSuffix;
167 String m_negativePrefix; 167 String m_negativePrefix;
168 String m_negativeSuffix; 168 String m_negativeSuffix;
169 String m_acceptableNumberCharacters; 169 String m_acceptableNumberCharacters;
170 bool m_hasLocaleData; 170 bool m_hasLocaleData;
171 }; 171 };
172 172
173 } // namespace blink 173 } // namespace blink
174 #endif 174 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/text/LocaleWinTest.cpp ('k') | third_party/WebKit/Source/platform/text/PlatformLocale.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698