OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_WS_EVENT_MATCHER_H_ | 5 #ifndef SERVICES_UI_WS_EVENT_MATCHER_H_ |
6 #define COMPONENTS_MUS_WS_EVENT_MATCHER_H_ | 6 #define SERVICES_UI_WS_EVENT_MATCHER_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
11 #include "components/mus/public/interfaces/event_matcher.mojom.h" | 11 #include "services/ui/public/interfaces/event_matcher.mojom.h" |
12 #include "ui/events/event.h" | 12 #include "ui/events/event.h" |
13 #include "ui/events/mojo/event_constants.mojom.h" | 13 #include "ui/events/mojo/event_constants.mojom.h" |
14 #include "ui/events/mojo/keyboard_codes.mojom.h" | 14 #include "ui/events/mojo/keyboard_codes.mojom.h" |
15 #include "ui/gfx/geometry/rect_f.h" | 15 #include "ui/gfx/geometry/rect_f.h" |
16 | 16 |
17 namespace mus { | 17 namespace mus { |
18 namespace ws { | 18 namespace ws { |
19 | 19 |
20 // Wraps a mojom::EventMatcher and allows events to be tested against it. | 20 // Wraps a mojom::EventMatcher and allows events to be tested against it. |
21 class EventMatcher { | 21 class EventMatcher { |
(...skipping 24 matching lines...) Expand all Loading... |
46 uint16_t keyboard_code_; | 46 uint16_t keyboard_code_; |
47 ui::EventPointerType pointer_type_; | 47 ui::EventPointerType pointer_type_; |
48 gfx::RectF pointer_region_; | 48 gfx::RectF pointer_region_; |
49 | 49 |
50 DISALLOW_COPY_AND_ASSIGN(EventMatcher); | 50 DISALLOW_COPY_AND_ASSIGN(EventMatcher); |
51 }; | 51 }; |
52 | 52 |
53 } // namespace ws | 53 } // namespace ws |
54 } // namespace mus | 54 } // namespace mus |
55 | 55 |
56 #endif // COMPONENTS_MUS_WS_EVENT_MATCHER_H_ | 56 #endif // SERVICES_UI_WS_EVENT_MATCHER_H_ |
OLD | NEW |