Chromium Code Reviews| 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 SERVICES_UI_COMMON_EVENT_MATCHER_UTIL_H_ | 5 #ifndef SERVICES_UI_COMMON_ACCELERATOR_UTIL_H_ |
| 6 #define SERVICES_UI_COMMON_EVENT_MATCHER_UTIL_H_ | 6 #define SERVICES_UI_COMMON_ACCELERATOR_UTIL_H_ |
| 7 | 7 |
| 8 #include "services/ui/public/interfaces/event_matcher.mojom.h" | 8 #include "services/ui/public/interfaces/event_matcher.mojom.h" |
| 9 #include "services/ui/public/interfaces/window_manager.mojom.h" | |
| 9 #include "ui/events/mojo/event_constants.mojom.h" | 10 #include "ui/events/mojo/event_constants.mojom.h" |
| 10 #include "ui/events/mojo/keyboard_codes.mojom.h" | 11 #include "ui/events/mojo/keyboard_codes.mojom.h" |
| 11 | 12 |
| 13 namespace ash { | |
|
mfomitchev
2016/11/29 17:37:26
This file is in ui/common, so this shouldn't be in
thanhph
2016/11/29 19:06:41
Done, thanks!
| |
| 14 namespace mus { | |
| 15 | |
| 16 // Construct accelerator from the provided |id| and |event_matcher| and add it | |
| 17 // to an empty |accelerators| vector. | |
| 18 std::vector<ui::mojom::AcceleratorTransportPtr> AddAcceleratorHelper( | |
| 19 uint32_t id, | |
| 20 ui::mojom::EventMatcherPtr event_matcher); | |
| 21 | |
| 22 } // namespace mus | |
| 23 } // namespace ash | |
| 24 | |
| 12 namespace ui { | 25 namespace ui { |
| 13 | 26 |
| 14 // |flags| is a bitfield of kEventFlag* and kMouseEventFlag* values in | 27 // |flags| is a bitfield of kEventFlag* and kMouseEventFlag* values in |
| 15 // input_event_constants.mojom. | 28 // input_event_constants.mojom. |
| 16 mojom::EventMatcherPtr CreateKeyMatcher(ui::mojom::KeyboardCode code, | 29 mojom::EventMatcherPtr CreateKeyMatcher(ui::mojom::KeyboardCode code, |
| 17 int flags); | 30 int flags); |
| 18 | 31 |
| 19 } // namespace ui | 32 } // namespace ui |
| 20 | 33 |
| 21 #endif // SERVICES_UI_COMMON_EVENT_MATCHER_UTIL_H_ | 34 #endif // SERVICES_UI_COMMON_ACCELERATOR_TRANSPORT_UTIL_H_ |
|
mfomitchev
2016/11/29 18:23:15
update comment
| |
| OLD | NEW |