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

Unified Diff: ui/keyboard/keyboard_util.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/events/test/events_test_utils.cc ('k') | ui/message_center/views/notification_view_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/keyboard/keyboard_util.cc
diff --git a/ui/keyboard/keyboard_util.cc b/ui/keyboard/keyboard_util.cc
index 8c3a8db9bb0fbcc253810643a8ee017e0e0ced58..e4bcee0d53877d7e4c3bc8e450676013be957993 100644
--- a/ui/keyboard/keyboard_util.cc
+++ b/ui/keyboard/keyboard_util.cc
@@ -17,7 +17,7 @@
#include "ui/base/ime/input_method_base.h"
#include "ui/base/ime/text_input_client.h"
#include "ui/base/ime/text_input_flags.h"
-#include "ui/events/event_processor.h"
+#include "ui/events/event_sink.h"
#include "ui/events/event_utils.h"
#include "ui/events/keycodes/dom/dom_code.h"
#include "ui/events/keycodes/dom/dom_key.h"
@@ -39,7 +39,7 @@ void SendProcessKeyEvent(ui::EventType type,
ui::EF_IS_SYNTHESIZED, ui::DomKey::PROCESS,
ui::EventTimeForNow());
ui::EventDispatchDetails details =
- host->event_processor()->OnEventFromSource(&event);
+ host->event_sink()->OnEventFromSource(&event);
CHECK(!details.dispatcher_destroyed);
}
@@ -267,12 +267,12 @@ bool MoveCursor(int swipe_direction,
modifier_flags, domkeyx,
ui::EventTimeForNow());
ui::EventDispatchDetails details =
- host->event_processor()->OnEventFromSource(&press_event);
+ host->event_sink()->OnEventFromSource(&press_event);
CHECK(!details.dispatcher_destroyed);
ui::KeyEvent release_event(ui::ET_KEY_RELEASED, codex, domcodex,
modifier_flags, domkeyx,
ui::EventTimeForNow());
- details = host->event_processor()->OnEventFromSource(&release_event);
+ details = host->event_sink()->OnEventFromSource(&release_event);
CHECK(!details.dispatcher_destroyed);
}
@@ -286,12 +286,12 @@ bool MoveCursor(int swipe_direction,
modifier_flags, domkeyy,
ui::EventTimeForNow());
ui::EventDispatchDetails details =
- host->event_processor()->OnEventFromSource(&press_event);
+ host->event_sink()->OnEventFromSource(&press_event);
CHECK(!details.dispatcher_destroyed);
ui::KeyEvent release_event(ui::ET_KEY_RELEASED, codey, domcodey,
modifier_flags, domkeyy,
ui::EventTimeForNow());
- details = host->event_processor()->OnEventFromSource(&release_event);
+ details = host->event_sink()->OnEventFromSource(&release_event);
CHECK(!details.dispatcher_destroyed);
}
return true;
@@ -358,7 +358,7 @@ bool SendKeyEvent(const std::string type,
input_method->DispatchKeyEvent(&event);
} else {
ui::EventDispatchDetails details =
- host->event_processor()->OnEventFromSource(&event);
+ host->event_sink()->OnEventFromSource(&event);
CHECK(!details.dispatcher_destroyed);
}
}
« no previous file with comments | « ui/events/test/events_test_utils.cc ('k') | ui/message_center/views/notification_view_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698