Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(73)

Unified Diff: Source/WebKit/chromium/public/WebWidget.h

Issue 6532004: DO NOT SUBMIT (Closed) Base URL: git://git.webkit.org/WebKit.git@master
Patch Set: Migrate WebTextHelper Created 9 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;

Powered by Google App Engine
This is Rietveld 408576698