#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)
}
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);
}
}