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 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
213 if (code == HC_ACTION) { | 213 if (code == HC_ACTION) { |
214 MOUSEHOOKSTRUCT* hook_struct = reinterpret_cast<MOUSEHOOKSTRUCT*>(lParam); | 214 MOUSEHOOKSTRUCT* hook_struct = reinterpret_cast<MOUSEHOOKSTRUCT*>(lParam); |
215 if (hook_struct) | 215 if (hook_struct) |
216 HandleCaptureForMessage(hook_struct->hwnd, wParam); | 216 HandleCaptureForMessage(hook_struct->hwnd, wParam); |
217 } | 217 } |
218 | 218 |
219 return CallNextHookEx(NULL, code, wParam, lParam); | 219 return CallNextHookEx(NULL, code, wParam, lParam); |
220 } | 220 } |
221 | 221 |
222 WebPluginDelegateImpl::WebPluginDelegateImpl( | 222 WebPluginDelegateImpl::WebPluginDelegateImpl( |
| 223 WebPlugin* plugin, |
223 PluginInstance* instance) | 224 PluginInstance* instance) |
224 : instance_(instance), | 225 : instance_(instance), |
225 quirks_(0), | 226 quirks_(0), |
226 plugin_(NULL), | 227 plugin_(plugin), |
227 windowless_(false), | 228 windowless_(false), |
228 windowed_handle_(NULL), | 229 windowed_handle_(NULL), |
229 windowed_did_set_window_(false), | 230 windowed_did_set_window_(false), |
230 plugin_wnd_proc_(NULL), | 231 plugin_wnd_proc_(NULL), |
231 last_message_(0), | 232 last_message_(0), |
232 is_calling_wndproc(false), | 233 is_calling_wndproc(false), |
233 dummy_window_for_activation_(NULL), | 234 dummy_window_for_activation_(NULL), |
234 dummy_window_parent_(NULL), | 235 dummy_window_parent_(NULL), |
235 old_dummy_window_proc_(NULL), | 236 old_dummy_window_proc_(NULL), |
236 handle_event_message_filter_hook_(NULL), | 237 handle_event_message_filter_hook_(NULL), |
(...skipping 1245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1482 case WM_RBUTTONUP: | 1483 case WM_RBUTTONUP: |
1483 ::ReleaseCapture(); | 1484 ::ReleaseCapture(); |
1484 break; | 1485 break; |
1485 | 1486 |
1486 default: | 1487 default: |
1487 break; | 1488 break; |
1488 } | 1489 } |
1489 } | 1490 } |
1490 | 1491 |
1491 } // namespace content | 1492 } // namespace content |
OLD | NEW |