Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / ui / aura / test / event_generator.cc
index 42614f5..8ee8085 100644 (file)
@@ -11,7 +11,9 @@
 #include "ui/aura/window_event_dispatcher.h"
 #include "ui/aura/window_tree_host.h"
 #include "ui/events/event.h"
+#include "ui/events/event_source.h"
 #include "ui/events/event_utils.h"
+#include "ui/events/test/events_test_utils.h"
 #include "ui/gfx/vector2d_conversions.h"
 
 #if defined(USE_X11)
@@ -607,8 +609,10 @@ void EventGenerator::DoDispatchEvent(ui::Event* event, bool async) {
     }
     pending_events_.push_back(pending_event);
   } else {
+    ui::EventSource* event_source = current_host_->GetEventSource();
+    ui::EventSourceTestApi event_source_test(event_source);
     ui::EventDispatchDetails details =
-        current_host_->event_processor()->OnEventFromSource(event);
+        event_source_test.SendEventToProcessor(event);
     CHECK(!details.dispatcher_destroyed);
   }
 }