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

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

Issue 1213003004: Fix virtual/override/final usage in Source/platform/. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 5 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/platform/text/LineEnding.cpp ('k') | Source/platform/text/LocaleMac.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) 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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 29 matching lines...) Expand all
40 #include "wtf/text/CString.h" 40 #include "wtf/text/CString.h"
41 #include "wtf/text/WTFString.h" 41 #include "wtf/text/WTFString.h"
42 42
43 namespace blink { 43 namespace blink {
44 44
45 // We should use this class only for LocalizedNumberICU.cpp, LocalizedDateICU.cp p, 45 // We should use this class only for LocalizedNumberICU.cpp, LocalizedDateICU.cp p,
46 // and LocalizedNumberICUTest.cpp. 46 // and LocalizedNumberICUTest.cpp.
47 class PLATFORM_EXPORT LocaleICU : public Locale { 47 class PLATFORM_EXPORT LocaleICU : public Locale {
48 public: 48 public:
49 static PassOwnPtr<LocaleICU> create(const char* localeString); 49 static PassOwnPtr<LocaleICU> create(const char* localeString);
50 virtual ~LocaleICU(); 50 ~LocaleICU() override;
51 51
52 virtual const Vector<String>& weekDayShortLabels() override; 52 const Vector<String>& weekDayShortLabels() override;
53 virtual unsigned firstDayOfWeek() override; 53 unsigned firstDayOfWeek() override;
54 virtual bool isRTL() override; 54 bool isRTL() override;
55 virtual String dateFormat() override; 55 String dateFormat() override;
56 virtual String monthFormat() override; 56 String monthFormat() override;
57 virtual String shortMonthFormat() override; 57 String shortMonthFormat() override;
58 virtual String timeFormat() override; 58 String timeFormat() override;
59 virtual String shortTimeFormat() override; 59 String shortTimeFormat() override;
60 virtual String dateTimeFormatWithSeconds() override; 60 String dateTimeFormatWithSeconds() override;
61 virtual String dateTimeFormatWithoutSeconds() override; 61 String dateTimeFormatWithoutSeconds() override;
62 virtual const Vector<String>& monthLabels() override; 62 const Vector<String>& monthLabels() override;
63 virtual const Vector<String>& shortMonthLabels() override; 63 const Vector<String>& shortMonthLabels() override;
64 virtual const Vector<String>& standAloneMonthLabels() override; 64 const Vector<String>& standAloneMonthLabels() override;
65 virtual const Vector<String>& shortStandAloneMonthLabels() override; 65 const Vector<String>& shortStandAloneMonthLabels() override;
66 virtual const Vector<String>& timeAMPMLabels() override; 66 const Vector<String>& timeAMPMLabels() override;
67 67
68 private: 68 private:
69 explicit LocaleICU(const char*); 69 explicit LocaleICU(const char*);
70 String decimalSymbol(UNumberFormatSymbol); 70 String decimalSymbol(UNumberFormatSymbol);
71 String decimalTextAttribute(UNumberFormatTextAttribute); 71 String decimalTextAttribute(UNumberFormatTextAttribute);
72 virtual void initializeLocaleData() override; 72 void initializeLocaleData() override;
73 73
74 bool detectSignAndGetDigitRange(const String& input, bool& isNegative, unsig ned& startIndex, unsigned& endIndex); 74 bool detectSignAndGetDigitRange(const String& input, bool& isNegative, unsig ned& startIndex, unsigned& endIndex);
75 unsigned matchedDecimalSymbolIndex(const String& input, unsigned& position); 75 unsigned matchedDecimalSymbolIndex(const String& input, unsigned& position);
76 76
77 bool initializeShortDateFormat(); 77 bool initializeShortDateFormat();
78 UDateFormat* openDateFormat(UDateFormatStyle timeStyle, UDateFormatStyle dat eStyle) const; 78 UDateFormat* openDateFormat(UDateFormatStyle timeStyle, UDateFormatStyle dat eStyle) const;
79 UDateFormat* openDateFormatForStandAloneMonthLabels(bool isShort) const; 79 UDateFormat* openDateFormatForStandAloneMonthLabels(bool isShort) const;
80 80
81 void initializeCalendar(); 81 void initializeCalendar();
82 82
(...skipping 20 matching lines...) Expand all
103 UDateFormat* m_shortTimeFormat; 103 UDateFormat* m_shortTimeFormat;
104 Vector<String> m_shortMonthLabels; 104 Vector<String> m_shortMonthLabels;
105 Vector<String> m_standAloneMonthLabels; 105 Vector<String> m_standAloneMonthLabels;
106 Vector<String> m_shortStandAloneMonthLabels; 106 Vector<String> m_shortStandAloneMonthLabels;
107 Vector<String> m_timeAMPMLabels; 107 Vector<String> m_timeAMPMLabels;
108 bool m_didCreateTimeFormat; 108 bool m_didCreateTimeFormat;
109 }; 109 };
110 110
111 } // namespace blink 111 } // namespace blink
112 #endif 112 #endif
OLDNEW
« no previous file with comments | « Source/platform/text/LineEnding.cpp ('k') | Source/platform/text/LocaleMac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698