| 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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 BLINK_EXPORT bool isRadioButton() const; | 70 BLINK_EXPORT bool isRadioButton() const; |
| 71 BLINK_EXPORT bool isCheckbox() const; | 71 BLINK_EXPORT bool isCheckbox() const; |
| 72 BLINK_EXPORT bool autoComplete() const; | 72 BLINK_EXPORT bool autoComplete() const; |
| 73 BLINK_EXPORT int maxLength() const; | 73 BLINK_EXPORT int maxLength() const; |
| 74 BLINK_EXPORT bool isActivatedSubmit() const; | 74 BLINK_EXPORT bool isActivatedSubmit() const; |
| 75 BLINK_EXPORT void setActivatedSubmit(bool); | 75 BLINK_EXPORT void setActivatedSubmit(bool); |
| 76 BLINK_EXPORT int size() const; | 76 BLINK_EXPORT int size() const; |
| 77 BLINK_EXPORT void setValue(const WebString&, bool sendChangeEvent = fals
e); | 77 BLINK_EXPORT void setValue(const WebString&, bool sendChangeEvent = fals
e); |
| 78 BLINK_EXPORT void setChecked(bool, bool sendChangeEvent = false); | 78 BLINK_EXPORT void setChecked(bool, bool sendChangeEvent = false); |
| 79 BLINK_EXPORT WebString value() const; | 79 BLINK_EXPORT WebString value() const; |
| 80 // This returns the non-sanitized, exact value inside the text field. | |
| 81 BLINK_EXPORT WebString editingValue() const; | |
| 82 // Sets the value inside the text field without being sanitized. | 80 // 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
. | 81 // 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. | 82 // Caret will be moved to the end. |
| 85 BLINK_EXPORT void setEditingValue(const WebString&); | 83 BLINK_EXPORT void setEditingValue(const WebString&); |
| 86 BLINK_EXPORT void setSuggestedValue(const WebString&); | 84 BLINK_EXPORT void setSuggestedValue(const WebString&); |
| 87 BLINK_EXPORT WebString suggestedValue() const; | 85 BLINK_EXPORT WebString suggestedValue() const; |
| 88 BLINK_EXPORT void setSelectionRange(int, int); | 86 BLINK_EXPORT void setSelectionRange(int, int); |
| 89 BLINK_EXPORT int selectionStart() const; | |
| 90 BLINK_EXPORT int selectionEnd() const; | |
| 91 BLINK_EXPORT bool isValidValue(const WebString&) const; | 87 BLINK_EXPORT bool isValidValue(const WebString&) const; |
| 92 BLINK_EXPORT bool isChecked() const; | 88 BLINK_EXPORT bool isChecked() const; |
| 93 BLINK_EXPORT bool isMultiple() const; | 89 BLINK_EXPORT bool isMultiple() const; |
| 94 | 90 |
| 95 BLINK_EXPORT WebElementCollection dataListOptions() const; | 91 BLINK_EXPORT WebElementCollection dataListOptions() const; |
| 96 | 92 |
| 97 // Return the localized value for this input type. | 93 // Return the localized value for this input type. |
| 98 BLINK_EXPORT WebString localizeValue(const WebString&) const; | 94 BLINK_EXPORT WebString localizeValue(const WebString&) const; |
| 99 | 95 |
| 100 BLINK_EXPORT bool isSpeechInputEnabled() const; | 96 BLINK_EXPORT bool isSpeechInputEnabled() const; |
| (...skipping 23 matching lines...) Expand all Loading... |
| 124 BLINK_EXPORT WebInputElement* toWebInputElement(WebElement*); | 120 BLINK_EXPORT WebInputElement* toWebInputElement(WebElement*); |
| 125 | 121 |
| 126 inline const WebInputElement* toWebInputElement(const WebElement* element) | 122 inline const WebInputElement* toWebInputElement(const WebElement* element) |
| 127 { | 123 { |
| 128 return toWebInputElement(const_cast<WebElement*>(element)); | 124 return toWebInputElement(const_cast<WebElement*>(element)); |
| 129 } | 125 } |
| 130 | 126 |
| 131 } // namespace blink | 127 } // namespace blink |
| 132 | 128 |
| 133 #endif | 129 #endif |
| OLD | NEW |