OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 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 23 matching lines...) Expand all Loading... |
34 #include "../platform/WebVector.h" | 34 #include "../platform/WebVector.h" |
35 #include "WebElement.h" | 35 #include "WebElement.h" |
36 | 36 |
37 namespace blink { | 37 namespace blink { |
38 | 38 |
39 class HTMLFormElement; | 39 class HTMLFormElement; |
40 class WebFormControlElement; | 40 class WebFormControlElement; |
41 | 41 |
42 // A container for passing around a reference to a form element. Provides some | 42 // A container for passing around a reference to a form element. Provides some |
43 // information about the form. | 43 // information about the form. |
44 class WebFormElement : public WebElement { | 44 class WebFormElement final : public WebElement { |
45 public: | 45 public: |
46 ~WebFormElement() { reset(); } | 46 ~WebFormElement() { reset(); } |
47 | 47 |
48 WebFormElement() : WebElement() { } | 48 WebFormElement() : WebElement() { } |
49 WebFormElement(const WebFormElement& element) : WebElement(element) { } | 49 WebFormElement(const WebFormElement& element) : WebElement(element) { } |
50 | 50 |
51 WebFormElement& operator=(const WebFormElement& element) | 51 WebFormElement& operator=(const WebFormElement& element) |
52 { | 52 { |
53 WebElement::assign(element); | 53 WebElement::assign(element); |
54 return *this; | 54 return *this; |
(...skipping 21 matching lines...) Expand all Loading... |
76 }; | 76 }; |
77 BLINK_EXPORT void finishRequestAutocomplete(WebFormElement::AutocompleteResu
lt); | 77 BLINK_EXPORT void finishRequestAutocomplete(WebFormElement::AutocompleteResu
lt); |
78 | 78 |
79 #if BLINK_IMPLEMENTATION | 79 #if BLINK_IMPLEMENTATION |
80 WebFormElement(const PassRefPtrWillBeRawPtr<HTMLFormElement>&); | 80 WebFormElement(const PassRefPtrWillBeRawPtr<HTMLFormElement>&); |
81 WebFormElement& operator=(const PassRefPtrWillBeRawPtr<HTMLFormElement>&); | 81 WebFormElement& operator=(const PassRefPtrWillBeRawPtr<HTMLFormElement>&); |
82 operator PassRefPtrWillBeRawPtr<HTMLFormElement>() const; | 82 operator PassRefPtrWillBeRawPtr<HTMLFormElement>() const; |
83 #endif | 83 #endif |
84 }; | 84 }; |
85 | 85 |
| 86 DECLARE_WEB_NODE_TYPE_CASTS(WebFormElement); |
| 87 |
86 } // namespace blink | 88 } // namespace blink |
87 | 89 |
88 #endif | 90 #endif |
OLD | NEW |