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

Unified Diff: base/message_loop.cc

Issue 444: Mac-specific CFRunLoop-based MessagePump implementation (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 years, 3 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 | « base/base.xcodeproj/project.pbxproj ('k') | base/message_pump_mac.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/message_loop.cc
===================================================================
--- base/message_loop.cc (revision 2520)
+++ base/message_loop.cc (working copy)
@@ -13,6 +13,9 @@
#include "base/string_util.h"
#include "base/thread_local.h"
+#if defined(OS_MACOSX)
+#include "base/message_pump_mac.h"
+#endif
#if defined(OS_POSIX)
#include "base/message_pump_libevent.h"
#endif
@@ -83,14 +86,19 @@
pump_ = new base::MessagePumpWin();
}
#elif defined(OS_POSIX)
+#if defined(OS_MACOSX)
+ if (type_ == TYPE_UI) {
+ pump_ = base::MessagePumpMac::Create();
+ } else
+#endif // OS_MACOSX
if (type_ == TYPE_IO) {
pump_ = new base::MessagePumpLibevent();
} else {
pump_ = new base::MessagePumpDefault();
}
-#else
+#else // OS_POSIX
pump_ = new base::MessagePumpDefault();
-#endif
+#endif // OS_POSIX
}
MessageLoop::~MessageLoop() {
« no previous file with comments | « base/base.xcodeproj/project.pbxproj ('k') | base/message_pump_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698