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

Unified Diff: Source/core/editing/PlainTextRange.h

Issue 297003003: Emit object replacement char to IME (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: add unit test Created 6 years, 7 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/editing/PlainTextRange.h
diff --git a/Source/core/editing/PlainTextRange.h b/Source/core/editing/PlainTextRange.h
index d3e2617a66612dadab714aefd13d5a02dc60bc19..f7969feec8ce293def82af81bd118912b48757d3 100644
--- a/Source/core/editing/PlainTextRange.h
+++ b/Source/core/editing/PlainTextRange.h
@@ -51,13 +51,14 @@ public:
PassRefPtrWillBeRawPtr<Range> createRange(const ContainerNode& scope) const;
PassRefPtrWillBeRawPtr<Range> createRangeForSelection(const ContainerNode& scope) const;
+ PassRefPtrWillBeRawPtr<Range> createRangeForInput(const ContainerNode& scope) const;
Yuta Kitamura 2014/05/28 07:36:07 "ForInput" sounds vague and too generic for this c
guohui 2014/05/28 13:19:12 Changed to createRangeForInputMethod.
static PlainTextRange create(const Node& scope, const Range&);
private:
PlainTextRange& operator=(const PlainTextRange&) WTF_DELETED_FUNCTION;
- enum GetRangeFor { ForGeneric, ForSelection };
+ enum GetRangeFor { ForGeneric, ForSelection, ForInput };
PassRefPtrWillBeRawPtr<Range> createRangeFor(const ContainerNode& scope, GetRangeFor) const;
const size_t m_start;

Powered by Google App Engine
This is Rietveld 408576698