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 <map> | 7 #include <map> |
8 #include <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
214 int code, WPARAM wParam, LPARAM lParam) { | 214 int code, WPARAM wParam, LPARAM lParam) { |
215 if (code == HC_ACTION) { | 215 if (code == HC_ACTION) { |
216 MOUSEHOOKSTRUCT* hook_struct = reinterpret_cast<MOUSEHOOKSTRUCT*>(lParam); | 216 MOUSEHOOKSTRUCT* hook_struct = reinterpret_cast<MOUSEHOOKSTRUCT*>(lParam); |
217 if (hook_struct) | 217 if (hook_struct) |
218 HandleCaptureForMessage(hook_struct->hwnd, wParam); | 218 HandleCaptureForMessage(hook_struct->hwnd, wParam); |
219 } | 219 } |
220 | 220 |
221 return CallNextHookEx(NULL, code, wParam, lParam); | 221 return CallNextHookEx(NULL, code, wParam, lParam); |
222 } | 222 } |
223 | 223 |
224 WebPluginDelegateImpl::WebPluginDelegateImpl( | 224 WebPluginDelegateImpl::WebPluginDelegateImpl(WebPlugin* plugin, |
225 WebPlugin* plugin, | 225 PluginInstance* instance) |
226 PluginInstance* instance) | 226 : windowed_handle_(NULL), |
227 : instance_(instance), | 227 windowed_did_set_window_(false), |
228 quirks_(0), | 228 windowless_(false), |
229 plugin_(plugin), | 229 plugin_(plugin), |
230 windowless_(false), | 230 instance_(instance), |
231 windowed_handle_(NULL), | |
232 windowed_did_set_window_(false), | |
233 plugin_wnd_proc_(NULL), | 231 plugin_wnd_proc_(NULL), |
234 last_message_(0), | 232 last_message_(0), |
235 is_calling_wndproc(false), | 233 is_calling_wndproc(false), |
| 234 quirks_(0), |
236 dummy_window_for_activation_(NULL), | 235 dummy_window_for_activation_(NULL), |
237 dummy_window_parent_(NULL), | 236 dummy_window_parent_(NULL), |
238 old_dummy_window_proc_(NULL), | 237 old_dummy_window_proc_(NULL), |
239 handle_event_message_filter_hook_(NULL), | 238 handle_event_message_filter_hook_(NULL), |
240 handle_event_pump_messages_event_(NULL), | 239 handle_event_pump_messages_event_(NULL), |
241 user_gesture_message_posted_(false), | 240 user_gesture_message_posted_(false), |
| 241 mouse_hook_(NULL), |
242 handle_event_depth_(0), | 242 handle_event_depth_(0), |
243 mouse_hook_(NULL), | |
244 first_set_window_call_(true), | 243 first_set_window_call_(true), |
245 plugin_has_focus_(false), | 244 plugin_has_focus_(false), |
246 has_webkit_focus_(false), | 245 has_webkit_focus_(false), |
247 containing_view_has_focus_(true), | 246 containing_view_has_focus_(true), |
248 creation_succeeded_(false), | 247 creation_succeeded_(false), |
249 user_gesture_msg_factory_(this) { | 248 user_gesture_msg_factory_(this) { |
250 memset(&window_, 0, sizeof(window_)); | 249 memset(&window_, 0, sizeof(window_)); |
251 | 250 |
252 const WebPluginInfo& plugin_info = instance_->plugin_lib()->plugin_info(); | 251 const WebPluginInfo& plugin_info = instance_->plugin_lib()->plugin_info(); |
253 std::wstring filename = | 252 std::wstring filename = |
(...skipping 1227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1481 case WM_RBUTTONUP: | 1480 case WM_RBUTTONUP: |
1482 ::ReleaseCapture(); | 1481 ::ReleaseCapture(); |
1483 break; | 1482 break; |
1484 | 1483 |
1485 default: | 1484 default: |
1486 break; | 1485 break; |
1487 } | 1486 } |
1488 } | 1487 } |
1489 | 1488 |
1490 } // namespace content | 1489 } // namespace content |
OLD | NEW |