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

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: Address feedback Created 9 years, 9 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
« no previous file with comments | « Source/WebKit/chromium/public/WebFrame.h ('k') | Source/WebKit/chromium/public/mac/WebTextHelper.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..2b908082c445e0d08c80df1c5aba94c0665af689 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 current composition. This is also
+ // referred to as the marked range.
+ virtual bool compositionRange(unsigned* location, unsigned* length) = 0;
+
// 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 bool caretOrSelectionRange(unsigned* location, unsigned* length) = 0;
+
// Changes the text direction of the selected input node.
virtual void setTextDirection(WebTextDirection) = 0;
« no previous file with comments | « Source/WebKit/chromium/public/WebFrame.h ('k') | Source/WebKit/chromium/public/mac/WebTextHelper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698