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

Unified Diff: ui/events/ozone/evdev/event_converter_test_util.cc

Issue 858333006: [PATCH 9.6/11] ozone: evdev: Remove extra PostTask during dispatch from EventFactoryEvdev (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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
Index: ui/events/ozone/evdev/event_converter_test_util.cc
diff --git a/ui/events/ozone/evdev/event_converter_test_util.cc b/ui/events/ozone/evdev/event_converter_test_util.cc
index fccf69f022f228a1faffb364de87afa9b2b12ee8..c401f58fafd463a089bfa171b6e6e01f982cf004 100644
--- a/ui/events/ozone/evdev/event_converter_test_util.cc
+++ b/ui/events/ozone/evdev/event_converter_test_util.cc
@@ -7,6 +7,7 @@
#include "ui/events/ozone/device/device_manager.h"
#include "ui/events/ozone/evdev/device_event_dispatcher_evdev.h"
#include "ui/events/ozone/evdev/event_factory_evdev.h"
+#include "ui/events/platform/platform_event_dispatcher.h"
namespace ui {
@@ -94,8 +95,10 @@ class TestEventFactoryEvdev : public EventFactoryEvdev {
~TestEventFactoryEvdev() override {}
private:
- void PostUiEvent(scoped_ptr<Event> event) override {
- callback_.Run(event.Pass());
+ uint32_t DispatchEvent(PlatformEvent platform_event) override {
+ Event* event = static_cast<Event*>(platform_event);
+ callback_.Run(event);
+ return POST_DISPATCH_NONE;
}
EventDispatchCallback callback_;

Powered by Google App Engine
This is Rietveld 408576698