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

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

Issue 2749183005: Adds mojom structure for ui::Accelerator and struct traits (Closed)
Patch Set: nit 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
(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 enum AcceleratorKeyState {
msw 2017/03/16 22:50:39 nit: comment, mention that this matches ui::Accele
sky 2017/03/16 23:30:46 Done.
11 PRESSED,
12 RELEASED,
13 };
14
15 // See ui::Accelerator for details on these values.
msw 2017/03/16 22:50:39 optional nit: // This structure matches ui::Accele
sky 2017/03/16 23:30:46 Done.
16 struct Accelerator {
17 // Accelerator::key_code_ is a KeyboardCode, but it may also contain other
msw 2017/03/16 22:50:39 optional nit: It might help to elaborate on what o
sky 2017/03/16 23:30:46 Done.
18 // values.
19 int32 key_code;
20 AcceleratorKeyState key_state;
21 int32 modifiers;
22 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698