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

Unified Diff: components/mus/ws/event_dispatcher.cc

Issue 2057793002: Reorganize event mojom files. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed typos in comments. Created 4 years, 6 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 | « components/mus/ws/event_dispatcher.h ('k') | components/mus/ws/event_dispatcher_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/ws/event_dispatcher.cc
diff --git a/components/mus/ws/event_dispatcher.cc b/components/mus/ws/event_dispatcher.cc
index 6b65573eb287abe1e177bee1c17d1184bf91a39d..7f13a648511976cadc56c5df314c2a80f5c94de8 100644
--- a/components/mus/ws/event_dispatcher.cc
+++ b/components/mus/ws/event_dispatcher.cc
@@ -254,7 +254,7 @@ void EventDispatcher::ProcessEvent(const ui::Event& event) {
const ui::KeyEvent* key_event = event.AsKeyEvent();
if (event.type() == ui::ET_KEY_PRESSED && !key_event->is_char()) {
Accelerator* pre_target =
- FindAccelerator(*key_event, mojom::AcceleratorPhase::PRE_TARGET);
+ FindAccelerator(*key_event, ui::mojom::AcceleratorPhase::PRE_TARGET);
if (pre_target) {
delegate_->OnAccelerator(pre_target->id(), event);
return;
@@ -274,7 +274,7 @@ void EventDispatcher::ProcessEvent(const ui::Event& event) {
void EventDispatcher::ProcessKeyEvent(const ui::KeyEvent& event) {
Accelerator* post_target =
- FindAccelerator(event, mojom::AcceleratorPhase::POST_TARGET);
+ FindAccelerator(event, ui::mojom::AcceleratorPhase::POST_TARGET);
ServerWindow* focused_window =
delegate_->GetFocusedWindowForEventDispatcher();
if (focused_window) {
@@ -497,7 +497,7 @@ void EventDispatcher::UnobserveWindow(ServerWindow* window) {
Accelerator* EventDispatcher::FindAccelerator(
const ui::KeyEvent& event,
- const mojom::AcceleratorPhase phase) {
+ const ui::mojom::AcceleratorPhase phase) {
for (const auto& pair : accelerators_) {
if (pair.second->MatchesEvent(event, phase)) {
return pair.second.get();
« no previous file with comments | « components/mus/ws/event_dispatcher.h ('k') | components/mus/ws/event_dispatcher_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698