OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
4 * (C) 2001 Dirk Mueller (mueller@kde.org) | 4 * (C) 2001 Dirk Mueller (mueller@kde.org) |
5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All | 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All |
6 * rights reserved. | 6 * rights reserved. |
7 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) | 7 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) |
8 * Copyright (C) 2007 Samuel Weinig (sam@webkit.org) | 8 * Copyright (C) 2007 Samuel Weinig (sam@webkit.org) |
9 * Copyright (C) 2009, 2010, 2011, 2012 Google Inc. All rights reserved. | 9 * Copyright (C) 2009, 2010, 2011, 2012 Google Inc. All rights reserved. |
10 * Copyright (C) 2012 Samsung Electronics. All rights reserved. | 10 * Copyright (C) 2012 Samsung Electronics. All rights reserved. |
(...skipping 10 matching lines...) Expand all Loading... |
21 * | 21 * |
22 * You should have received a copy of the GNU Library General Public License | 22 * You should have received a copy of the GNU Library General Public License |
23 * along with this library; see the file COPYING.LIB. If not, write to | 23 * along with this library; see the file COPYING.LIB. If not, write to |
24 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 24 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
25 * Boston, MA 02110-1301, USA. | 25 * Boston, MA 02110-1301, USA. |
26 * | 26 * |
27 */ | 27 */ |
28 | 28 |
29 #include "core/html/forms/InputType.h" | 29 #include "core/html/forms/InputType.h" |
30 | 30 |
| 31 #include <memory> |
31 #include "bindings/core/v8/ExceptionMessages.h" | 32 #include "bindings/core/v8/ExceptionMessages.h" |
32 #include "bindings/core/v8/ExceptionState.h" | 33 #include "bindings/core/v8/ExceptionState.h" |
33 #include "core/InputTypeNames.h" | 34 #include "core/InputTypeNames.h" |
34 #include "core/dom/AXObjectCache.h" | 35 #include "core/dom/AXObjectCache.h" |
35 #include "core/dom/ExceptionCode.h" | 36 #include "core/dom/ExceptionCode.h" |
36 #include "core/dom/NodeComputedStyle.h" | 37 #include "core/dom/NodeComputedStyle.h" |
37 #include "core/events/KeyboardEvent.h" | 38 #include "core/events/KeyboardEvent.h" |
38 #include "core/events/ScopedEventQueue.h" | 39 #include "core/events/ScopedEventQueue.h" |
39 #include "core/fileapi/FileList.h" | 40 #include "core/fileapi/FileList.h" |
40 #include "core/frame/FrameHost.h" | 41 #include "core/frame/FrameHost.h" |
(...skipping 25 matching lines...) Expand all Loading... |
66 #include "core/html/forms/URLInputType.h" | 67 #include "core/html/forms/URLInputType.h" |
67 #include "core/html/forms/WeekInputType.h" | 68 #include "core/html/forms/WeekInputType.h" |
68 #include "core/html/parser/HTMLParserIdioms.h" | 69 #include "core/html/parser/HTMLParserIdioms.h" |
69 #include "core/inspector/ConsoleMessage.h" | 70 #include "core/inspector/ConsoleMessage.h" |
70 #include "core/layout/LayoutTheme.h" | 71 #include "core/layout/LayoutTheme.h" |
71 #include "platform/RuntimeEnabledFeatures.h" | 72 #include "platform/RuntimeEnabledFeatures.h" |
72 #include "platform/json/JSONValues.h" | 73 #include "platform/json/JSONValues.h" |
73 #include "platform/text/PlatformLocale.h" | 74 #include "platform/text/PlatformLocale.h" |
74 #include "platform/text/TextBreakIterator.h" | 75 #include "platform/text/TextBreakIterator.h" |
75 #include "wtf/PtrUtil.h" | 76 #include "wtf/PtrUtil.h" |
76 #include <memory> | |
77 | 77 |
78 namespace blink { | 78 namespace blink { |
79 | 79 |
80 using blink::WebLocalizedString; | 80 using blink::WebLocalizedString; |
81 using namespace HTMLNames; | 81 using namespace HTMLNames; |
82 | 82 |
83 using InputTypeFactoryFunction = InputType* (*)(HTMLInputElement&); | 83 using InputTypeFactoryFunction = InputType* (*)(HTMLInputElement&); |
84 using InputTypeFactoryMap = | 84 using InputTypeFactoryMap = |
85 HashMap<AtomicString, InputTypeFactoryFunction, CaseFoldingHash>; | 85 HashMap<AtomicString, InputTypeFactoryFunction, CaseFoldingHash>; |
86 | 86 |
(...skipping 817 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
904 | 904 |
905 void InputType::addWarningToConsole(const char* messageFormat, | 905 void InputType::addWarningToConsole(const char* messageFormat, |
906 const String& value) const { | 906 const String& value) const { |
907 element().document().addConsoleMessage(ConsoleMessage::create( | 907 element().document().addConsoleMessage(ConsoleMessage::create( |
908 RenderingMessageSource, WarningMessageLevel, | 908 RenderingMessageSource, WarningMessageLevel, |
909 String::format(messageFormat, | 909 String::format(messageFormat, |
910 JSONValue::quoteString(value).utf8().data()))); | 910 JSONValue::quoteString(value).utf8().data()))); |
911 } | 911 } |
912 | 912 |
913 } // namespace blink | 913 } // namespace blink |
OLD | NEW |