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

Unified Diff: Source/core/html/ime/InputMethodContext.h

Issue 23604053: Implement Composition interface for IME API (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: . Created 7 years, 3 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/core/html/ime/InputMethodContext.h
diff --git a/Source/core/html/ime/InputMethodContext.h b/Source/core/html/ime/InputMethodContext.h
index e75be3905a97d424d0c7f72f1e8b6ff75406382c..33f72c77d0947ac70ff5c96e9161aed9af98bab3 100644
--- a/Source/core/html/ime/InputMethodContext.h
+++ b/Source/core/html/ime/InputMethodContext.h
@@ -32,6 +32,7 @@
#define InputMethodContext_h
#include "bindings/v8/ScriptWrappable.h"
+#include "core/editing/CompositionUnderline.h"
#include "core/html/HTMLElement.h"
#include "wtf/PassOwnPtr.h"
#include "wtf/RefPtr.h"
@@ -57,9 +58,18 @@ public:
void setCaretRectangle(Node* anchor, int x, int y, int w, int h);
void setExclusionRectangle(Node* anchor, int x, int y, int w, int h);
+ String getCompositionText() const;
tkent 2013/09/11 08:10:55 Do not add "get" prefix for getter functions. See
kochi 2013/09/11 08:32:00 Done.
+ int getSelectionStart() const;
+ int getSelectionEnd() const;
+ const Vector<unsigned>& getSegments();
+
private:
InputMethodContext(HTMLElement*);
+ bool hasFocus() const;
+ CompositionUnderline getSelectedSegment() const;
+
RefPtr<Composition> m_composition;
+ Vector<unsigned> m_segments;
HTMLElement* m_element;
};

Powered by Google App Engine
This is Rietveld 408576698