| 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 void assign(const WebFormElement& element) { WebElement::assign(element); } | 56 void assign(const WebFormElement& element) { WebElement::assign(element); } |
| 57 | 57 |
| 58 BLINK_EXPORT bool autoComplete() const; | 58 BLINK_EXPORT bool autoComplete() const; |
| 59 BLINK_EXPORT WebString action() const; | 59 BLINK_EXPORT WebString action() const; |
| 60 BLINK_EXPORT WebString name() const; | 60 BLINK_EXPORT WebString name() const; |
| 61 BLINK_EXPORT WebString method() const; | 61 BLINK_EXPORT WebString method() const; |
| 62 // FIXME: Deprecate and replace with WebVector<WebElement>. | 62 // FIXME: Deprecate and replace with WebVector<WebElement>. |
| 63 BLINK_EXPORT void getNamedElements(const WebString&, WebVector<WebNode>&); | 63 BLINK_EXPORT void getNamedElements(const WebString&, WebVector<WebNode>&); |
| 64 BLINK_EXPORT void getFormControlElements(WebVector<WebFormControlElement>&)
const; | 64 BLINK_EXPORT void getFormControlElements(WebVector<WebFormControlElement>&)
const; |
| 65 | 65 |
| 66 // NOTE: This function dispatches "invalid" events. Only call this if | |
| 67 // required by a specification (e.g. requestAutocomplete()). | |
| 68 BLINK_EXPORT bool checkValidity(); | |
| 69 | |
| 70 enum AutocompleteResult { | |
| 71 AutocompleteResultSuccess, | |
| 72 AutocompleteResultErrorDisabled, | |
| 73 AutocompleteResultErrorCancel, | |
| 74 AutocompleteResultErrorInvalid, | |
| 75 }; | |
| 76 BLINK_EXPORT void finishRequestAutocomplete(WebFormElement::AutocompleteResu
lt); | |
| 77 | |
| 78 #if BLINK_IMPLEMENTATION | 66 #if BLINK_IMPLEMENTATION |
| 79 WebFormElement(HTMLFormElement*); | 67 WebFormElement(HTMLFormElement*); |
| 80 WebFormElement& operator=(HTMLFormElement*); | 68 WebFormElement& operator=(HTMLFormElement*); |
| 81 operator HTMLFormElement*() const; | 69 operator HTMLFormElement*() const; |
| 82 #endif | 70 #endif |
| 83 }; | 71 }; |
| 84 | 72 |
| 85 DECLARE_WEB_NODE_TYPE_CASTS(WebFormElement); | 73 DECLARE_WEB_NODE_TYPE_CASTS(WebFormElement); |
| 86 | 74 |
| 87 } // namespace blink | 75 } // namespace blink |
| 88 | 76 |
| 89 #endif | 77 #endif |
| OLD | NEW |