| 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 int size() const; | 70 BLINK_EXPORT int size() const; |
| 71 BLINK_EXPORT void setChecked(bool, bool sendEvents = false); | 71 BLINK_EXPORT void setChecked(bool, bool sendEvents = false); |
| 72 // Sets the value inside the text field without being sanitized. Can't be | 72 // Sets the value inside the text field without being sanitized. Can't be |
| 73 // used if a renderer doesn't exist or on a non text field type. Caret will | 73 // used if a renderer doesn't exist or on a non text field type. Caret will |
| 74 // be moved to the end. | 74 // be moved to the end. |
| 75 BLINK_EXPORT void setEditingValue(const WebString&); | 75 BLINK_EXPORT void setEditingValue(const WebString&); |
| 76 BLINK_EXPORT bool isValidValue(const WebString&) const; | 76 BLINK_EXPORT bool isValidValue(const WebString&) const; |
| 77 BLINK_EXPORT bool isChecked() const; | 77 BLINK_EXPORT bool isChecked() const; |
| 78 BLINK_EXPORT bool isMultiple() const; | 78 BLINK_EXPORT bool isMultiple() const; |
| 79 | 79 |
| 80 // Associated <datalsit> options which match to the current INPUT value. | 80 // Associated <datalist> options which match to the current INPUT value. |
| 81 BLINK_EXPORT WebVector<WebOptionElement> filteredDataListOptions() const; | 81 BLINK_EXPORT WebVector<WebOptionElement> filteredDataListOptions() const; |
| 82 | 82 |
| 83 // Return the localized value for this input type. | 83 // Return the localized value for this input type. |
| 84 BLINK_EXPORT WebString localizeValue(const WebString&) const; | 84 BLINK_EXPORT WebString localizeValue(const WebString&) const; |
| 85 | 85 |
| 86 // Exposes the default value of the maxLength attribute. | 86 // Exposes the default value of the maxLength attribute. |
| 87 BLINK_EXPORT static int defaultMaxLength(); | 87 BLINK_EXPORT static int defaultMaxLength(); |
| 88 | 88 |
| 89 // If true, forces the text of the element to be visible. | 89 // If true, forces the text of the element to be visible. |
| 90 BLINK_EXPORT void setShouldRevealPassword(bool value); | 90 BLINK_EXPORT void setShouldRevealPassword(bool value); |
| (...skipping 11 matching lines...) Expand all Loading... |
| 102 BLINK_EXPORT WebInputElement* toWebInputElement(WebElement*); | 102 BLINK_EXPORT WebInputElement* toWebInputElement(WebElement*); |
| 103 // This returns 0 if the specified WebElement is not a WebInputElement. | 103 // This returns 0 if the specified WebElement is not a WebInputElement. |
| 104 inline const WebInputElement* toWebInputElement(const WebElement* element) | 104 inline const WebInputElement* toWebInputElement(const WebElement* element) |
| 105 { | 105 { |
| 106 return toWebInputElement(const_cast<WebElement*>(element)); | 106 return toWebInputElement(const_cast<WebElement*>(element)); |
| 107 } | 107 } |
| 108 | 108 |
| 109 } // namespace blink | 109 } // namespace blink |
| 110 | 110 |
| 111 #endif | 111 #endif |
| OLD | NEW |