diff options
Diffstat (limited to 'chrome')
-rw-r--r-- | chrome/renderer/webplugin_delegate_pepper.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/chrome/renderer/webplugin_delegate_pepper.cc b/chrome/renderer/webplugin_delegate_pepper.cc index 47eea91..0364e8f 100644 --- a/chrome/renderer/webplugin_delegate_pepper.cc +++ b/chrome/renderer/webplugin_delegate_pepper.cc @@ -93,6 +93,9 @@ bool WebPluginDelegatePepper::Initialize( // retreived via NPN_GetValue of NPNVnetscapeWindow. instance_->set_window_handle(parent_); + // This is a windowless plugin, so set it to have a NULL handle. + plugin_->SetWindow(NULL); + plugin_url_ = url.spec(); return true; @@ -568,13 +571,14 @@ bool WebPluginDelegatePepper::HandleInputEvent(const WebInputEvent& event, case NPEventType_KeyDown: case NPEventType_KeyUp: BuildKeyEvent(&event, &npevent); + break; case NPEventType_Char: BuildCharEvent(&event, &npevent); break; case NPEventType_Minimize: case NPEventType_Focus: case NPEventType_Device: - NOTIMPLEMENTED(); + // NOTIMPLEMENTED(); break; } return instance()->NPP_HandleEvent(&npevent) != 0; |