Chromium Code Reviews| Index: components/mus/public/interfaces/event_matcher.mojom |
| diff --git a/components/mus/public/interfaces/event_matcher.mojom b/components/mus/public/interfaces/event_matcher.mojom |
| index 34ec670f00f67ee49fd1bccc70c8966f2a5ad15f..5592581feeedd0bf030a98a80f3e4e09eedb9403 100644 |
| --- a/components/mus/public/interfaces/event_matcher.mojom |
| +++ b/components/mus/public/interfaces/event_matcher.mojom |
| @@ -24,6 +24,10 @@ struct EventTypeMatcher { |
| ui.mojom.EventType type; |
| }; |
| +struct EventMultTypeMatcher { |
| + array<ui.mojom.EventType> types; |
| +}; |
| + |
| struct EventFlagsMatcher { |
| // A bitfield of kEventFlag* and kMouseEventFlag* values in |
| // input_event_constants.mojom. |
| @@ -45,6 +49,7 @@ struct EventMatcher { |
| // TODO(jamescook): Move this to somewhere accelerator-specific. |
| ui.mojom.AcceleratorPhase accelerator_phase; |
| EventTypeMatcher? type_matcher; |
| + EventMultTypeMatcher? types_matcher; |
|
sadrul
2016/06/27 14:44:54
Instead of this, it'd be better to use the Pointer
riajiang
2016/06/28 21:52:51
Done.
|
| EventFlagsMatcher? flags_matcher; |
| // These flags will be stripped from incoming events' flags when comparing |
| // against |flags_matcher|. |