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

Unified Diff: third_party/WebKit/public/web/WebWidget.h

Issue 2333813002: Introduce WebInputMethodController to blink (Closed)
Patch Set: Rebased Created 4 years, 1 month 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 | « third_party/WebKit/public/web/WebView.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/public/web/WebWidget.h
diff --git a/third_party/WebKit/public/web/WebWidget.h b/third_party/WebKit/public/web/WebWidget.h
index 452b8434c95c8ebe8b4945d10ef2c074ffc06df9..f5733a90c9863dfec5e3a37dc65adebf98e7e5c1 100644
--- a/third_party/WebKit/public/web/WebWidget.h
+++ b/third_party/WebKit/public/web/WebWidget.h
@@ -141,37 +141,6 @@ class WebWidget {
// Called to inform the WebWidget that it has gained or lost keyboard focus.
virtual void setFocus(bool) {}
- // Called to inform the WebWidget of a new composition text.
- // If selectionStart and selectionEnd has the same value, then it indicates
- // the input caret position. If the text is empty, then the existing
- // composition text will be cancelled.
- // Returns true if the composition text was set successfully.
- virtual bool setComposition(
- const WebString& text,
- const WebVector<WebCompositionUnderline>& underlines,
- int selectionStart,
- int selectionEnd) {
- return false;
- }
-
- enum ConfirmCompositionBehavior {
- DoNotKeepSelection,
- KeepSelection,
- };
-
- // Called to inform the WebWidget that deleting the ongoing composition if
- // any, inserting the specified text, and moving the caret according to
- // relativeCaretPosition.
- virtual bool commitText(const WebString& text, int relativeCaretPosition) {
- return false;
- }
-
- // Called to inform the WebWidget to confirm an ongoing composition.
- virtual bool finishComposingText(
- ConfirmCompositionBehavior selectionBehavior) {
- return false;
- }
-
// Fetches the character range of the current composition, also called the
// "marked range."
virtual WebRange compositionRange() { return WebRange(); }
« no previous file with comments | « third_party/WebKit/public/web/WebView.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698