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) 2000 Dirk Mueller (mueller@kde.org) | 4 * (C) 2000 Dirk Mueller (mueller@kde.org) |
5 * Copyright (C) 2004, 2005, 2006, 2007, 2010 Apple Inc. All rights reserved. | 5 * Copyright (C) 2004, 2005, 2006, 2007, 2010 Apple Inc. All rights reserved. |
6 * Copyright (C) 2012 Samsung Electronics. All rights reserved. | 6 * Copyright (C) 2012 Samsung Electronics. All rights reserved. |
7 * | 7 * |
8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
(...skipping 12 matching lines...) Expand all Loading... |
23 */ | 23 */ |
24 | 24 |
25 #ifndef HTMLInputElement_h | 25 #ifndef HTMLInputElement_h |
26 #define HTMLInputElement_h | 26 #define HTMLInputElement_h |
27 | 27 |
28 #include "base/gtest_prod_util.h" | 28 #include "base/gtest_prod_util.h" |
29 #include "core/CoreExport.h" | 29 #include "core/CoreExport.h" |
30 #include "core/html/TextControlElement.h" | 30 #include "core/html/TextControlElement.h" |
31 #include "core/html/forms/StepRange.h" | 31 #include "core/html/forms/StepRange.h" |
32 #include "platform/FileChooser.h" | 32 #include "platform/FileChooser.h" |
| 33 #include "platform/bindings/ActiveScriptWrappable.h" |
33 | 34 |
34 namespace blink { | 35 namespace blink { |
35 | 36 |
36 class AXObject; | 37 class AXObject; |
37 class DragData; | 38 class DragData; |
38 class ExceptionState; | 39 class ExceptionState; |
39 class FileList; | 40 class FileList; |
40 class HTMLDataListElement; | 41 class HTMLDataListElement; |
41 class HTMLImageLoader; | 42 class HTMLImageLoader; |
42 class InputType; | 43 class InputType; |
43 class InputTypeView; | 44 class InputTypeView; |
44 class KURL; | 45 class KURL; |
45 class ListAttributeTargetObserver; | 46 class ListAttributeTargetObserver; |
46 class RadioButtonGroupScope; | 47 class RadioButtonGroupScope; |
47 struct DateTimeChooserParameters; | 48 struct DateTimeChooserParameters; |
48 | 49 |
49 class CORE_EXPORT HTMLInputElement : public TextControlElement { | 50 class CORE_EXPORT HTMLInputElement |
| 51 : public TextControlElement, |
| 52 public ActiveScriptWrappable<HTMLInputElement> { |
50 DEFINE_WRAPPERTYPEINFO(); | 53 DEFINE_WRAPPERTYPEINFO(); |
| 54 USING_GARBAGE_COLLECTED_MIXIN(HTMLInputElement); |
51 | 55 |
52 public: | 56 public: |
53 static HTMLInputElement* Create(Document&, bool created_by_parser); | 57 static HTMLInputElement* Create(Document&, bool created_by_parser); |
54 ~HTMLInputElement() override; | 58 ~HTMLInputElement() override; |
55 DECLARE_VIRTUAL_TRACE(); | 59 DECLARE_VIRTUAL_TRACE(); |
56 | 60 |
| 61 bool HasPendingActivity() const final; |
| 62 |
57 DEFINE_ATTRIBUTE_EVENT_LISTENER(webkitspeechchange); | 63 DEFINE_ATTRIBUTE_EVENT_LISTENER(webkitspeechchange); |
58 | 64 |
59 bool ShouldAutocomplete() const final; | 65 bool ShouldAutocomplete() const final; |
60 | 66 |
61 // For ValidityState | 67 // For ValidityState |
62 bool HasBadInput() const final; | 68 bool HasBadInput() const final; |
63 bool PatternMismatch() const final; | 69 bool PatternMismatch() const final; |
64 bool RangeUnderflow() const final; | 70 bool RangeUnderflow() const final; |
65 bool RangeOverflow() const final; | 71 bool RangeOverflow() const final; |
66 bool StepMismatch() const final; | 72 bool StepMismatch() const final; |
(...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
427 // element lives on. | 433 // element lives on. |
428 Member<HTMLImageLoader> image_loader_; | 434 Member<HTMLImageLoader> image_loader_; |
429 Member<ListAttributeTargetObserver> list_attribute_target_observer_; | 435 Member<ListAttributeTargetObserver> list_attribute_target_observer_; |
430 | 436 |
431 FRIEND_TEST_ALL_PREFIXES(HTMLInputElementTest, RadioKeyDownDCHECKFailure); | 437 FRIEND_TEST_ALL_PREFIXES(HTMLInputElementTest, RadioKeyDownDCHECKFailure); |
432 }; | 438 }; |
433 | 439 |
434 } // namespace blink | 440 } // namespace blink |
435 | 441 |
436 #endif // HTMLInputElement_h | 442 #endif // HTMLInputElement_h |
OLD | NEW |