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

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: consistent quotation usage in layouttest html. 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
« no previous file with comments | « Source/core/html/ime/Composition.cpp ('k') | Source/core/html/ime/InputMethodContext.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
};
« no previous file with comments | « Source/core/html/ime/Composition.cpp ('k') | Source/core/html/ime/InputMethodContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698