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

Side by Side Diff: mojo/services/input_events/public/interfaces/input_event_constants.mojom

Issue 1398973004: Move //mojo/services/X/public/... to //mojo/services/X/... (part 2). (Closed) Base URL: https://github.com/domokit/mojo.git@no_public_1
Patch Set: add missing copyright notices Created 5 years, 2 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 2014 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 [DartPackage="mojo_services"]
6 module mojo;
7
8 enum EventType {
9 UNKNOWN,
10 KEY_PRESSED,
11 KEY_RELEASED,
12 POINTER_CANCEL,
13 POINTER_DOWN,
14 POINTER_MOVE,
15 POINTER_UP,
16 };
17
18 // This mirrors ui::EventFlags
19 // TODO(morrita): Use shift operator once it is available.
20 enum EventFlags {
21 NONE = 0,
22 CAPS_LOCK_DOWN = 1,
23 SHIFT_DOWN = 2,
24 CONTROL_DOWN = 4,
25 ALT_DOWN = 8,
26 LEFT_MOUSE_BUTTON = 16,
27 MIDDLE_MOUSE_BUTTON = 32,
28 RIGHT_MOUSE_BUTTON = 64,
29 COMMAND_DOWN = 128,
30 EXTENDED = 256,
31 IS_SYNTHESIZED = 512,
32 ALTGR_DOWN = 1024,
33 MOD3_DOWN = 2048
34 };
35
36 enum MouseEventFlags {
37 IS_DOUBLE_CLICK = 65536,
38 IS_TRIPLE_CLICK = 131072,
39 IS_NON_CLIENT = 262144,
40
41 // TODO(erg): Move accessibility flags and maybe synthetic touch events here.
42 };
43
44 enum PointerKind {
45 TOUCH,
46 MOUSE,
47 };
OLDNEW
« no previous file with comments | « mojo/services/input_events/public/interfaces/BUILD.gn ('k') | mojo/services/input_events/public/interfaces/input_events.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698