| OLD | NEW |
| 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 17 matching lines...) Expand all Loading... |
| 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 WebFormControlElement_h | 31 #ifndef WebFormControlElement_h |
| 32 #define WebFormControlElement_h | 32 #define WebFormControlElement_h |
| 33 | 33 |
| 34 #include "../platform/WebString.h" | 34 #include "../platform/WebString.h" |
| 35 #include "WebElement.h" | 35 #include "WebElement.h" |
| 36 #include "WebFormElement.h" | 36 #include "WebFormElement.h" |
| 37 | 37 |
| 38 #if BLINK_IMPLEMENTATION | 38 namespace blink { |
| 39 namespace blink { class HTMLFormControlElement; } | |
| 40 #endif | |
| 41 | 39 |
| 42 namespace blink { | 40 class HTMLFormControlElement; |
| 43 | 41 |
| 44 // Provides readonly access to some properties of a DOM form control element nod
e. | 42 // Provides readonly access to some properties of a DOM form control element nod
e. |
| 45 class WebFormControlElement : public WebElement { | 43 class WebFormControlElement : public WebElement { |
| 46 public: | 44 public: |
| 47 WebFormControlElement() : WebElement() { } | 45 WebFormControlElement() : WebElement() { } |
| 48 WebFormControlElement(const WebFormControlElement& e) : WebElement(e) { } | 46 WebFormControlElement(const WebFormControlElement& e) : WebElement(e) { } |
| 49 | 47 |
| 50 WebFormControlElement& operator=(const WebFormControlElement& e) | 48 WebFormControlElement& operator=(const WebFormControlElement& e) |
| 51 { | 49 { |
| 52 WebElement::assign(e); | 50 WebElement::assign(e); |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 BLINK_EXPORT bool isActivatedSubmit() const; | 107 BLINK_EXPORT bool isActivatedSubmit() const; |
| 110 | 108 |
| 111 // Returns the name that should be used for the specified |element| when | 109 // Returns the name that should be used for the specified |element| when |
| 112 // storing autofill data. This is either the field name or its id, an empty | 110 // storing autofill data. This is either the field name or its id, an empty |
| 113 // string if it has no name and no id. | 111 // string if it has no name and no id. |
| 114 BLINK_EXPORT WebString nameForAutofill() const; | 112 BLINK_EXPORT WebString nameForAutofill() const; |
| 115 | 113 |
| 116 BLINK_EXPORT WebFormElement form() const; | 114 BLINK_EXPORT WebFormElement form() const; |
| 117 | 115 |
| 118 #if BLINK_IMPLEMENTATION | 116 #if BLINK_IMPLEMENTATION |
| 119 WebFormControlElement(const PassRefPtrWillBeRawPtr<blink::HTMLFormControlEle
ment>&); | 117 WebFormControlElement(const PassRefPtrWillBeRawPtr<HTMLFormControlElement>&)
; |
| 120 WebFormControlElement& operator=(const PassRefPtrWillBeRawPtr<blink::HTMLFor
mControlElement>&); | 118 WebFormControlElement& operator=(const PassRefPtrWillBeRawPtr<HTMLFormContro
lElement>&); |
| 121 operator PassRefPtrWillBeRawPtr<blink::HTMLFormControlElement>() const; | 119 operator PassRefPtrWillBeRawPtr<HTMLFormControlElement>() const; |
| 122 #endif | 120 #endif |
| 123 }; | 121 }; |
| 124 | 122 |
| 125 } // namespace blink | 123 } // namespace blink |
| 126 | 124 |
| 127 #endif | 125 #endif |
| OLD | NEW |