OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "content/child/npapi/webplugin_delegate_impl.h" | 5 #include "content/child/npapi/webplugin_delegate_impl.h" |
6 | 6 |
7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "content/child/npapi/plugin_instance.h" | 9 #include "content/child/npapi/plugin_instance.h" |
10 #include "content/child/npapi/webplugin.h" | 10 #include "content/child/npapi/webplugin.h" |
11 #include "webkit/common/cursors/webcursor.h" | 11 #include "webkit/common/cursors/webcursor.h" |
12 | 12 |
13 using WebKit::WebInputEvent; | 13 using WebKit::WebInputEvent; |
14 | 14 |
15 namespace content { | 15 namespace content { |
16 | 16 |
17 WebPluginDelegateImpl::WebPluginDelegateImpl( | 17 WebPluginDelegateImpl::WebPluginDelegateImpl( |
| 18 WebPlugin* plugin, |
18 PluginInstance* instance) | 19 PluginInstance* instance) |
19 : windowed_handle_(0), | 20 : windowed_handle_(0), |
20 windowed_did_set_window_(false), | 21 windowed_did_set_window_(false), |
21 windowless_(false), | 22 windowless_(false), |
22 plugin_(NULL), | 23 plugin_(plugin), |
23 instance_(instance), | 24 instance_(instance), |
24 quirks_(0), | 25 quirks_(0), |
25 handle_event_depth_(0), | 26 handle_event_depth_(0), |
26 first_set_window_call_(true) { | 27 first_set_window_call_(true) { |
27 memset(&window_, 0, sizeof(window_)); | 28 memset(&window_, 0, sizeof(window_)); |
28 } | 29 } |
29 | 30 |
30 WebPluginDelegateImpl::~WebPluginDelegateImpl() { | 31 WebPluginDelegateImpl::~WebPluginDelegateImpl() { |
31 } | 32 } |
32 | 33 |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 bool WebPluginDelegateImpl::PlatformSetPluginHasFocus(bool focused) { | 70 bool WebPluginDelegateImpl::PlatformSetPluginHasFocus(bool focused) { |
70 return false; | 71 return false; |
71 } | 72 } |
72 | 73 |
73 bool WebPluginDelegateImpl::PlatformHandleInputEvent( | 74 bool WebPluginDelegateImpl::PlatformHandleInputEvent( |
74 const WebInputEvent& event, WebCursor::CursorInfo* cursor_info) { | 75 const WebInputEvent& event, WebCursor::CursorInfo* cursor_info) { |
75 return false; | 76 return false; |
76 } | 77 } |
77 | 78 |
78 } // content | 79 } // content |
OLD | NEW |