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; |
}; |