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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 // This returns true for all of textfield-looking types such as text, | 63 // This returns true for all of textfield-looking types such as text, |
64 // password, search, email, url, and number. | 64 // password, search, email, url, and number. |
65 BLINK_EXPORT bool isTextField() const; | 65 BLINK_EXPORT bool isTextField() const; |
66 // This returns true only for type=text. | 66 // This returns true only for type=text. |
67 BLINK_EXPORT bool isText() const; | 67 BLINK_EXPORT bool isText() const; |
68 BLINK_EXPORT bool isPasswordField() const; | 68 BLINK_EXPORT bool isPasswordField() const; |
69 BLINK_EXPORT bool isImageButton() const; | 69 BLINK_EXPORT bool isImageButton() const; |
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 int maxLength() const; | 72 BLINK_EXPORT int maxLength() const; |
73 BLINK_EXPORT bool isActivatedSubmit() const; | |
74 BLINK_EXPORT void setActivatedSubmit(bool); | 73 BLINK_EXPORT void setActivatedSubmit(bool); |
75 BLINK_EXPORT int size() const; | 74 BLINK_EXPORT int size() const; |
76 BLINK_EXPORT void setChecked(bool, bool sendEvents = false); | 75 BLINK_EXPORT void setChecked(bool, bool sendEvents = false); |
77 // Sets the value inside the text field without being sanitized. | 76 // Sets the value inside the text field without being sanitized. |
78 // Can't be used if a renderer doesn't exist or on a non text field type
. | 77 // Can't be used if a renderer doesn't exist or on a non text field type
. |
79 // Caret will be moved to the end. | 78 // Caret will be moved to the end. |
80 BLINK_EXPORT void setEditingValue(const WebString&); | 79 BLINK_EXPORT void setEditingValue(const WebString&); |
81 BLINK_EXPORT bool isValidValue(const WebString&) const; | 80 BLINK_EXPORT bool isValidValue(const WebString&) const; |
82 BLINK_EXPORT bool isChecked() const; | 81 BLINK_EXPORT bool isChecked() const; |
83 BLINK_EXPORT bool isMultiple() const; | 82 BLINK_EXPORT bool isMultiple() const; |
(...skipping 27 matching lines...) Expand all Loading... |
111 BLINK_EXPORT WebInputElement* toWebInputElement(WebElement*); | 110 BLINK_EXPORT WebInputElement* toWebInputElement(WebElement*); |
112 | 111 |
113 inline const WebInputElement* toWebInputElement(const WebElement* element) | 112 inline const WebInputElement* toWebInputElement(const WebElement* element) |
114 { | 113 { |
115 return toWebInputElement(const_cast<WebElement*>(element)); | 114 return toWebInputElement(const_cast<WebElement*>(element)); |
116 } | 115 } |
117 | 116 |
118 } // namespace blink | 117 } // namespace blink |
119 | 118 |
120 #endif | 119 #endif |
OLD | NEW |