| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "webkit/glue/plugins/webplugin_delegate_impl.h" | 5 #include "webkit/glue/plugins/webplugin_delegate_impl.h" |
| 6 | 6 |
| 7 #include <map> | 7 #include <map> |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 282 // Flash only requests windowless plugins if we return a Mozilla user | 282 // Flash only requests windowless plugins if we return a Mozilla user |
| 283 // agent. | 283 // agent. |
| 284 instance_->set_use_mozilla_user_agent(); | 284 instance_->set_use_mozilla_user_agent(); |
| 285 quirks_ |= PLUGIN_QUIRK_THROTTLE_WM_USER_PLUS_ONE; | 285 quirks_ |= PLUGIN_QUIRK_THROTTLE_WM_USER_PLUS_ONE; |
| 286 quirks_ |= PLUGIN_QUIRK_PATCH_SETCURSOR; | 286 quirks_ |= PLUGIN_QUIRK_PATCH_SETCURSOR; |
| 287 quirks_ |= PLUGIN_QUIRK_ALWAYS_NOTIFY_SUCCESS; | 287 quirks_ |= PLUGIN_QUIRK_ALWAYS_NOTIFY_SUCCESS; |
| 288 quirks_ |= PLUGIN_QUIRK_HANDLE_MOUSE_CAPTURE; | 288 quirks_ |= PLUGIN_QUIRK_HANDLE_MOUSE_CAPTURE; |
| 289 } else if (filename == kAcrobatReaderPlugin) { | 289 } else if (filename == kAcrobatReaderPlugin) { |
| 290 // Check for the version number above or equal 9. | 290 // Check for the version number above or equal 9. |
| 291 std::vector<std::wstring> version; | 291 std::vector<std::wstring> version; |
| 292 SplitString(plugin_info.version, L'.', &version); | 292 base::SplitString(plugin_info.version, L'.', &version); |
| 293 if (version.size() > 0) { | 293 if (version.size() > 0) { |
| 294 int major; | 294 int major; |
| 295 base::StringToInt(version[0], &major); | 295 base::StringToInt(version[0], &major); |
| 296 if (major >= 9) { | 296 if (major >= 9) { |
| 297 quirks_ |= PLUGIN_QUIRK_DIE_AFTER_UNLOAD; | 297 quirks_ |= PLUGIN_QUIRK_DIE_AFTER_UNLOAD; |
| 298 | 298 |
| 299 // 9.2 needs this. | 299 // 9.2 needs this. |
| 300 quirks_ |= PLUGIN_QUIRK_SETWINDOW_TWICE; | 300 quirks_ |= PLUGIN_QUIRK_SETWINDOW_TWICE; |
| 301 } | 301 } |
| 302 } | 302 } |
| (...skipping 1097 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1400 case WM_LBUTTONUP: | 1400 case WM_LBUTTONUP: |
| 1401 case WM_MBUTTONUP: | 1401 case WM_MBUTTONUP: |
| 1402 case WM_RBUTTONUP: | 1402 case WM_RBUTTONUP: |
| 1403 ::ReleaseCapture(); | 1403 ::ReleaseCapture(); |
| 1404 break; | 1404 break; |
| 1405 | 1405 |
| 1406 default: | 1406 default: |
| 1407 break; | 1407 break; |
| 1408 } | 1408 } |
| 1409 } | 1409 } |
| OLD | NEW |