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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 // element nor textarea element, 0 is returned. | 98 // element nor textarea element, 0 is returned. |
99 BLINK_EXPORT int selectionStart() const; | 99 BLINK_EXPORT int selectionStart() const; |
100 // Returned value represents a cursor/caret position at the current | 100 // Returned value represents a cursor/caret position at the current |
101 // selection's end for text input field or textarea. If neither input | 101 // selection's end for text input field or textarea. If neither input |
102 // element nor textarea element, 0 is returned. | 102 // element nor textarea element, 0 is returned. |
103 BLINK_EXPORT int selectionEnd() const; | 103 BLINK_EXPORT int selectionEnd() const; |
104 | 104 |
105 // Returns direction of text of element. | 105 // Returns direction of text of element. |
106 BLINK_EXPORT WebString directionForFormData() const; | 106 BLINK_EXPORT WebString directionForFormData() const; |
107 | 107 |
| 108 // Returns true if sumit is activated. |
| 109 BLINK_EXPORT bool isActivatedSubmit() const; |
| 110 |
108 // Returns the name that should be used for the specified |element| when | 111 // Returns the name that should be used for the specified |element| when |
109 // storing autofill data. This is either the field name or its id, an empty | 112 // storing autofill data. This is either the field name or its id, an empty |
110 // string if it has no name and no id. | 113 // string if it has no name and no id. |
111 BLINK_EXPORT WebString nameForAutofill() const; | 114 BLINK_EXPORT WebString nameForAutofill() const; |
112 | 115 |
113 BLINK_EXPORT WebFormElement form() const; | 116 BLINK_EXPORT WebFormElement form() const; |
114 | 117 |
115 #if BLINK_IMPLEMENTATION | 118 #if BLINK_IMPLEMENTATION |
116 WebFormControlElement(const WTF::PassRefPtr<WebCore::HTMLFormControlElement>
&); | 119 WebFormControlElement(const WTF::PassRefPtr<WebCore::HTMLFormControlElement>
&); |
117 WebFormControlElement& operator=(const WTF::PassRefPtr<WebCore::HTMLFormCont
rolElement>&); | 120 WebFormControlElement& operator=(const WTF::PassRefPtr<WebCore::HTMLFormCont
rolElement>&); |
118 operator WTF::PassRefPtr<WebCore::HTMLFormControlElement>() const; | 121 operator WTF::PassRefPtr<WebCore::HTMLFormControlElement>() const; |
119 #endif | 122 #endif |
120 }; | 123 }; |
121 | 124 |
122 } // namespace blink | 125 } // namespace blink |
123 | 126 |
124 #endif | 127 #endif |
OLD | NEW |