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

Side by Side Diff: services/ui/common/accelerator_util.h

Issue 2754593003: Renames ui::mojom::Accelerator to ui::mojom::WmAccelerator (Closed)
Patch Set: Created 3 years, 9 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 SERVICES_UI_COMMON_ACCELERATOR_UTIL_H_ 5 #ifndef SERVICES_UI_COMMON_ACCELERATOR_UTIL_H_
6 #define SERVICES_UI_COMMON_ACCELERATOR_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 "services/ui/public/interfaces/window_manager.mojom.h"
10 #include "ui/events/mojo/event_constants.mojom.h" 10 #include "ui/events/mojo/event_constants.mojom.h"
11 #include "ui/events/mojo/keyboard_codes.mojom.h" 11 #include "ui/events/mojo/keyboard_codes.mojom.h"
12 12
13 namespace ui { 13 namespace ui {
14 14
15 // |flags| is a bitfield of kEventFlag* and kMouseEventFlag* values in 15 // |flags| is a bitfield of kEventFlag* and kMouseEventFlag* values in
16 // input_event_constants.mojom. 16 // input_event_constants.mojom.
17 mojom::EventMatcherPtr CreateKeyMatcher(ui::mojom::KeyboardCode code, 17 mojom::EventMatcherPtr CreateKeyMatcher(ui::mojom::KeyboardCode code,
18 int flags); 18 int flags);
19 19
20 // Construct accelerator vector from the provided |id| and |event_matcher| 20 // Construct accelerator vector from the provided |id| and |event_matcher|
21 std::vector<ui::mojom::AcceleratorPtr> CreateAcceleratorVector( 21 std::vector<ui::mojom::WmAcceleratorPtr> CreateAcceleratorVector(
22 uint32_t id, 22 uint32_t id,
23 ui::mojom::EventMatcherPtr event_matcher); 23 ui::mojom::EventMatcherPtr event_matcher);
24 24
25 // Construct accelerator from the provided |id| and |event_matcher| 25 // Construct accelerator from the provided |id| and |event_matcher|
26 ui::mojom::AcceleratorPtr CreateAccelerator( 26 ui::mojom::WmAcceleratorPtr CreateAccelerator(
27 uint32_t id, 27 uint32_t id,
28 ui::mojom::EventMatcherPtr event_matcher); 28 ui::mojom::EventMatcherPtr event_matcher);
29 29
30 } // namespace ui 30 } // namespace ui
31 31
32 #endif // SERVICES_UI_COMMON_ACCELERATOR_UTIL_H_ 32 #endif // SERVICES_UI_COMMON_ACCELERATOR_UTIL_H_
OLDNEW
« no previous file with comments | « ash/mus/accelerators/accelerator_controller_registrar.cc ('k') | services/ui/common/accelerator_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698