| 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 BLINK_EXPORT bool isEnabled() const; | 57 BLINK_EXPORT bool isEnabled() const; |
| 58 BLINK_EXPORT bool isReadOnly() const; | 58 BLINK_EXPORT bool isReadOnly() const; |
| 59 BLINK_EXPORT WebString formControlName() const; | 59 BLINK_EXPORT WebString formControlName() const; |
| 60 BLINK_EXPORT WebString formControlType() const; | 60 BLINK_EXPORT WebString formControlType() const; |
| 61 | 61 |
| 62 BLINK_EXPORT void dispatchFormControlChangeEvent(); | 62 BLINK_EXPORT void dispatchFormControlChangeEvent(); |
| 63 | 63 |
| 64 BLINK_EXPORT bool isAutofilled() const; | 64 BLINK_EXPORT bool isAutofilled() const; |
| 65 BLINK_EXPORT void setAutofilled(bool); | 65 BLINK_EXPORT void setAutofilled(bool); |
| 66 | 66 |
| 67 // This returns the non-sanitized, exact value inside the text input field |
| 68 // or insisde the textarea. If neither input element nor textarea element, |
| 69 // a null string is returned. |
| 70 BLINK_EXPORT WebString editingValue() const; |
| 71 |
| 72 // The returned value represents a cursor/caret position at the current |
| 73 // selection's start for text input field or textarea. If neither input |
| 74 // element nor textarea element, 0 is returned. |
| 75 BLINK_EXPORT int selectionStart() const; |
| 76 // The returned value represents a cursor/caret position at the current |
| 77 // selection's end for text input field or textarea. If neither input |
| 78 // element nor textarea element, 0 is returned. |
| 79 BLINK_EXPORT int selectionEnd() const; |
| 80 |
| 67 // Returns the name that should be used for the specified |element| when | 81 // Returns the name that should be used for the specified |element| when |
| 68 // storing autofill data. This is either the field name or its id, an empty | 82 // storing autofill data. This is either the field name or its id, an empty |
| 69 // string if it has no name and no id. | 83 // string if it has no name and no id. |
| 70 BLINK_EXPORT WebString nameForAutofill() const; | 84 BLINK_EXPORT WebString nameForAutofill() const; |
| 71 | 85 |
| 72 BLINK_EXPORT WebFormElement form() const; | 86 BLINK_EXPORT WebFormElement form() const; |
| 73 | 87 |
| 74 #if BLINK_IMPLEMENTATION | 88 #if BLINK_IMPLEMENTATION |
| 75 WebFormControlElement(const WTF::PassRefPtr<WebCore::HTMLFormControlElement>
&); | 89 WebFormControlElement(const WTF::PassRefPtr<WebCore::HTMLFormControlElement>
&); |
| 76 WebFormControlElement& operator=(const WTF::PassRefPtr<WebCore::HTMLFormCont
rolElement>&); | 90 WebFormControlElement& operator=(const WTF::PassRefPtr<WebCore::HTMLFormCont
rolElement>&); |
| 77 operator WTF::PassRefPtr<WebCore::HTMLFormControlElement>() const; | 91 operator WTF::PassRefPtr<WebCore::HTMLFormControlElement>() const; |
| 78 #endif | 92 #endif |
| 79 }; | 93 }; |
| 80 | 94 |
| 81 } // namespace blink | 95 } // namespace blink |
| 82 | 96 |
| 83 #endif | 97 #endif |
| OLD | NEW |