Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1178)

Unified Diff: content/browser/renderer_host/render_widget_host_view_win.cc

Issue 8371012: Remove one manually bound user32 call (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/render_widget_host_view_win.cc
===================================================================
--- content/browser/renderer_host/render_widget_host_view_win.cc (revision 106770)
+++ content/browser/renderer_host/render_widget_host_view_win.cc (working copy)
@@ -200,14 +200,6 @@
return ::DefWindowProc(window, message, wparam, lparam);
}
-// Must be dynamically loaded to avoid startup failures on Win XP.
-typedef BOOL (WINAPI *ChangeWindowMessageFilterExFunction)(
- HWND hwnd,
- UINT message,
- DWORD action,
- PCHANGEFILTERSTRUCT change_filter_struct);
-ChangeWindowMessageFilterExFunction g_ChangeWindowMessageFilterEx;
-
} // namespace
///////////////////////////////////////////////////////////////////////////////
@@ -448,17 +440,9 @@
if (::GetPropW(orig_parent, webkit::npapi::kNativeWindowClassFilterProp)) {
// Process-wide message filters required on Vista must be added to:
// chrome_content_client.cc ChromeContentClient::SandboxPlugin
- if (!g_ChangeWindowMessageFilterEx) {
- g_ChangeWindowMessageFilterEx =
- reinterpret_cast<ChangeWindowMessageFilterExFunction>(
- ::GetProcAddress(::GetModuleHandle(L"user32.dll"),
- "ChangeWindowMessageFilterEx"));
- }
- // Process-wide message filters required on Vista must be added to:
- // chrome_content_client.cc ChromeContentClient::SandboxPlugin
- g_ChangeWindowMessageFilterEx(parent, WM_MOUSEWHEEL, MSGFLT_ALLOW, NULL);
- g_ChangeWindowMessageFilterEx(parent, WM_GESTURE, MSGFLT_ALLOW, NULL);
- g_ChangeWindowMessageFilterEx(parent, WM_APPCOMMAND, MSGFLT_ALLOW, NULL);
+ ChangeWindowMessageFilterEx(parent, WM_MOUSEWHEEL, MSGFLT_ALLOW, NULL);
+ ChangeWindowMessageFilterEx(parent, WM_GESTURE, MSGFLT_ALLOW, NULL);
+ ChangeWindowMessageFilterEx(parent, WM_APPCOMMAND, MSGFLT_ALLOW, NULL);
::RemovePropW(orig_parent, webkit::npapi::kNativeWindowClassFilterProp);
}
::SetParent(window, parent);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698