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

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

Issue 2029423003: OOPIF IME: Renderer Side Changes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed an Error Created 4 years, 5 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 bfaa2ee40911e73d342ea3ac7e874c1ba99ccbe1..e8525edc6f0cbf7c508e212ac9e6bf8ca9a46ff6 100644
--- a/third_party/WebKit/public/web/WebWidget.h
+++ b/third_party/WebKit/public/web/WebWidget.h
@@ -243,6 +243,14 @@ public:
// control what are valid states for top controls and if it should animate.
virtual void updateTopControlsState(WebTopControlsState constraints, WebTopControlsState current, bool animate) { }
+ // Populate |bounds| with the composition character bounds for the ongoing
+ // composition. Returns false if there is no focused input or any ongoing
+ // composition.
+ virtual bool getCompositionCharacterBounds(WebVector<WebRect>& bounds) { return false; }
+
+ // Applies the range from |start| to |start + length| on the foucsed frame so that the text will later be replaced.
+ virtual void applyReplacementRange(int start, int length) {}
dcheng 2016/07/12 14:43:21 Does it make sense to move these to WebFrameWidget
EhsanK 2016/07/12 15:13:24 Sorry if the question is simplistic: I am making t
dcheng 2016/07/18 16:38:33 WebLocalFrame has a frameWidget method (which shou
EhsanK 2016/07/19 05:37:32 I think moving common logic in IME to a base class
+
protected:
~WebWidget() { }
};

Powered by Google App Engine
This is Rietveld 408576698