[EFL][WK2] Add RunLoopEfl and WorkQueueEfl
[WebKit-https.git] / Source / WebCore / platform / RunLoop.h
index f08a042245a83fc7f19d0077dca2ea816169f16b..40b41949c877d93a281e74e0d938155e0b19c865 100644 (file)
 #include <wtf/gobject/GRefPtr.h>
 #endif
 
+#if PLATFORM(EFL)
+#include <Ecore.h>
+#endif
+
 namespace WebCore {
 
 class RunLoop {
@@ -95,6 +99,10 @@ public:
         void clearTimerSource();
         GRefPtr<GSource> m_timerSource;
         gboolean m_isRepeating;
+#elif PLATFORM(EFL)
+        static bool timerFired(void* data);
+        OwnPtr<Ecore_Timer> m_timer;
+        bool m_isRepeating;
 #endif
     };
 
@@ -157,6 +165,10 @@ public:
 private:
     GRefPtr<GMainContext> m_runLoopContext;
     Vector<GRefPtr<GMainLoop> > m_runLoopMainLoops;
+#elif PLATFORM(EFL)
+    bool m_initEfl;
+    OwnPtr<Ecore_Pipe> m_pipe;
+    static void wakeUpEvent(void* data, void*, unsigned int);
 #endif
 };