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..21999ad0019c4984800f7bef1f54e40c5126984a 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" |
@@ -40,6 +41,7 @@ |
namespace WebCore { |
class Composition; |
+class InputMethodController; |
class Node; |
class InputMethodContext : public ScriptWrappable { |
@@ -57,9 +59,19 @@ 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 compositionText() const; |
+ int selectionStart() const; |
+ int selectionEnd() const; |
+ const Vector<unsigned>& segments(); |
+ |
private: |
InputMethodContext(HTMLElement*); |
+ bool hasFocus() const; |
+ CompositionUnderline selectedSegment() const; |
+ InputMethodController& inputMethodController() const; |
+ |
RefPtr<Composition> m_composition; |
+ Vector<unsigned> m_segments; |
HTMLElement* m_element; |
}; |