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

Side by Side Diff: Source/core/html/DateInputType.cpp

Issue 18512011: core/html: Include wtf files using "wtf/foo.h" form. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 7 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/core/html/DOMTokenList.cpp ('k') | Source/core/html/EmailInputType.cpp » ('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) 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 20 matching lines...) Expand all
31 #include "config.h" 31 #include "config.h"
32 #include "core/html/DateInputType.h" 32 #include "core/html/DateInputType.h"
33 33
34 #include "HTMLNames.h" 34 #include "HTMLNames.h"
35 #include "core/html/DateTimeFieldsState.h" 35 #include "core/html/DateTimeFieldsState.h"
36 #include "core/html/HTMLInputElement.h" 36 #include "core/html/HTMLInputElement.h"
37 #include "core/html/InputTypeNames.h" 37 #include "core/html/InputTypeNames.h"
38 #include "core/platform/DateComponents.h" 38 #include "core/platform/DateComponents.h"
39 #include "core/platform/LocalizedStrings.h" 39 #include "core/platform/LocalizedStrings.h"
40 #include "core/platform/text/PlatformLocale.h" 40 #include "core/platform/text/PlatformLocale.h"
41 #include <wtf/PassOwnPtr.h> 41 #include "wtf/PassOwnPtr.h"
42 42
43 namespace WebCore { 43 namespace WebCore {
44 44
45 using namespace HTMLNames; 45 using namespace HTMLNames;
46 46
47 static const int dateDefaultStep = 1; 47 static const int dateDefaultStep = 1;
48 static const int dateDefaultStepBase = 0; 48 static const int dateDefaultStepBase = 0;
49 static const int dateStepScaleFactor = 86400000; 49 static const int dateStepScaleFactor = 86400000;
50 50
51 inline DateInputType::DateInputType(HTMLInputElement* element) 51 inline DateInputType::DateInputType(HTMLInputElement* element)
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 layoutParameters.placeholderForYear = placeholderForYearField(); 124 layoutParameters.placeholderForYear = placeholderForYearField();
125 } 125 }
126 126
127 bool DateInputType::isValidFormat(bool hasYear, bool hasMonth, bool hasWeek, boo l hasDay, bool hasAMPM, bool hasHour, bool hasMinute, bool hasSecond) const 127 bool DateInputType::isValidFormat(bool hasYear, bool hasMonth, bool hasWeek, boo l hasDay, bool hasAMPM, bool hasHour, bool hasMinute, bool hasSecond) const
128 { 128 {
129 return hasYear && hasMonth && hasDay; 129 return hasYear && hasMonth && hasDay;
130 } 130 }
131 #endif 131 #endif
132 132
133 } // namespace WebCore 133 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/html/DOMTokenList.cpp ('k') | Source/core/html/EmailInputType.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698