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

Side by Side Diff: sky/engine/platform/PlatformEvent.h

Issue 873963003: Remove more mouse-specific code (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Build fixes Created 5 years, 11 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
1 /* 1 /*
2 * Copyright (C) 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 2011 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 20 matching lines...) Expand all
31 class PlatformEvent { 31 class PlatformEvent {
32 public: 32 public:
33 enum Type { 33 enum Type {
34 NoType = 0, 34 NoType = 0,
35 35
36 // PlatformKeyboardEvent 36 // PlatformKeyboardEvent
37 KeyDown, 37 KeyDown,
38 KeyUp, 38 KeyUp,
39 RawKeyDown, 39 RawKeyDown,
40 Char, 40 Char,
41
42 // PlatformMouseEvent
43 MouseMoved,
44 MousePressed,
45 MouseReleased,
46 MouseScroll,
47
48 // PlatformWheelEvent
49 Wheel,
50 }; 41 };
51 42
52 enum Modifiers { 43 enum Modifiers {
53 AltKey = 1 << 0, 44 AltKey = 1 << 0,
54 CtrlKey = 1 << 1, 45 CtrlKey = 1 << 1,
55 MetaKey = 1 << 2, 46 MetaKey = 1 << 2,
56 ShiftKey = 1 << 3, 47 ShiftKey = 1 << 3,
57 }; 48 };
58 49
59 Type type() const { return static_cast<Type>(m_type); } 50 Type type() const { return static_cast<Type>(m_type); }
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 } 102 }
112 103
113 unsigned m_type; 104 unsigned m_type;
114 unsigned m_modifiers; 105 unsigned m_modifiers;
115 double m_timestamp; 106 double m_timestamp;
116 }; 107 };
117 108
118 } // namespace blink 109 } // namespace blink
119 110
120 #endif // SKY_ENGINE_PLATFORM_PLATFORMEVENT_H_ 111 #endif // SKY_ENGINE_PLATFORM_PLATFORMEVENT_H_
OLDNEW
« no previous file with comments | « sky/engine/core/rendering/RenderLayerScrollableArea.cpp ('k') | sky/engine/platform/scroll/ScrollAnimator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698