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

Side by Side Diff: ui/base/accelerators/mojo/accelerator.mojom

Issue 2749183005: Adds mojom structure for ui::Accelerator and struct traits (Closed)
Patch Set: feedback 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
« no previous file with comments | « ui/base/accelerators/mojo/OWNERS ('k') | ui/base/accelerators/mojo/accelerator.typemap » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2017 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 module ui.mojom;
6
7 import "ui/events/mojo/event_constants.mojom";
8 import "ui/events/mojo/keyboard_codes.mojom";
9
10 // This matches ui::Accelerator::KeyState.
11 enum AcceleratorKeyState {
12 PRESSED,
13 RELEASED,
14 };
15
16 // This structure matches ui::Accelerator; see details there.
17 struct Accelerator {
18 // Accelerator::key_code_ is a KeyboardCode, but it may also contain other
19 // values (at least on Windows, which seems to supply any value).
20 int32 key_code;
21 AcceleratorKeyState key_state;
22 int32 modifiers;
23 };
OLDNEW
« no previous file with comments | « ui/base/accelerators/mojo/OWNERS ('k') | ui/base/accelerators/mojo/accelerator.typemap » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698