Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef SERVICES_UI_COMMON_ACCELERATOR_UTIL_H_ | |
| 6 #define SERVICES_UI_COMMON_ACCELERATOR_UTIL_H_ | |
| 7 | |
| 8 #include "services/ui/public/interfaces/event_matcher.mojom.h" | |
| 9 #include "services/ui/public/interfaces/window_manager.mojom.h" | |
| 10 #include "ui/events/mojo/event_constants.mojom.h" | |
| 11 #include "ui/events/mojo/keyboard_codes.mojom.h" | |
| 12 | |
| 13 namespace ui { | |
| 14 | |
| 15 // |flags| is a bitfield of kEventFlag* and kMouseEventFlag* values in | |
| 16 // input_event_constants.mojom. | |
| 17 mojom::EventMatcherPtr CreateKeyMatcher(ui::mojom::KeyboardCode code, | |
| 18 int flags); | |
| 19 | |
| 20 // Construct accelerator from the provided |id| and |event_matcher| and add it | |
| 21 // to an empty |accelerators| vector. | |
|
mfomitchev
2016/11/29 23:27:41
comment needs updating - there's no |accelerators|
thanhph
2016/11/30 01:31:20
Done.
| |
| 22 std::vector<ui::mojom::AcceleratorTransportPtr> CreateAcceleratorVector( | |
| 23 uint32_t id, | |
| 24 ui::mojom::EventMatcherPtr event_matcher); | |
| 25 | |
| 26 ui::mojom::AcceleratorTransportPtr CreateAcceleratorTransport( | |
|
mfomitchev
2016/11/29 23:27:41
document
thanhph
2016/11/30 01:31:20
Done.
| |
| 27 uint32_t id, | |
| 28 ui::mojom::EventMatcherPtr event_matcher); | |
| 29 | |
| 30 } // namespace ui | |
| 31 | |
| 32 #endif // SERVICES_UI_COMMON_ACCELERATOR_TRANSPORT_UTIL_H_ | |
| OLD | NEW |