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

Unified Diff: runtime/bin/eventhandler.h

Issue 8431027: Some Linux and Mac OS event handler refactoring (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Addressed review comments from ager£ 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 | runtime/bin/eventhandler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/eventhandler.h
diff --git a/runtime/bin/eventhandler.h b/runtime/bin/eventhandler.h
index 71df2044c4976c947f0e75d8208bebb319eb107f..156f4d0750ad70b0928965b83a27f8e4560e663e 100644
--- a/runtime/bin/eventhandler.h
+++ b/runtime/bin/eventhandler.h
@@ -7,17 +7,6 @@
#include "bin/builtin.h"
-// The event handler delegation class is OS specific.
-#if defined(TARGET_OS_LINUX)
-#include "bin/eventhandler_linux.h"
-#elif defined(TARGET_OS_MACOS)
-#include "bin/eventhandler_macos.h"
-#elif defined(TARGET_OS_WINDOWS)
-#include "bin/eventhandler_win.h"
-#else
-#error Unknown target os.
-#endif
-
// Flags used to provide information and actions to the eventhandler
// when sending a message about a file descriptor. These flags should
// be kept in sync with the constants in socket_impl.dart. For more
@@ -32,6 +21,17 @@ enum MessageFlags {
};
+// The event handler delegation class is OS specific.
+#if defined(TARGET_OS_LINUX)
+#include "bin/eventhandler_linux.h"
+#elif defined(TARGET_OS_MACOS)
+#include "bin/eventhandler_macos.h"
+#elif defined(TARGET_OS_WINDOWS)
+#include "bin/eventhandler_win.h"
+#else
+#error Unknown target os.
+#endif
+
class EventHandler {
public:
void SendData(intptr_t id, Dart_Port dart_port, intptr_t data) {
« no previous file with comments | « no previous file | runtime/bin/eventhandler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698