| 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 394 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 405 GetCurrentThreadId()); | 405 GetCurrentThreadId()); |
| 406 } | 406 } |
| 407 } | 407 } |
| 408 | 408 |
| 409 // On XP, WMP will use its old UI unless a registry key under HKLM has the | 409 // On XP, WMP will use its old UI unless a registry key under HKLM has the |
| 410 // name of the current process. We do it in the installer for admin users, | 410 // name of the current process. We do it in the installer for admin users, |
| 411 // for the rest patch this function. | 411 // for the rest patch this function. |
| 412 if ((quirks_ & PLUGIN_QUIRK_PATCH_REGENUMKEYEXW) && | 412 if ((quirks_ & PLUGIN_QUIRK_PATCH_REGENUMKEYEXW) && |
| 413 win_util::GetWinVersion() == win_util::WINVERSION_XP && | 413 win_util::GetWinVersion() == win_util::WINVERSION_XP && |
| 414 !RegKey().Open(HKEY_LOCAL_MACHINE, | 414 !RegKey().Open(HKEY_LOCAL_MACHINE, |
| 415 L"SOFTWARE\\Microsoft\\MediaPlayer\\ShimInclusionList\\chrome.exe", | 415 L"SOFTWARE\\Microsoft\\MediaPlayer\\ShimInclusionList\\chrome.exe") && |
| 416 KEY_READ) && | |
| 417 !g_iat_patch_reg_enum_key_ex_w.Pointer()->is_patched()) { | 416 !g_iat_patch_reg_enum_key_ex_w.Pointer()->is_patched()) { |
| 418 g_iat_patch_reg_enum_key_ex_w.Pointer()->Patch( | 417 g_iat_patch_reg_enum_key_ex_w.Pointer()->Patch( |
| 419 L"wmpdxm.dll", "advapi32.dll", "RegEnumKeyExW", | 418 L"wmpdxm.dll", "advapi32.dll", "RegEnumKeyExW", |
| 420 WebPluginDelegateImpl::RegEnumKeyExWPatch); | 419 WebPluginDelegateImpl::RegEnumKeyExWPatch); |
| 421 } | 420 } |
| 422 | 421 |
| 423 return true; | 422 return true; |
| 424 } | 423 } |
| 425 | 424 |
| 426 void WebPluginDelegateImpl::PlatformDestroyInstance() { | 425 void WebPluginDelegateImpl::PlatformDestroyInstance() { |
| (...skipping 964 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1391 case WM_LBUTTONUP: | 1390 case WM_LBUTTONUP: |
| 1392 case WM_MBUTTONUP: | 1391 case WM_MBUTTONUP: |
| 1393 case WM_RBUTTONUP: | 1392 case WM_RBUTTONUP: |
| 1394 ::ReleaseCapture(); | 1393 ::ReleaseCapture(); |
| 1395 break; | 1394 break; |
| 1396 | 1395 |
| 1397 default: | 1396 default: |
| 1398 break; | 1397 break; |
| 1399 } | 1398 } |
| 1400 } | 1399 } |
| OLD | NEW |