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 // 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 }; |
OLD | NEW |