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

Unified Diff: components/mus/public/cpp/lib/event_matcher_util.cc

Issue 1956093002: mus: Move event_matcher_util.h/cc into components/mus/common (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 7 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/public/cpp/event_matcher_util.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/public/cpp/lib/event_matcher_util.cc
diff --git a/components/mus/public/cpp/lib/event_matcher_util.cc b/components/mus/public/cpp/lib/event_matcher_util.cc
deleted file mode 100644
index 84d4811f56024c366f961c96d83baa099a87b05f..0000000000000000000000000000000000000000
--- a/components/mus/public/cpp/lib/event_matcher_util.cc
+++ /dev/null
@@ -1,27 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "components/mus/public/cpp/event_matcher_util.h"
-
-namespace mus {
-
-mojom::EventMatcherPtr CreateKeyMatcher(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->key_matcher = mojom::KeyEventMatcher::New();
-
- matcher->type_matcher->type = mus::mojom::EventType::KEY_PRESSED;
- matcher->flags_matcher->flags = flags;
- matcher->key_matcher->keyboard_code = code;
- return matcher;
-}
-
-} // namespace mus
« no previous file with comments | « components/mus/public/cpp/event_matcher_util.h ('k') | components/mus/ws/event_dispatcher_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698