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

Unified Diff: base/message_loop_unittest.cc

Issue 9958152: Consolidate win/x dispatchers (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: cleanup Created 8 years, 8 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
Index: base/message_loop_unittest.cc
diff --git a/base/message_loop_unittest.cc b/base/message_loop_unittest.cc
index b404dc80a2d9f88d7ce1d18e4a493cb992a78ceb..900d7c049cbff4d84fc027d649c4d7327ea9ad73 100644
--- a/base/message_loop_unittest.cc
+++ b/base/message_loop_unittest.cc
@@ -1080,7 +1080,7 @@ class DispatcherImpl : public MessageLoopForUI::Dispatcher {
public:
DispatcherImpl() : dispatch_count_(0) {}
- virtual bool Dispatch(const MSG& msg) {
+ virtual base::DispatchStatus Dispatch(const base::NativeEvent& msg) OVERRIDE {
::TranslateMessage(&msg);
::DispatchMessage(&msg);
// Do not count WM_TIMER since it is not what we post and it will cause
@@ -1088,7 +1088,8 @@ class DispatcherImpl : public MessageLoopForUI::Dispatcher {
if (msg.message != WM_TIMER)
++dispatch_count_;
// We treat WM_LBUTTONUP as the last message.
- return msg.message != WM_LBUTTONUP;
+ return msg.message != WM_LBUTTONUP ?
+ base::EVENT_PROCESSED : base::EVENT_QUIT;
}
int dispatch_count_;

Powered by Google App Engine
This is Rietveld 408576698