| 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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 // This returns the non-sanitized, exact value inside the text field. | 80 // This returns the non-sanitized, exact value inside the text field. |
| 81 BLINK_EXPORT WebString editingValue() const; | 81 BLINK_EXPORT WebString editingValue() const; |
| 82 // Sets the value inside the text field without being sanitized. | 82 // Sets the value inside the text field without being sanitized. |
| 83 // Can't be used if a renderer doesn't exist or on a non text field type
. | 83 // Can't be used if a renderer doesn't exist or on a non text field type
. |
| 84 // Caret will be moved to the end. | 84 // Caret will be moved to the end. |
| 85 BLINK_EXPORT void setEditingValue(const WebString&); | 85 BLINK_EXPORT void setEditingValue(const WebString&); |
| 86 BLINK_EXPORT void setSuggestedValue(const WebString&); | 86 BLINK_EXPORT void setSuggestedValue(const WebString&); |
| 87 BLINK_EXPORT WebString suggestedValue() const; | 87 BLINK_EXPORT WebString suggestedValue() const; |
| 88 BLINK_EXPORT void setPlaceholder(const WebString&); | 88 BLINK_EXPORT void setPlaceholder(const WebString&); |
| 89 BLINK_EXPORT WebString placeholder() const; | 89 BLINK_EXPORT WebString placeholder() const; |
| 90 BLINK_EXPORT bool isAutofilled() const; | |
| 91 BLINK_EXPORT void setAutofilled(bool); | |
| 92 BLINK_EXPORT void setSelectionRange(int, int); | 90 BLINK_EXPORT void setSelectionRange(int, int); |
| 93 BLINK_EXPORT int selectionStart() const; | 91 BLINK_EXPORT int selectionStart() const; |
| 94 BLINK_EXPORT int selectionEnd() const; | 92 BLINK_EXPORT int selectionEnd() const; |
| 95 BLINK_EXPORT bool isValidValue(const WebString&) const; | 93 BLINK_EXPORT bool isValidValue(const WebString&) const; |
| 96 BLINK_EXPORT bool isChecked() const; | 94 BLINK_EXPORT bool isChecked() const; |
| 97 BLINK_EXPORT bool isMultiple() const; | 95 BLINK_EXPORT bool isMultiple() const; |
| 98 | 96 |
| 99 BLINK_EXPORT WebNodeCollection dataListOptions() const; | 97 BLINK_EXPORT WebNodeCollection dataListOptions() const; |
| 100 | 98 |
| 101 // Return the localized value for this input type. | 99 // Return the localized value for this input type. |
| (...skipping 23 matching lines...) Expand all Loading... |
| 125 BLINK_EXPORT WebInputElement* toWebInputElement(WebElement*); | 123 BLINK_EXPORT WebInputElement* toWebInputElement(WebElement*); |
| 126 | 124 |
| 127 inline const WebInputElement* toWebInputElement(const WebElement* element) | 125 inline const WebInputElement* toWebInputElement(const WebElement* element) |
| 128 { | 126 { |
| 129 return toWebInputElement(const_cast<WebElement*>(element)); | 127 return toWebInputElement(const_cast<WebElement*>(element)); |
| 130 } | 128 } |
| 131 | 129 |
| 132 } // namespace WebKit | 130 } // namespace WebKit |
| 133 | 131 |
| 134 #endif | 132 #endif |
| OLD | NEW |