OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006 Apple Computer, Inc. | 2 * Copyright (C) 2006 Apple Computer, Inc. |
3 * | 3 * |
4 * This library is free software; you can redistribute it and/or | 4 * This library is free software; you can redistribute it and/or |
5 * modify it under the terms of the GNU Library General Public | 5 * modify it under the terms of the GNU Library General Public |
6 * License as published by the Free Software Foundation; either | 6 * License as published by the Free Software Foundation; either |
7 * version 2 of the License, or (at your option) any later version. | 7 * version 2 of the License, or (at your option) any later version. |
8 * | 8 * |
9 * This library is distributed in the hope that it will be useful, | 9 * This library is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 12 matching lines...) Expand all Loading... |
23 namespace blink { | 23 namespace blink { |
24 | 24 |
25 UIEventWithKeyState::UIEventWithKeyState( | 25 UIEventWithKeyState::UIEventWithKeyState( |
26 const AtomicString& type, | 26 const AtomicString& type, |
27 bool canBubble, | 27 bool canBubble, |
28 bool cancelable, | 28 bool cancelable, |
29 AbstractView* view, | 29 AbstractView* view, |
30 int detail, | 30 int detail, |
31 PlatformEvent::Modifiers modifiers, | 31 PlatformEvent::Modifiers modifiers, |
32 TimeTicks platformTimeStamp, | 32 TimeTicks platformTimeStamp, |
33 InputDeviceCapabilities* sourceCapabilities) | 33 const InputDeviceCapabilitiesValue& sourceCapabilities) |
34 : UIEvent(type, | 34 : UIEvent(type, |
35 canBubble, | 35 canBubble, |
36 cancelable, | 36 cancelable, |
37 ComposedMode::Composed, | 37 ComposedMode::Composed, |
38 platformTimeStamp, | 38 platformTimeStamp, |
39 view, | 39 view, |
40 detail, | 40 detail, |
41 sourceCapabilities), | 41 sourceCapabilities), |
42 m_modifiers(modifiers) {} | 42 m_modifiers(modifiers) {} |
43 | 43 |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 } | 159 } |
160 | 160 |
161 UIEventWithKeyState* findEventWithKeyState(Event* event) { | 161 UIEventWithKeyState* findEventWithKeyState(Event* event) { |
162 for (Event* e = event; e; e = e->underlyingEvent()) | 162 for (Event* e = event; e; e = e->underlyingEvent()) |
163 if (e->isKeyboardEvent() || e->isMouseEvent()) | 163 if (e->isKeyboardEvent() || e->isMouseEvent()) |
164 return static_cast<UIEventWithKeyState*>(e); | 164 return static_cast<UIEventWithKeyState*>(e); |
165 return nullptr; | 165 return nullptr; |
166 } | 166 } |
167 | 167 |
168 } // namespace blink | 168 } // namespace blink |
OLD | NEW |