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

Side by Side Diff: components/mus/ws/event_matcher.h

Issue 2092343002: Touch HUD app for mustash (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 unified diff | Download patch
OLDNEW
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 COMPONENTS_MUS_WS_EVENT_MATCHER_H_
6 #define COMPONENTS_MUS_WS_EVENT_MATCHER_H_ 6 #define COMPONENTS_MUS_WS_EVENT_MATCHER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 #include <vector>
9 10
10 #include "base/macros.h" 11 #include "base/macros.h"
11 #include "components/mus/public/interfaces/event_matcher.mojom.h" 12 #include "components/mus/public/interfaces/event_matcher.mojom.h"
12 #include "ui/events/event.h" 13 #include "ui/events/event.h"
13 #include "ui/events/mojo/event_constants.mojom.h" 14 #include "ui/events/mojo/event_constants.mojom.h"
14 #include "ui/events/mojo/keyboard_codes.mojom.h" 15 #include "ui/events/mojo/keyboard_codes.mojom.h"
15 #include "ui/gfx/geometry/rect_f.h" 16 #include "ui/gfx/geometry/rect_f.h"
16 17
17 namespace mus { 18 namespace mus {
18 namespace ws { 19 namespace ws {
(...skipping 12 matching lines...) Expand all
31 enum MatchFields { 32 enum MatchFields {
32 NONE = 0, 33 NONE = 0,
33 TYPE = 1 << 0, 34 TYPE = 1 << 0,
34 FLAGS = 1 << 1, 35 FLAGS = 1 << 1,
35 KEYBOARD_CODE = 1 << 2, 36 KEYBOARD_CODE = 1 << 2,
36 POINTER_KIND = 1 << 3, 37 POINTER_KIND = 1 << 3,
37 POINTER_LOCATION = 1 << 4, 38 POINTER_LOCATION = 1 << 4,
38 }; 39 };
39 40
40 uint32_t fields_to_match_; 41 uint32_t fields_to_match_;
41 ui::EventType event_type_; 42 std::vector<ui::EventType> event_types_;
42 // Bitfields of kEventFlag* and kMouseEventFlag* values in 43 // Bitfields of kEventFlag* and kMouseEventFlag* values in
43 // input_event_constants.mojom. 44 // input_event_constants.mojom.
44 int event_flags_; 45 int event_flags_;
45 int ignore_event_flags_; 46 int ignore_event_flags_;
46 uint16_t keyboard_code_; 47 uint16_t keyboard_code_;
47 ui::EventPointerType pointer_type_; 48 ui::EventPointerType pointer_type_;
48 gfx::RectF pointer_region_; 49 gfx::RectF pointer_region_;
49 50
50 DISALLOW_COPY_AND_ASSIGN(EventMatcher); 51 DISALLOW_COPY_AND_ASSIGN(EventMatcher);
51 }; 52 };
52 53
53 } // namespace ws 54 } // namespace ws
54 } // namespace mus 55 } // namespace mus
55 56
56 #endif // COMPONENTS_MUS_WS_EVENT_MATCHER_H_ 57 #endif // COMPONENTS_MUS_WS_EVENT_MATCHER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698