OLD | NEW |
| (Empty) |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef COMPONENTS_MUS_COMMON_EVENT_MATCHER_UTIL_H_ | |
6 #define COMPONENTS_MUS_COMMON_EVENT_MATCHER_UTIL_H_ | |
7 | |
8 #include "components/mus/common/mus_common_export.h" | |
9 #include "components/mus/public/interfaces/event_matcher.mojom.h" | |
10 #include "ui/events/mojo/event_constants.mojom.h" | |
11 #include "ui/events/mojo/keyboard_codes.mojom.h" | |
12 | |
13 namespace mus { | |
14 | |
15 // |flags| is a bitfield of kEventFlag* and kMouseEventFlag* values in | |
16 // input_event_constants.mojom. | |
17 mojom::EventMatcherPtr MUS_COMMON_EXPORT | |
18 CreateKeyMatcher(ui::mojom::KeyboardCode code, int flags); | |
19 | |
20 } // namespace mus | |
21 | |
22 #endif // COMPONENTS_MUS_COMMON_EVENT_MATCHER_UTIL_H_ | |
OLD | NEW |