Chromium Code Reviews| Index: third_party/WebKit/public/web/WebView.h |
| diff --git a/third_party/WebKit/public/web/WebView.h b/third_party/WebKit/public/web/WebView.h |
| index ccd46ce923ab392a5ec3aa6c8e7f44ebcbcfe5de..03ac79b97d0b32a36e30fafca8cf83f29f3d7480 100644 |
| --- a/third_party/WebKit/public/web/WebView.h |
| +++ b/third_party/WebKit/public/web/WebView.h |
| @@ -166,6 +166,12 @@ public: |
| virtual WebFrame* focusedFrame() = 0; |
| virtual void setFocusedFrame(WebFrame*) = 0; |
| + // Sets the provided frame as focused and fires blur/focus events on any |
| + // currently focused elements in old/new focused documents. Note that this |
| + // is different from setFocusedFrame, which does not fire events on focused |
| + // elements. |
| + virtual void focusDocumentView(WebFrame*) = 0; |
|
alexmos
2015/11/02 23:23:51
Instead of this, I could add a bool flag to setFoc
dcheng
2015/11/04 01:46:21
I think this is fine: it's pretty subtle though. M
|
| + |
| // Focus the first (last if reverse is true) focusable node. |
| virtual void setInitialFocus(bool reverse) = 0; |