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