Chromium Code Reviews| Index: Source/WebKit/chromium/public/WebWidget.h |
| diff --git a/Source/WebKit/chromium/public/WebWidget.h b/Source/WebKit/chromium/public/WebWidget.h |
| index 36fbf313ad17464c41d8d927cb2132adab6ae881..5baa4b26367e4244ae94dba97ff16341801c977c 100644 |
| --- a/Source/WebKit/chromium/public/WebWidget.h |
| +++ b/Source/WebKit/chromium/public/WebWidget.h |
| @@ -40,6 +40,7 @@ |
| namespace WebKit { |
| class WebInputEvent; |
| +class WebRange; |
| class WebString; |
| struct WebRect; |
| struct WebSize; |
| @@ -119,6 +120,10 @@ public: |
| // Returns true if there is an ongoing composition or the text is inserted. |
| virtual bool confirmComposition(const WebString& text) = 0; |
| + // Returns the character range of the currently composition. This is also |
| + // referred to as the marked range. |
| + virtual WebRange compositionRange() = 0; |
|
James Su
2011/03/03 04:08:03
We should convert the result range into absolute c
Robert Sesek
2011/03/18 21:33:36
Done.
|
| + |
| // Returns the current text input type of this WebWidget. |
| virtual WebTextInputType textInputType() = 0; |
| @@ -126,6 +131,11 @@ public: |
| // will be returned if a selection range is available. |
| virtual WebRect caretOrSelectionBounds() = 0; |
| + // Returns the current selection range of this WebWidget. If there is no |
| + // selection, it will return a 0-length range with the location at the |
| + // caret. |
| + virtual WebRange caretOrSelectionRange() = 0; |
|
James Su
2011/03/03 04:08:03
Same as above.
Robert Sesek
2011/03/18 21:33:36
Done.
|
| + |
| // Changes the text direction of the selected input node. |
| virtual void setTextDirection(WebTextDirection) = 0; |