| 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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 BLINK_EXPORT void setSelectionRange(int start, int end); | 93 BLINK_EXPORT void setSelectionRange(int start, int end); |
| 94 // Returned value represents a cursor/caret position at the current | 94 // Returned value represents a cursor/caret position at the current |
| 95 // selection's start for text input field or textarea. If neither input | 95 // selection's start for text input field or textarea. If neither input |
| 96 // element nor textarea element, 0 is returned. | 96 // element nor textarea element, 0 is returned. |
| 97 BLINK_EXPORT int selectionStart() const; | 97 BLINK_EXPORT int selectionStart() const; |
| 98 // Returned value represents a cursor/caret position at the current | 98 // Returned value represents a cursor/caret position at the current |
| 99 // selection's end for text input field or textarea. If neither input | 99 // selection's end for text input field or textarea. If neither input |
| 100 // element nor textarea element, 0 is returned. | 100 // element nor textarea element, 0 is returned. |
| 101 BLINK_EXPORT int selectionEnd() const; | 101 BLINK_EXPORT int selectionEnd() const; |
| 102 | 102 |
| 103 // Returns text-align(only left and right are supported. see crbug.com/48233
9) of text of element. |
| 104 BLINK_EXPORT WebString alignmentForFormData() const; |
| 105 |
| 103 // Returns direction of text of element. | 106 // Returns direction of text of element. |
| 104 BLINK_EXPORT WebString directionForFormData() const; | 107 BLINK_EXPORT WebString directionForFormData() const; |
| 105 | 108 |
| 106 // Returns the name that should be used for the specified |element| when | 109 // Returns the name that should be used for the specified |element| when |
| 107 // storing autofill data. This is either the field name or its id, an empty | 110 // storing autofill data. This is either the field name or its id, an empty |
| 108 // string if it has no name and no id. | 111 // string if it has no name and no id. |
| 109 BLINK_EXPORT WebString nameForAutofill() const; | 112 BLINK_EXPORT WebString nameForAutofill() const; |
| 110 | 113 |
| 111 BLINK_EXPORT WebFormElement form() const; | 114 BLINK_EXPORT WebFormElement form() const; |
| 112 | 115 |
| 113 #if BLINK_IMPLEMENTATION | 116 #if BLINK_IMPLEMENTATION |
| 114 WebFormControlElement(HTMLFormControlElement*); | 117 WebFormControlElement(HTMLFormControlElement*); |
| 115 WebFormControlElement& operator=(HTMLFormControlElement*); | 118 WebFormControlElement& operator=(HTMLFormControlElement*); |
| 116 operator HTMLFormControlElement*() const; | 119 operator HTMLFormControlElement*() const; |
| 117 #endif | 120 #endif |
| 118 }; | 121 }; |
| 119 | 122 |
| 120 DECLARE_WEB_NODE_TYPE_CASTS(WebFormControlElement); | 123 DECLARE_WEB_NODE_TYPE_CASTS(WebFormControlElement); |
| 121 | 124 |
| 122 } // namespace blink | 125 } // namespace blink |
| 123 | 126 |
| 124 #endif | 127 #endif |
| OLD | NEW |