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

Unified Diff: components/mus/common/event_matcher_util.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
Index: components/mus/common/event_matcher_util.cc
diff --git a/components/mus/common/event_matcher_util.cc b/components/mus/common/event_matcher_util.cc
index ea9f2be7fcbbba8444d54b9b51960696cb9e06d6..a82a12d3002a3117a579d14589b3ec67294fab88 100644
--- a/components/mus/common/event_matcher_util.cc
+++ b/components/mus/common/event_matcher_util.cc
@@ -6,19 +6,20 @@
namespace mus {
-mojom::EventMatcherPtr CreateKeyMatcher(mojom::KeyboardCode code, int flags) {
+mojom::EventMatcherPtr CreateKeyMatcher(ui::mojom::KeyboardCode code,
+ int flags) {
mojom::EventMatcherPtr matcher(mojom::EventMatcher::New());
matcher->type_matcher = mojom::EventTypeMatcher::New();
matcher->flags_matcher = mojom::EventFlagsMatcher::New();
matcher->ignore_flags_matcher = mojom::EventFlagsMatcher::New();
// Ignoring these makes most accelerator scenarios more straight forward. Code
// that needs to check them can override this setting.
- matcher->ignore_flags_matcher->flags = mojom::kEventFlagCapsLockOn |
- mojom::kEventFlagScrollLockOn |
- mojom::kEventFlagNumLockOn;
+ matcher->ignore_flags_matcher->flags = ui::mojom::kEventFlagCapsLockOn |
+ ui::mojom::kEventFlagScrollLockOn |
+ ui::mojom::kEventFlagNumLockOn;
matcher->key_matcher = mojom::KeyEventMatcher::New();
- matcher->type_matcher->type = mus::mojom::EventType::KEY_PRESSED;
+ matcher->type_matcher->type = ui::mojom::EventType::KEY_PRESSED;
matcher->flags_matcher->flags = flags;
matcher->key_matcher->keyboard_code = code;
return matcher;
« no previous file with comments | « components/mus/common/event_matcher_util.h ('k') | components/mus/public/cpp/tests/window_tree_client_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698