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

Side by Side Diff: third_party/WebKit/Source/core/html/forms/TimeInputType.cpp

Issue 1738073002: DevTools: introduce protocol::Value, baseline for hierarchical data in remote debugging protocol. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 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 19 matching lines...) Expand all
30 30
31 #include "core/html/forms/TimeInputType.h" 31 #include "core/html/forms/TimeInputType.h"
32 32
33 #include "core/HTMLNames.h" 33 #include "core/HTMLNames.h"
34 #include "core/InputTypeNames.h" 34 #include "core/InputTypeNames.h"
35 #include "core/dom/Document.h" 35 #include "core/dom/Document.h"
36 #include "core/html/HTMLInputElement.h" 36 #include "core/html/HTMLInputElement.h"
37 #include "core/html/forms/DateTimeFieldsState.h" 37 #include "core/html/forms/DateTimeFieldsState.h"
38 #include "core/inspector/ConsoleMessage.h" 38 #include "core/inspector/ConsoleMessage.h"
39 #include "platform/DateComponents.h" 39 #include "platform/DateComponents.h"
40 #include "platform/JSONValues.h"
41 #include "platform/text/PlatformLocale.h" 40 #include "platform/text/PlatformLocale.h"
42 #include "wtf/CurrentTime.h" 41 #include "wtf/CurrentTime.h"
43 #include "wtf/DateMath.h" 42 #include "wtf/DateMath.h"
44 #include "wtf/MathExtras.h" 43 #include "wtf/MathExtras.h"
45 #include "wtf/PassOwnPtr.h" 44 #include "wtf/PassOwnPtr.h"
46 #include "wtf/text/WTFString.h" 45 #include "wtf/text/WTFString.h"
47 46
48 namespace blink { 47 namespace blink {
49 48
50 using namespace HTMLNames; 49 using namespace HTMLNames;
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 layoutParameters.maximum = DateComponents(); 157 layoutParameters.maximum = DateComponents();
159 } 158 }
160 159
161 bool TimeInputType::isValidFormat(bool hasYear, bool hasMonth, bool hasWeek, boo l hasDay, bool hasAMPM, bool hasHour, bool hasMinute, bool hasSecond) const 160 bool TimeInputType::isValidFormat(bool hasYear, bool hasMonth, bool hasWeek, boo l hasDay, bool hasAMPM, bool hasHour, bool hasMinute, bool hasSecond) const
162 { 161 {
163 return hasHour && hasMinute && hasAMPM; 162 return hasHour && hasMinute && hasAMPM;
164 } 163 }
165 #endif 164 #endif
166 165
167 } // namespace blink 166 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/ExecutionContext.cpp ('k') | third_party/WebKit/Source/core/inspector/InspectorBaseAgent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698