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) && |
416 !g_iat_patch_reg_enum_key_ex_w.Pointer()->is_patched()) { | 417 !g_iat_patch_reg_enum_key_ex_w.Pointer()->is_patched()) { |
417 g_iat_patch_reg_enum_key_ex_w.Pointer()->Patch( | 418 g_iat_patch_reg_enum_key_ex_w.Pointer()->Patch( |
418 L"wmpdxm.dll", "advapi32.dll", "RegEnumKeyExW", | 419 L"wmpdxm.dll", "advapi32.dll", "RegEnumKeyExW", |
419 WebPluginDelegateImpl::RegEnumKeyExWPatch); | 420 WebPluginDelegateImpl::RegEnumKeyExWPatch); |
420 } | 421 } |
421 | 422 |
422 return true; | 423 return true; |
423 } | 424 } |
424 | 425 |
425 void WebPluginDelegateImpl::PlatformDestroyInstance() { | 426 void WebPluginDelegateImpl::PlatformDestroyInstance() { |
(...skipping 964 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1390 case WM_LBUTTONUP: | 1391 case WM_LBUTTONUP: |
1391 case WM_MBUTTONUP: | 1392 case WM_MBUTTONUP: |
1392 case WM_RBUTTONUP: | 1393 case WM_RBUTTONUP: |
1393 ::ReleaseCapture(); | 1394 ::ReleaseCapture(); |
1394 break; | 1395 break; |
1395 | 1396 |
1396 default: | 1397 default: |
1397 break; | 1398 break; |
1398 } | 1399 } |
1399 } | 1400 } |
OLD | NEW |