| 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 18 matching lines...) Expand all Loading... |
| 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 #if BLINK_IMPLEMENTATION |
| 39 namespace WebCore { class HTMLFormControlElement; } | 39 namespace blink { class HTMLFormControlElement; } |
| 40 #endif | 40 #endif |
| 41 | 41 |
| 42 namespace blink { | 42 namespace blink { |
| 43 | 43 |
| 44 // Provides readonly access to some properties of a DOM form control element nod
e. | 44 // Provides readonly access to some properties of a DOM form control element nod
e. |
| 45 class WebFormControlElement : public WebElement { | 45 class WebFormControlElement : public WebElement { |
| 46 public: | 46 public: |
| 47 WebFormControlElement() : WebElement() { } | 47 WebFormControlElement() : WebElement() { } |
| 48 WebFormControlElement(const WebFormControlElement& e) : WebElement(e) { } | 48 WebFormControlElement(const WebFormControlElement& e) : WebElement(e) { } |
| 49 | 49 |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 BLINK_EXPORT bool isActivatedSubmit() const; | 109 BLINK_EXPORT bool isActivatedSubmit() const; |
| 110 | 110 |
| 111 // Returns the name that should be used for the specified |element| when | 111 // 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 | 112 // storing autofill data. This is either the field name or its id, an empty |
| 113 // string if it has no name and no id. | 113 // string if it has no name and no id. |
| 114 BLINK_EXPORT WebString nameForAutofill() const; | 114 BLINK_EXPORT WebString nameForAutofill() const; |
| 115 | 115 |
| 116 BLINK_EXPORT WebFormElement form() const; | 116 BLINK_EXPORT WebFormElement form() const; |
| 117 | 117 |
| 118 #if BLINK_IMPLEMENTATION | 118 #if BLINK_IMPLEMENTATION |
| 119 WebFormControlElement(const PassRefPtrWillBeRawPtr<WebCore::HTMLFormControlE
lement>&); | 119 WebFormControlElement(const PassRefPtrWillBeRawPtr<blink::HTMLFormControlEle
ment>&); |
| 120 WebFormControlElement& operator=(const PassRefPtrWillBeRawPtr<WebCore::HTMLF
ormControlElement>&); | 120 WebFormControlElement& operator=(const PassRefPtrWillBeRawPtr<blink::HTMLFor
mControlElement>&); |
| 121 operator PassRefPtrWillBeRawPtr<WebCore::HTMLFormControlElement>() const; | 121 operator PassRefPtrWillBeRawPtr<blink::HTMLFormControlElement>() const; |
| 122 #endif | 122 #endif |
| 123 }; | 123 }; |
| 124 | 124 |
| 125 } // namespace blink | 125 } // namespace blink |
| 126 | 126 |
| 127 #endif | 127 #endif |
| OLD | NEW |