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

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

Issue 2333813002: Introduce WebInputMethodController to blink (Closed)
Patch Set: Replacing the angry copyright with the shorter one. Created 4 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
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 9bdd5fcc371b6796b21d0bf3a507c964780c0b1e..d3c2d0a5e34f9c1ec70f4e522015493eba9873e5 100644
--- a/third_party/WebKit/public/web/WebWidget.h
+++ b/third_party/WebKit/public/web/WebWidget.h
@@ -138,30 +138,6 @@ public:
// 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(); }

Powered by Google App Engine
This is Rietveld 408576698