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

Unified Diff: ui/aura/test/ui_controls_factory_ozone.cc

Issue 2712963003: mustash: Use ui::chromeos::EventRewriter in mus (Closed)
Patch Set: Fix build issues. Created 3 years, 9 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
« no previous file with comments | « ui/aura/test/aura_test_helper.h ('k') | ui/aura/window_targeter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/test/ui_controls_factory_ozone.cc
diff --git a/ui/aura/test/ui_controls_factory_ozone.cc b/ui/aura/test/ui_controls_factory_ozone.cc
index 6eb27bd9e76e23a3f67eec27c65e7daa248541fa..403757b947503c7c2cf344760960eb90af5a6937 100644
--- a/ui/aura/test/ui_controls_factory_ozone.cc
+++ b/ui/aura/test/ui_controls_factory_ozone.cc
@@ -180,10 +180,9 @@ class UIControlsOzone : public ui_controls::UIControlsAura {
}
private:
- void SendEventToProcessor(ui::Event* event) {
+ void SendEventToSink(ui::Event* event) {
ui::EventSourceTestApi event_source_test(host_->GetEventSource());
- ui::EventDispatchDetails details =
- event_source_test.SendEventToProcessor(event);
+ ui::EventDispatchDetails details = event_source_test.SendEventToSink(event);
if (details.dispatcher_destroyed)
return;
}
@@ -201,7 +200,7 @@ class UIControlsOzone : public ui_controls::UIControlsAura {
flags |= ui::EF_FINAL;
ui::KeyEvent key_event(type, key_code, flags);
- SendEventToProcessor(&key_event);
+ SendEventToSink(&key_event);
}
void PostMouseEvent(ui::EventType type,
@@ -225,7 +224,7 @@ class UIControlsOzone : public ui_controls::UIControlsAura {
// This hack is necessary to set the repeat count for clicks.
ui::MouseEvent mouse_event2(&mouse_event);
- SendEventToProcessor(&mouse_event2);
+ SendEventToSink(&mouse_event2);
}
WindowTreeHost* host_;
« no previous file with comments | « ui/aura/test/aura_test_helper.h ('k') | ui/aura/window_targeter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698