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 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
232 windowed_did_set_window_(false), | 232 windowed_did_set_window_(false), |
233 plugin_wnd_proc_(NULL), | 233 plugin_wnd_proc_(NULL), |
234 last_message_(0), | 234 last_message_(0), |
235 is_calling_wndproc(false), | 235 is_calling_wndproc(false), |
236 dummy_window_for_activation_(NULL), | 236 dummy_window_for_activation_(NULL), |
237 dummy_window_parent_(NULL), | 237 dummy_window_parent_(NULL), |
238 old_dummy_window_proc_(NULL), | 238 old_dummy_window_proc_(NULL), |
239 handle_event_message_filter_hook_(NULL), | 239 handle_event_message_filter_hook_(NULL), |
240 handle_event_pump_messages_event_(NULL), | 240 handle_event_pump_messages_event_(NULL), |
241 user_gesture_message_posted_(false), | 241 user_gesture_message_posted_(false), |
242 user_gesture_msg_factory_(this), | |
243 handle_event_depth_(0), | 242 handle_event_depth_(0), |
244 mouse_hook_(NULL), | 243 mouse_hook_(NULL), |
245 first_set_window_call_(true), | 244 first_set_window_call_(true), |
246 plugin_has_focus_(false), | 245 plugin_has_focus_(false), |
247 has_webkit_focus_(false), | 246 has_webkit_focus_(false), |
248 containing_view_has_focus_(true), | 247 containing_view_has_focus_(true), |
249 creation_succeeded_(false) { | 248 creation_succeeded_(false), |
| 249 user_gesture_msg_factory_(this) { |
250 memset(&window_, 0, sizeof(window_)); | 250 memset(&window_, 0, sizeof(window_)); |
251 | 251 |
252 const WebPluginInfo& plugin_info = instance_->plugin_lib()->plugin_info(); | 252 const WebPluginInfo& plugin_info = instance_->plugin_lib()->plugin_info(); |
253 std::wstring filename = | 253 std::wstring filename = |
254 base::StringToLowerASCII(plugin_info.path.BaseName().value()); | 254 base::StringToLowerASCII(plugin_info.path.BaseName().value()); |
255 | 255 |
256 if (instance_->mime_type() == kFlashPluginSwfMimeType || | 256 if (instance_->mime_type() == kFlashPluginSwfMimeType || |
257 filename == kFlashPlugin) { | 257 filename == kFlashPlugin) { |
258 // Flash only requests windowless plugins if we return a Mozilla user | 258 // Flash only requests windowless plugins if we return a Mozilla user |
259 // agent. | 259 // agent. |
(...skipping 1221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1481 case WM_RBUTTONUP: | 1481 case WM_RBUTTONUP: |
1482 ::ReleaseCapture(); | 1482 ::ReleaseCapture(); |
1483 break; | 1483 break; |
1484 | 1484 |
1485 default: | 1485 default: |
1486 break; | 1486 break; |
1487 } | 1487 } |
1488 } | 1488 } |
1489 | 1489 |
1490 } // namespace content | 1490 } // namespace content |
OLD | NEW |