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

Unified Diff: components/mus/public/interfaces/input_event_constants.mojom

Issue 2057793002: Reorganize event mojom files. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed typos in comments. Created 4 years, 6 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
Index: components/mus/public/interfaces/input_event_constants.mojom
diff --git a/components/mus/public/interfaces/input_event_constants.mojom b/components/mus/public/interfaces/input_event_constants.mojom
deleted file mode 100644
index 3c2d6d61ab85facc49058e1cc1430883e431752e..0000000000000000000000000000000000000000
--- a/components/mus/public/interfaces/input_event_constants.mojom
+++ /dev/null
@@ -1,64 +0,0 @@
-// Copyright 2014 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 mus.mojom;
-
-// Denotes during which phase of event targeting that an accelerator will be
-// notified of an event. PRE_TARGET will be notified instead of the target
-// window. POST_TARGET will be notified after the target window, and only if the
-// event was not consumed by the target.
-enum AcceleratorPhase {
- PRE_TARGET,
- POST_TARGET,
-};
-
-enum EventType {
- UNKNOWN,
- KEY_PRESSED,
- KEY_RELEASED,
- POINTER_CANCEL,
- POINTER_DOWN,
- POINTER_MOVE,
- POINTER_UP,
- MOUSE_EXIT,
- WHEEL,
-};
-
-// This mirrors ui::EventFlags
-// TODO(morrita): Use shift operator once it is available.
-const int32 kEventFlagNone = 0x00000;
-const int32 kEventFlagIsSynthesized = 0x00001;
-const int32 kEventFlagShiftDown = 0x00002;
-const int32 kEventFlagControlDown = 0x00004;
-const int32 kEventFlagAltDown = 0x00008;
-const int32 kEventFlagCommandDown = 0x00010;
-const int32 kEventFlagAltgrDown = 0x00020;
-const int32 kEventFlagMod3Down = 0x00040;
-const int32 kEventFlagNumLockOn = 0x00080;
-const int32 kEventFlagCapsLockOn = 0x00100;
-const int32 kEventFlagScrollLockOn = 0x00200;
-const int32 kEventFlagLeftMouseButton = 0x00400;
-const int32 kEventFlagMiddleMouseButton = 0x00800;
-const int32 kEventFlagRightMouseButton = 0x01000;
-const int32 kEventFlagBackMouseButton = 0x02000;
-const int32 kEventFlagForwardMouseButton = 0x04000;
-
-const int32 kMouseEventFlagIsDoubleClick = 0x08000;
-const int32 kMouseEventFlagIsTripleClick = 0x10000;
-const int32 kMouseEventFlagIsNonClient = 0x20000;
-
-// TODO(erg): Move accessibility flags and maybe synthetic touch events here.
-
-enum PointerKind {
- MOUSE,
- PEN,
- TOUCH,
-};
-
-enum WheelMode {
- PIXEL,
- LINE,
- PAGE,
- SCALING,
-};
« no previous file with comments | « components/mus/public/interfaces/event_matcher.mojom ('k') | components/mus/public/interfaces/input_events.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698