OLD | NEW |
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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 CtrlKey = 1 << 1, | 77 CtrlKey = 1 << 1, |
78 MetaKey = 1 << 2, | 78 MetaKey = 1 << 2, |
79 ShiftKey = 1 << 3, | 79 ShiftKey = 1 << 3, |
80 | 80 |
81 IsKeyPad = 1 << 4, | 81 IsKeyPad = 1 << 4, |
82 IsAutoRepeat = 1 << 5, | 82 IsAutoRepeat = 1 << 5, |
83 | 83 |
84 LeftButtonDown = 1 << 6, | 84 LeftButtonDown = 1 << 6, |
85 MiddleButtonDown = 1 << 7, | 85 MiddleButtonDown = 1 << 7, |
86 RightButtonDown = 1 << 8, | 86 RightButtonDown = 1 << 8, |
| 87 |
| 88 IsLeft = 1 << 11, |
| 89 IsRight = 1 << 12, |
87 }; | 90 }; |
88 | 91 |
89 enum RailsMode { | 92 enum RailsMode { |
90 RailsModeFree = 0, | 93 RailsModeFree = 0, |
91 RailsModeHorizontal = 1, | 94 RailsModeHorizontal = 1, |
92 RailsModeVertical = 2, | 95 RailsModeVertical = 2, |
93 }; | 96 }; |
94 | 97 |
95 Type type() const { return static_cast<Type>(m_type); } | 98 Type type() const { return static_cast<Type>(m_type); } |
96 | 99 |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 } | 150 } |
148 | 151 |
149 unsigned m_type; | 152 unsigned m_type; |
150 unsigned m_modifiers; | 153 unsigned m_modifiers; |
151 double m_timestamp; | 154 double m_timestamp; |
152 }; | 155 }; |
153 | 156 |
154 } // namespace blink | 157 } // namespace blink |
155 | 158 |
156 #endif // PlatformEvent_h | 159 #endif // PlatformEvent_h |
OLD | NEW |