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

Unified Diff: Source/core/html/forms/WeekInputType.h

Issue 934163004: Modernize coding style in core/html/forms/. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/html/forms/URLInputType.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/forms/WeekInputType.h
diff --git a/Source/core/html/forms/WeekInputType.h b/Source/core/html/forms/WeekInputType.h
index ab954548a3cb291bafb28a3a96a53ea504928d49..32511ac1e8e065e285f08a748b9558cbc9ffe829 100644
--- a/Source/core/html/forms/WeekInputType.h
+++ b/Source/core/html/forms/WeekInputType.h
@@ -37,9 +37,9 @@
namespace blink {
#if ENABLE(INPUT_MULTIPLE_FIELDS_UI)
-typedef BaseMultipleFieldsDateAndTimeInputType BaseWeekInputType;
+using BaseWeekInputType = BaseMultipleFieldsDateAndTimeInputType;
#else
-typedef BaseChooserOnlyDateAndTimeInputType BaseWeekInputType;
+using BaseWeekInputType = BaseChooserOnlyDateAndTimeInputType;
#endif
class WeekInputType final : public BaseWeekInputType {
@@ -48,17 +48,17 @@ public:
private:
WeekInputType(HTMLInputElement& element) : BaseWeekInputType(element) { }
- virtual void countUsage() override;
- virtual const AtomicString& formControlType() const override;
- virtual StepRange createStepRange(AnyStepHandling) const override;
- virtual bool parseToDateComponentsInternal(const String&, DateComponents*) const override;
- virtual bool setMillisecondToDateComponents(double, DateComponents*) const override;
+ void countUsage() override;
+ const AtomicString& formControlType() const override;
+ StepRange createStepRange(AnyStepHandling) const override;
+ bool parseToDateComponentsInternal(const String&, DateComponents*) const override;
+ bool setMillisecondToDateComponents(double, DateComponents*) const override;
#if ENABLE(INPUT_MULTIPLE_FIELDS_UI)
// BaseMultipleFieldsDateAndTimeInputType functions
- virtual String formatDateTimeFieldsState(const DateTimeFieldsState&) const override;
- virtual void setupLayoutParameters(DateTimeEditElement::LayoutParameters&, const DateComponents&) const override;
- virtual bool isValidFormat(bool hasYear, bool hasMonth, bool hasWeek, bool hasDay, bool hasAMPM, bool hasHour, bool hasMinute, bool hasSecond) const override;
+ String formatDateTimeFieldsState(const DateTimeFieldsState&) const override;
+ void setupLayoutParameters(DateTimeEditElement::LayoutParameters&, const DateComponents&) const override;
+ bool isValidFormat(bool hasYear, bool hasMonth, bool hasWeek, bool hasDay, bool hasAMPM, bool hasHour, bool hasMinute, bool hasSecond) const override;
#endif
};
« no previous file with comments | « Source/core/html/forms/URLInputType.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698