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

Unified 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/accelerators/mojo/accelerator.mojom
diff --git a/ui/base/accelerators/mojo/accelerator.mojom b/ui/base/accelerators/mojo/accelerator.mojom
new file mode 100644
index 0000000000000000000000000000000000000000..9bb0329d2f317aaa6d6e7863bb036d69464d8ffe
--- /dev/null
+++ b/ui/base/accelerators/mojo/accelerator.mojom
@@ -0,0 +1,23 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+module ui.mojom;
+
+import "ui/events/mojo/event_constants.mojom";
+import "ui/events/mojo/keyboard_codes.mojom";
+
+// This matches ui::Accelerator::KeyState.
+enum AcceleratorKeyState {
+ PRESSED,
+ RELEASED,
+};
+
+// This structure matches ui::Accelerator; see details there.
+struct Accelerator {
+ // Accelerator::key_code_ is a KeyboardCode, but it may also contain other
+ // values (at least on Windows, which seems to supply any value).
+ int32 key_code;
+ AcceleratorKeyState key_state;
+ int32 modifiers;
+};
« 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