OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef COMPONENTS_MUS_PUBLIC_CPP_EVENT_MATCHER_H_ | 5 #ifndef COMPONENTS_MUS_PUBLIC_CPP_EVENT_MATCHER_H_ |
6 #define COMPONENTS_MUS_PUBLIC_CPP_EVENT_MATCHER_H_ | 6 #define COMPONENTS_MUS_PUBLIC_CPP_EVENT_MATCHER_H_ |
7 | 7 |
8 #include "components/mus/public/interfaces/input_event_constants.mojom.h" | 8 #include "components/mus/public/interfaces/input_event_constants.mojom.h" |
9 #include "components/mus/public/interfaces/input_event_matcher.mojom.h" | 9 #include "components/mus/public/interfaces/input_event_matcher.mojom.h" |
10 #include "components/mus/public/interfaces/input_key_codes.mojom.h" | 10 #include "components/mus/public/interfaces/input_key_codes.mojom.h" |
11 | 11 |
12 namespace mus { | 12 namespace mus { |
13 | 13 |
14 mojom::EventMatcherPtr CreateKeyMatcher(mojom::KeyboardCode code, | 14 // |flags| is a bitfield of kEventFlag* and kMouseEventFlag* values in |
15 mojom::EventFlags flags); | 15 // input_event_constants.mojom. |
| 16 mojom::EventMatcherPtr CreateKeyMatcher(mojom::KeyboardCode code, int flags); |
16 | 17 |
17 } // namespace mus | 18 } // namespace mus |
18 | 19 |
19 #endif // COMPONENTS_MUS_PUBLIC_CPP_EVENT_MATCHER_H_ | 20 #endif // COMPONENTS_MUS_PUBLIC_CPP_EVENT_MATCHER_H_ |
OLD | NEW |