| Index: services/ui/common/accelerator_util.h
|
| diff --git a/services/ui/common/event_matcher_util.h b/services/ui/common/accelerator_util.h
|
| similarity index 50%
|
| rename from services/ui/common/event_matcher_util.h
|
| rename to services/ui/common/accelerator_util.h
|
| index 6a6a07c06ac0e960f63ed6a402fba0f77cf9c78f..e67c741f7d65b6aca5b868dc82e1cae65c6865b3 100644
|
| --- a/services/ui/common/event_matcher_util.h
|
| +++ b/services/ui/common/accelerator_util.h
|
| @@ -2,10 +2,11 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -#ifndef SERVICES_UI_COMMON_EVENT_MATCHER_UTIL_H_
|
| -#define SERVICES_UI_COMMON_EVENT_MATCHER_UTIL_H_
|
| +#ifndef SERVICES_UI_COMMON_ACCELERATOR_UTIL_H_
|
| +#define SERVICES_UI_COMMON_ACCELERATOR_UTIL_H_
|
|
|
| #include "services/ui/public/interfaces/event_matcher.mojom.h"
|
| +#include "services/ui/public/interfaces/window_manager.mojom.h"
|
| #include "ui/events/mojo/event_constants.mojom.h"
|
| #include "ui/events/mojo/keyboard_codes.mojom.h"
|
|
|
| @@ -16,6 +17,16 @@ namespace ui {
|
| mojom::EventMatcherPtr CreateKeyMatcher(ui::mojom::KeyboardCode code,
|
| int flags);
|
|
|
| +// Construct accelerator vector from the provided |id| and |event_matcher|
|
| +std::vector<ui::mojom::AcceleratorPtr> CreateAcceleratorVector(
|
| + uint32_t id,
|
| + ui::mojom::EventMatcherPtr event_matcher);
|
| +
|
| +// Construct accelerator from the provided |id| and |event_matcher|
|
| +ui::mojom::AcceleratorPtr CreateAccelerator(
|
| + uint32_t id,
|
| + ui::mojom::EventMatcherPtr event_matcher);
|
| +
|
| } // namespace ui
|
|
|
| -#endif // SERVICES_UI_COMMON_EVENT_MATCHER_UTIL_H_
|
| +#endif // SERVICES_UI_COMMON_ACCELERATOR_UTIL_H_
|
|
|