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

Unified Diff: third_party/WebKit/Source/core/html/forms/BaseDateAndTimeInputType.cpp

Issue 1896073002: Make BaseChooserOnlyDateAndTimeInputType a subclass of InputTypeView. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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
Index: third_party/WebKit/Source/core/html/forms/BaseDateAndTimeInputType.cpp
diff --git a/third_party/WebKit/Source/core/html/forms/BaseDateAndTimeInputType.cpp b/third_party/WebKit/Source/core/html/forms/BaseDateAndTimeInputType.cpp
index 7461c29b24e89a859ec590914bccb1f2185fba41..136f2de1293bc28e40ee1f8e0ff362186b563aeb 100644
--- a/third_party/WebKit/Source/core/html/forms/BaseDateAndTimeInputType.cpp
+++ b/third_party/WebKit/Source/core/html/forms/BaseDateAndTimeInputType.cpp
@@ -31,6 +31,7 @@
#include "core/html/forms/BaseDateAndTimeInputType.h"
#include "core/html/HTMLInputElement.h"
+#include "core/html/forms/BaseChooserOnlyDateAndTimeInputType.h"
#include "platform/text/PlatformLocale.h"
#include "wtf/CurrentTime.h"
#include "wtf/DateMath.h"
@@ -48,9 +49,9 @@ static const int msecPerSecond = 1000;
InputTypeView* BaseDateAndTimeInputType::createView()
{
- // TODO(tkent): Returns ChooserOnlyDateAndTimeInputTypeView or
- // MultipleFieldsDateAndTimeInputTypeView, depending on
- // RuntimeEnabledFeatures::inputMultipleFieldsUIEnabled().
+ if (!RuntimeEnabledFeatures::inputMultipleFieldsUIEnabled())
+ return BaseChooserOnlyDateAndTimeInputType::create(element(), *this);
+ // TODO(tkent): Returns MultipleFieldsDateAndTimeInputTypeView.
// crbug.com/243714
return this;
}

Powered by Google App Engine
This is Rietveld 408576698