| 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 11 matching lines...) Expand all Loading... |
| 22 | 22 |
| 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 double platformTimeStamp, | 32 TimeTicks platformTimeStamp, |
| 33 InputDeviceCapabilities* sourceCapabilities) | 33 InputDeviceCapabilities* 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) {} |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 } | 152 } |
| 153 | 153 |
| 154 UIEventWithKeyState* findEventWithKeyState(Event* event) { | 154 UIEventWithKeyState* findEventWithKeyState(Event* event) { |
| 155 for (Event* e = event; e; e = e->underlyingEvent()) | 155 for (Event* e = event; e; e = e->underlyingEvent()) |
| 156 if (e->isKeyboardEvent() || e->isMouseEvent()) | 156 if (e->isKeyboardEvent() || e->isMouseEvent()) |
| 157 return static_cast<UIEventWithKeyState*>(e); | 157 return static_cast<UIEventWithKeyState*>(e); |
| 158 return nullptr; | 158 return nullptr; |
| 159 } | 159 } |
| 160 | 160 |
| 161 } // namespace blink | 161 } // namespace blink |
| OLD | NEW |