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

Unified Diff: ash/accelerators/key_hold_detector.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 | « ash/accelerators/accelerator_controller_unittest.cc ('k') | ash/autoclick/autoclick_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/accelerators/key_hold_detector.cc
diff --git a/ash/accelerators/key_hold_detector.cc b/ash/accelerators/key_hold_detector.cc
index 7d5d62ac066b0f051c7bf3de3c783b563d328685..475d55fbeb97861f29752b31fc07710047b7b267 100644
--- a/ash/accelerators/key_hold_detector.cc
+++ b/ash/accelerators/key_hold_detector.cc
@@ -11,7 +11,7 @@
#include "ui/aura/window_tracker.h"
#include "ui/aura/window_tree_host.h"
#include "ui/events/event_dispatcher.h"
-#include "ui/events/event_processor.h"
+#include "ui/events/event_sink.h"
namespace ash {
namespace {
@@ -23,8 +23,7 @@ void DispatchPressedEvent(const ui::KeyEvent& key_event,
return;
ui::KeyEvent event(key_event);
aura::Window* target = *(tracker->windows().begin());
- ignore_result(
- target->GetHost()->event_processor()->OnEventFromSource(&event));
+ ignore_result(target->GetHost()->event_sink()->OnEventFromSource(&event));
}
void PostPressedEvent(ui::KeyEvent* event) {
« no previous file with comments | « ash/accelerators/accelerator_controller_unittest.cc ('k') | ash/autoclick/autoclick_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698