| Index: services/ui/common/accelerator_util.cc
|
| diff --git a/services/ui/common/event_matcher_util.cc b/services/ui/common/accelerator_util.cc
|
| similarity index 67%
|
| rename from services/ui/common/event_matcher_util.cc
|
| rename to services/ui/common/accelerator_util.cc
|
| index 64028b393c3b5b3eca7b5731305d4a512ee12142..7dcc4122a9f9a5b79ff82e6bee40aba2bd4be98d 100644
|
| --- a/services/ui/common/event_matcher_util.cc
|
| +++ b/services/ui/common/accelerator_util.cc
|
| @@ -2,7 +2,7 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -#include "services/ui/common/event_matcher_util.h"
|
| +#include "services/ui/common/accelerator_util.h"
|
|
|
| namespace ui {
|
|
|
| @@ -25,4 +25,16 @@ mojom::EventMatcherPtr CreateKeyMatcher(ui::mojom::KeyboardCode code,
|
| return matcher;
|
| }
|
|
|
| +std::vector<ui::mojom::AcceleratorTransportPtr> AddAcceleratorHelper(
|
| + uint32_t id,
|
| + ui::mojom::EventMatcherPtr event_matcher) {
|
| + std::vector<ui::mojom::AcceleratorTransportPtr> accelerators;
|
| + ui::mojom::AcceleratorTransportPtr accelerator_transport_ptr =
|
| + ui::mojom::AcceleratorTransport::New();
|
| + accelerator_transport_ptr->id = id;
|
| + accelerator_transport_ptr->event_matcher = std::move(event_matcher);
|
| + accelerators.push_back(std::move(accelerator_transport_ptr));
|
| + return accelerators;
|
| +}
|
| +
|
| } // namespace ui
|
|
|