Chromium Code Reviews| Index: components/plugins/renderer/webview_plugin.cc |
| diff --git a/components/plugins/renderer/webview_plugin.cc b/components/plugins/renderer/webview_plugin.cc |
| index faf56e29ce43ac0fb0e58fb873780afd1f403d9e..5593dcc82385dcc31ae9f70fc75f3dcfc9e7a571 100644 |
| --- a/components/plugins/renderer/webview_plugin.cc |
| +++ b/components/plugins/renderer/webview_plugin.cc |
| @@ -46,7 +46,8 @@ WebViewPlugin::WebViewPlugin(WebViewPlugin::Delegate* delegate) |
| container_(NULL), |
| web_view_(WebView::create(this)), |
| web_frame_(WebFrame::create(this)), |
| - finished_loading_(false) { |
| + finished_loading_(false), |
| + focused_(false) { |
| web_view_->setMainFrame(web_frame_); |
| } |
| @@ -150,6 +151,14 @@ void WebViewPlugin::updateGeometry(const WebRect& frame_rect, |
| } |
| } |
| +void WebViewPlugin::updateFocus(bool focused){ |
|
Bernhard Bauer
2014/01/25 14:36:37
Nit: space before {
Ruiyi Luo
2014/01/26 09:40:28
Done.
|
| + focused_ = focused; |
| +} |
| + |
| +bool WebViewPlugin::hasFocus(){ |
|
Bernhard Bauer
2014/01/25 14:36:37
Here too.
|
| + return focused_; |
| +} |
| + |
| bool WebViewPlugin::acceptsInputEvents() { return true; } |
| bool WebViewPlugin::handleInputEvent(const WebInputEvent& event, |