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 f5733a90c9863dfec5e3a37dc65adebf98e7e5c1..8ea6de4c56322efdf097879b420f4b19954d137e 100644 |
| --- a/third_party/WebKit/public/web/WebWidget.h |
| +++ b/third_party/WebKit/public/web/WebWidget.h |
| @@ -232,6 +232,15 @@ class WebWidget { |
| // replaced. |
| virtual void applyReplacementRange(const WebRange&) {} |
| + // Current instance of the active WebInputMethodController, that is, the |
| + // WebInputMethodController corresponding to (and owned by) the focused |
| + // WebLocalFrameImpl. It might return nullptr when there are no focused |
| + // frames or possibly when the WebFrameWidget does not accept IME events. |
| + // This should only be overriden by frame widgets. |
| + virtual WebInputMethodController* getActiveWebInputMethodController() { |
|
dcheng
2016/12/05 19:19:49
Please add a comment here that the presence of thi
lfg
2016/12/05 19:26:33
When I reviewed this, I considered this to be a mo
EhsanK
2016/12/05 19:50:48
dcheng@: I actually think it might be better to ha
|
| + return nullptr; |
| + } |
| + |
| protected: |
| ~WebWidget() {} |
| }; |