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

Unified Diff: base/message_loop/message_pump_win.cc

Issue 2491403004: Remove CallMsgFilter from MessagePumpWin (Closed)
Patch Set: Created 4 years, 1 month 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: base/message_loop/message_pump_win.cc
diff --git a/base/message_loop/message_pump_win.cc b/base/message_loop/message_pump_win.cc
index 3f13818691c1b4ab18aacfd3a3775a8813af895c..f1ec727e7c63c8259e07f99d33b717e857d3a8d2 100644
--- a/base/message_loop/message_pump_win.cc
+++ b/base/message_loop/message_pump_win.cc
@@ -35,9 +35,6 @@ enum MessageLoopProblems {
// task (a series of such messages creates a continuous task pump).
static const int kMsgHaveWork = WM_USER + 1;
-// The application-defined code passed to the hook procedure.
-static const int kMessageFilterCode = 0x5001;
-
//-----------------------------------------------------------------------------
// MessagePumpWin public:
@@ -362,9 +359,6 @@ bool MessagePumpForUI::ProcessMessageHelper(const MSG& msg) {
if (msg.message == kMsgHaveWork && msg.hwnd == message_window_.hwnd())
return ProcessPumpReplacementMessage();
- if (CallMsgFilter(const_cast<MSG*>(&msg), kMessageFilterCode))
- return true;
-
TranslateMessage(&msg);
DispatchMessage(&msg);
@@ -536,10 +530,8 @@ bool MessagePumpForGpu::ProcessNextMessage() {
return true;
}
- if (!CallMsgFilter(const_cast<MSG*>(&msg), kMessageFilterCode)) {
- TranslateMessage(&msg);
- DispatchMessage(&msg);
- }
+ TranslateMessage(&msg);
+ DispatchMessage(&msg);
return true;
}
« 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