| 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 16 matching lines...) Expand all Loading... |
| 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 29 */ | 29 */ |
| 30 | 30 |
| 31 #ifndef WebFormElement_h | 31 #ifndef WebFormElement_h |
| 32 #define WebFormElement_h | 32 #define WebFormElement_h |
| 33 | 33 |
| 34 #include "../platform/WebVector.h" | 34 #include "../platform/WebVector.h" |
| 35 #include "WebElement.h" | 35 #include "WebElement.h" |
| 36 | 36 |
| 37 #if BLINK_IMPLEMENTATION | |
| 38 namespace blink { class HTMLFormElement; } | |
| 39 #endif | |
| 40 | |
| 41 namespace blink { | 37 namespace blink { |
| 42 | 38 |
| 43 class WebInputElement; | 39 class HTMLFormElement; |
| 44 class WebFormControlElement; | 40 class WebInputElement; |
| 41 class WebFormControlElement; |
| 45 | 42 |
| 46 // A container for passing around a reference to a form element. Provides | 43 // A container for passing around a reference to a form element. Provides |
| 47 // some information about the form. | 44 // some information about the form. |
| 48 class WebFormElement : public WebElement { | 45 class WebFormElement : public WebElement { |
| 49 public: | 46 public: |
| 50 ~WebFormElement() { reset(); } | 47 ~WebFormElement() { reset(); } |
| 51 | 48 |
| 52 WebFormElement() : WebElement() { } | 49 WebFormElement() : WebElement() { } |
| 53 WebFormElement(const WebFormElement& element) : WebElement(element) { } | 50 WebFormElement(const WebFormElement& element) : WebElement(element) { } |
| 54 | 51 |
| (...skipping 19 matching lines...) Expand all Loading... |
| 74 | 71 |
| 75 enum AutocompleteResult { | 72 enum AutocompleteResult { |
| 76 AutocompleteResultSuccess, | 73 AutocompleteResultSuccess, |
| 77 AutocompleteResultErrorDisabled, | 74 AutocompleteResultErrorDisabled, |
| 78 AutocompleteResultErrorCancel, | 75 AutocompleteResultErrorCancel, |
| 79 AutocompleteResultErrorInvalid, | 76 AutocompleteResultErrorInvalid, |
| 80 }; | 77 }; |
| 81 BLINK_EXPORT void finishRequestAutocomplete(WebFormElement::Autocomplete
Result); | 78 BLINK_EXPORT void finishRequestAutocomplete(WebFormElement::Autocomplete
Result); |
| 82 | 79 |
| 83 #if BLINK_IMPLEMENTATION | 80 #if BLINK_IMPLEMENTATION |
| 84 WebFormElement(const PassRefPtrWillBeRawPtr<blink::HTMLFormElement>&); | 81 WebFormElement(const PassRefPtrWillBeRawPtr<HTMLFormElement>&); |
| 85 WebFormElement& operator=(const PassRefPtrWillBeRawPtr<blink::HTMLFormEl
ement>&); | 82 WebFormElement& operator=(const PassRefPtrWillBeRawPtr<HTMLFormElement>&
); |
| 86 operator PassRefPtrWillBeRawPtr<blink::HTMLFormElement>() const; | 83 operator PassRefPtrWillBeRawPtr<HTMLFormElement>() const; |
| 87 #endif | 84 #endif |
| 88 }; | 85 }; |
| 89 | 86 |
| 90 } // namespace blink | 87 } // namespace blink |
| 91 | 88 |
| 92 #endif | 89 #endif |
| OLD | NEW |