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

Side by Side Diff: Source/core/html/forms/BaseDateAndTimeInputType.cpp

Issue 334593005: Removing using declarations that import names in the C++ Standard library. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 6 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 25 matching lines...) Expand all
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
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
OLDNEW
« no previous file with comments | « Source/core/html/canvas/CanvasRenderingContext2D.cpp ('k') | Source/core/html/forms/InputType.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698