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

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: rebase 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 6dd5f4d39d52c26784ba942aeb310b0f8582c4f6..b4a28a2fb9d84e0956ea55250a87181c29c68a07 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 {
@@ -86,8 +87,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_;
« no previous file with comments | « ui/events/ozone/evdev/event_converter_evdev_impl_unittest.cc ('k') | ui/events/ozone/evdev/event_dispatch_callback.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698