Chromium Code Reviews| OLD | NEW |
|---|---|
| (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 }; | |
| OLD | NEW |