OLD | NEW |
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 25 matching lines...) Expand all Loading... |
36 #include "platform/text/PlatformLocale.h" | 36 #include "platform/text/PlatformLocale.h" |
37 #include "wtf/CurrentTime.h" | 37 #include "wtf/CurrentTime.h" |
38 #include "wtf/DateMath.h" | 38 #include "wtf/DateMath.h" |
39 #include "wtf/MathExtras.h" | 39 #include "wtf/MathExtras.h" |
40 #include "wtf/text/WTFString.h" | 40 #include "wtf/text/WTFString.h" |
41 | 41 |
42 namespace WebCore { | 42 namespace WebCore { |
43 | 43 |
44 using blink::WebLocalizedString; | 44 using blink::WebLocalizedString; |
45 using namespace HTMLNames; | 45 using namespace HTMLNames; |
46 using namespace std; | |
47 | 46 |
48 static const int msecPerMinute = 60 * 1000; | 47 static const int msecPerMinute = 60 * 1000; |
49 static const int msecPerSecond = 1000; | 48 static const int msecPerSecond = 1000; |
50 | 49 |
51 double BaseDateAndTimeInputType::valueAsDate() const | 50 double BaseDateAndTimeInputType::valueAsDate() const |
52 { | 51 { |
53 return valueAsDouble(); | 52 return valueAsDouble(); |
54 } | 53 } |
55 | 54 |
56 void BaseDateAndTimeInputType::setValueAsDate(double value, ExceptionState&) con
st | 55 void BaseDateAndTimeInputType::setValueAsDate(double value, ExceptionState&) con
st |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
184 { | 183 { |
185 return element().isRequired() && value.isEmpty(); | 184 return element().isRequired() && value.isEmpty(); |
186 } | 185 } |
187 | 186 |
188 bool BaseDateAndTimeInputType::shouldShowFocusRingOnMouseFocus() const | 187 bool BaseDateAndTimeInputType::shouldShowFocusRingOnMouseFocus() const |
189 { | 188 { |
190 return true; | 189 return true; |
191 } | 190 } |
192 | 191 |
193 } // namespace WebCore | 192 } // namespace WebCore |
OLD | NEW |