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/plugins/npapi/webplugin_delegate_impl.h" | 5 #include "webkit/plugins/npapi/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 400 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
411 mouse_hook_ = SetWindowsHookEx(WH_MOUSE, MouseHookProc, NULL, | 411 mouse_hook_ = SetWindowsHookEx(WH_MOUSE, MouseHookProc, NULL, |
412 GetCurrentThreadId()); | 412 GetCurrentThreadId()); |
413 } | 413 } |
414 } | 414 } |
415 | 415 |
416 // On XP, WMP will use its old UI unless a registry key under HKLM has the | 416 // On XP, WMP will use its old UI unless a registry key under HKLM has the |
417 // name of the current process. We do it in the installer for admin users, | 417 // name of the current process. We do it in the installer for admin users, |
418 // for the rest patch this function. | 418 // for the rest patch this function. |
419 if ((quirks_ & PLUGIN_QUIRK_PATCH_REGENUMKEYEXW) && | 419 if ((quirks_ & PLUGIN_QUIRK_PATCH_REGENUMKEYEXW) && |
420 base::win::GetVersion() == base::win::VERSION_XP && | 420 base::win::GetVersion() == base::win::VERSION_XP && |
421 !base::win::RegKey().Open(HKEY_LOCAL_MACHINE, | 421 (base::win::RegKey().Open(HKEY_LOCAL_MACHINE, |
422 L"SOFTWARE\\Microsoft\\MediaPlayer\\ShimInclusionList\\chrome.exe", | 422 L"SOFTWARE\\Microsoft\\MediaPlayer\\ShimInclusionList\\chrome.exe", |
423 KEY_READ) && | 423 KEY_READ) != ERROR_SUCCESS) && |
424 !g_iat_patch_reg_enum_key_ex_w.Pointer()->is_patched()) { | 424 !g_iat_patch_reg_enum_key_ex_w.Pointer()->is_patched()) { |
425 g_iat_patch_reg_enum_key_ex_w.Pointer()->Patch( | 425 g_iat_patch_reg_enum_key_ex_w.Pointer()->Patch( |
426 L"wmpdxm.dll", "advapi32.dll", "RegEnumKeyExW", | 426 L"wmpdxm.dll", "advapi32.dll", "RegEnumKeyExW", |
427 WebPluginDelegateImpl::RegEnumKeyExWPatch); | 427 WebPluginDelegateImpl::RegEnumKeyExWPatch); |
428 } | 428 } |
429 | 429 |
430 return true; | 430 return true; |
431 } | 431 } |
432 | 432 |
433 void WebPluginDelegateImpl::PlatformDestroyInstance() { | 433 void WebPluginDelegateImpl::PlatformDestroyInstance() { |
(...skipping 971 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1405 ::ReleaseCapture(); | 1405 ::ReleaseCapture(); |
1406 break; | 1406 break; |
1407 | 1407 |
1408 default: | 1408 default: |
1409 break; | 1409 break; |
1410 } | 1410 } |
1411 } | 1411 } |
1412 | 1412 |
1413 } // namespace npapi | 1413 } // namespace npapi |
1414 } // namespace webkit | 1414 } // namespace webkit |
OLD | NEW |