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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 | 66 |
67 // Returns true if autocomplete attribute of the element is not set as "off"
. | 67 // Returns true if autocomplete attribute of the element is not set as "off"
. |
68 BLINK_EXPORT bool autoComplete() const; | 68 BLINK_EXPORT bool autoComplete() const; |
69 | 69 |
70 // Sets value for input element, textarea element and select element. For se
lect | 70 // Sets value for input element, textarea element and select element. For se
lect |
71 // element it finds the option with value matches the given parameter and ma
ke the | 71 // element it finds the option with value matches the given parameter and ma
ke the |
72 // option as the current selection. | 72 // option as the current selection. |
73 BLINK_EXPORT void setValue(const WebString&, bool sendChangeEvent = false); | 73 BLINK_EXPORT void setValue(const WebString&, bool sendChangeEvent = false); |
74 // Returns value of element. For select element, it returns the value of | 74 // Returns value of element. For select element, it returns the value of |
75 // the selected option if present. If no selected option, an empty string | 75 // the selected option if present. If no selected option, an empty string |
76 // is returned. For any other types of elements, a null string is returned. | 76 // is returned. If element doesn't fall into input element, textarea element |
| 77 // and select element categories, a null string is returned. |
77 BLINK_EXPORT WebString value() const; | 78 BLINK_EXPORT WebString value() const; |
78 // Sets suggested value for element. The goal of introducing suggested value | 79 // Sets suggested value for element. For select element it finds the option |
79 // is to not leak any information to JavaScript. | 80 // with value matches the given parameter and make the option as the suggest
ed |
| 81 // selection. The goal of introducing suggested value is to not leak any inf
ormation |
| 82 // to JavaScript. |
80 BLINK_EXPORT void setSuggestedValue(const WebString&); | 83 BLINK_EXPORT void setSuggestedValue(const WebString&); |
81 // Returns suggested value for input element or textarea element. If neither | 84 // Returns suggested value of element. If element doesn't fall into input el
ement, |
82 // input element nor textarea element, a null string is returned. | 85 // textarea element and select element categories, a null string is returned
. |
83 BLINK_EXPORT WebString suggestedValue() const; | 86 BLINK_EXPORT WebString suggestedValue() const; |
84 | 87 |
85 // Returns the non-sanitized, exact value inside the text input field | 88 // Returns the non-sanitized, exact value inside the text input field |
86 // or insisde the textarea. If neither input element nor textarea element, | 89 // or insisde the textarea. If neither input element nor textarea element, |
87 // a null string is returned. | 90 // a null string is returned. |
88 BLINK_EXPORT WebString editingValue() const; | 91 BLINK_EXPORT WebString editingValue() const; |
89 | 92 |
90 // Sets character selection range. | 93 // Sets character selection range. |
91 BLINK_EXPORT void setSelectionRange(int start, int end); | 94 BLINK_EXPORT void setSelectionRange(int start, int end); |
92 // Returned value represents a cursor/caret position at the current | 95 // Returned value represents a cursor/caret position at the current |
(...skipping 18 matching lines...) Expand all Loading... |
111 #if BLINK_IMPLEMENTATION | 114 #if BLINK_IMPLEMENTATION |
112 WebFormControlElement(const WTF::PassRefPtr<WebCore::HTMLFormControlElement>
&); | 115 WebFormControlElement(const WTF::PassRefPtr<WebCore::HTMLFormControlElement>
&); |
113 WebFormControlElement& operator=(const WTF::PassRefPtr<WebCore::HTMLFormCont
rolElement>&); | 116 WebFormControlElement& operator=(const WTF::PassRefPtr<WebCore::HTMLFormCont
rolElement>&); |
114 operator WTF::PassRefPtr<WebCore::HTMLFormControlElement>() const; | 117 operator WTF::PassRefPtr<WebCore::HTMLFormControlElement>() const; |
115 #endif | 118 #endif |
116 }; | 119 }; |
117 | 120 |
118 } // namespace blink | 121 } // namespace blink |
119 | 122 |
120 #endif | 123 #endif |
OLD | NEW |