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 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
241 handle_event_depth_(0), | 241 handle_event_depth_(0), |
242 first_set_window_call_(true), | 242 first_set_window_call_(true), |
243 plugin_has_focus_(false), | 243 plugin_has_focus_(false), |
244 has_webkit_focus_(false), | 244 has_webkit_focus_(false), |
245 containing_view_has_focus_(true), | 245 containing_view_has_focus_(true), |
246 creation_succeeded_(false), | 246 creation_succeeded_(false), |
247 user_gesture_msg_factory_(this) { | 247 user_gesture_msg_factory_(this) { |
248 memset(&window_, 0, sizeof(window_)); | 248 memset(&window_, 0, sizeof(window_)); |
249 | 249 |
250 const WebPluginInfo& plugin_info = instance_->plugin_lib()->plugin_info(); | 250 const WebPluginInfo& plugin_info = instance_->plugin_lib()->plugin_info(); |
251 std::wstring filename = | 251 base::string16 filename = |
252 base::StringToLowerASCII(plugin_info.path.BaseName().value()); | 252 base::ToLowerASCII(plugin_info.path.BaseName().value()); |
253 | 253 |
254 if (instance_->mime_type() == kFlashPluginSwfMimeType || | 254 if (instance_->mime_type() == kFlashPluginSwfMimeType || |
255 filename == kFlashPlugin) { | 255 filename == kFlashPlugin) { |
256 // Flash only requests windowless plugins if we return a Mozilla user | 256 // Flash only requests windowless plugins if we return a Mozilla user |
257 // agent. | 257 // agent. |
258 instance_->set_use_mozilla_user_agent(); | 258 instance_->set_use_mozilla_user_agent(); |
259 quirks_ |= PLUGIN_QUIRK_THROTTLE_WM_USER_PLUS_ONE; | 259 quirks_ |= PLUGIN_QUIRK_THROTTLE_WM_USER_PLUS_ONE; |
260 quirks_ |= PLUGIN_QUIRK_PATCH_SETCURSOR; | 260 quirks_ |= PLUGIN_QUIRK_PATCH_SETCURSOR; |
261 quirks_ |= PLUGIN_QUIRK_ALWAYS_NOTIFY_SUCCESS; | 261 quirks_ |= PLUGIN_QUIRK_ALWAYS_NOTIFY_SUCCESS; |
262 quirks_ |= PLUGIN_QUIRK_HANDLE_MOUSE_CAPTURE; | 262 quirks_ |= PLUGIN_QUIRK_HANDLE_MOUSE_CAPTURE; |
(...skipping 1216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1479 case WM_RBUTTONUP: | 1479 case WM_RBUTTONUP: |
1480 ::ReleaseCapture(); | 1480 ::ReleaseCapture(); |
1481 break; | 1481 break; |
1482 | 1482 |
1483 default: | 1483 default: |
1484 break; | 1484 break; |
1485 } | 1485 } |
1486 } | 1486 } |
1487 | 1487 |
1488 } // namespace content | 1488 } // namespace content |
OLD | NEW |