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

Unified Diff: third_party/WebKit/Source/core/editing/InputMethodController.h

Issue 2417643002: Move text input mode/info/type into InputMethodController (Closed)
Patch Set: Rebase Created 4 years, 2 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: third_party/WebKit/Source/core/editing/InputMethodController.h
diff --git a/third_party/WebKit/Source/core/editing/InputMethodController.h b/third_party/WebKit/Source/core/editing/InputMethodController.h
index 527f9b3d176da24f79c3eec64cc7ececd55bcb24..b9807d89bf703cf5495d64064d5bfa4b36356ae4 100644
--- a/third_party/WebKit/Source/core/editing/InputMethodController.h
+++ b/third_party/WebKit/Source/core/editing/InputMethodController.h
@@ -33,6 +33,8 @@
#include "core/editing/FrameSelection.h"
#include "core/editing/PlainTextRange.h"
#include "platform/heap/Handle.h"
+#include "public/platform/WebTextInputInfo.h"
+#include "public/platform/WebTextInputType.h"
#include "wtf/Vector.h"
namespace blink {
@@ -95,6 +97,8 @@ class CORE_EXPORT InputMethodController final
int end,
size_t textLength) const;
void deleteSurroundingText(int before, int after);
+ WebTextInputInfo textInputInfo() const;
+ WebTextInputType textInputType() const;
private:
Member<LocalFrame> m_frame;
@@ -136,6 +140,9 @@ class CORE_EXPORT InputMethodController final
const Vector<CompositionUnderline>&,
int selectionStart,
int selectionEnd);
+ int textInputFlags() const;
+ // TODO(dtapuska): Change this from a WebString to a WebTextInputMode.
+ WebString inputModeOfFocusedElement() const;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698