Chromium Code Reviews| 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() { } |
| }; |