| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2001 Peter Kelly (pmk@post.com) | 2 * Copyright (C) 2001 Peter Kelly (pmk@post.com) |
| 3 * Copyright (C) 2001 Tobias Anton (anton@stud.fbi.fh-darmstadt.de) | 3 * Copyright (C) 2001 Tobias Anton (anton@stud.fbi.fh-darmstadt.de) |
| 4 * Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com) | 4 * Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com) |
| 5 * Copyright (C) 2003, 2004, 2005, 2006, 2008 Apple Inc. All rights reserved. | 5 * Copyright (C) 2003, 2004, 2005, 2006, 2008 Apple Inc. All rights reserved. |
| 6 * | 6 * |
| 7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
| 8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
| 9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
| 10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 protected: | 45 protected: |
| 46 UIEventWithKeyState() | 46 UIEventWithKeyState() |
| 47 : m_ctrlKey(false) | 47 : m_ctrlKey(false) |
| 48 , m_altKey(false) | 48 , m_altKey(false) |
| 49 , m_shiftKey(false) | 49 , m_shiftKey(false) |
| 50 , m_metaKey(false) | 50 , m_metaKey(false) |
| 51 { | 51 { |
| 52 } | 52 } |
| 53 | 53 |
| 54 UIEventWithKeyState(const AtomicString& type, bool canBubble, bool cance
lable, PassRefPtrWillBeRawPtr<AbstractView> view, | 54 UIEventWithKeyState(const AtomicString& type, bool canBubble, bool cance
lable, PassRefPtrWillBeRawPtr<AbstractView> view, |
| 55 int detail, bool ctrlKey, bool altKey, bool shiftKey
, bool metaKey) | 55 int detail, bool ctrlKey, bool altKey, bool shiftKey, bool metaKey,
InputDevice* sourceDevice = nullptr) |
| 56 : UIEvent(type, canBubble, cancelable, view, detail) | 56 : UIEvent(type, canBubble, cancelable, view, detail, sourceDevice) |
| 57 , m_ctrlKey(ctrlKey) | 57 , m_ctrlKey(ctrlKey) |
| 58 , m_altKey(altKey) | 58 , m_altKey(altKey) |
| 59 , m_shiftKey(shiftKey) | 59 , m_shiftKey(shiftKey) |
| 60 , m_metaKey(metaKey) | 60 , m_metaKey(metaKey) |
| 61 { | 61 { |
| 62 } | 62 } |
| 63 | 63 |
| 64 // Expose these so init functions can set them. | 64 // Expose these so init functions can set them. |
| 65 bool m_ctrlKey : 1; | 65 bool m_ctrlKey : 1; |
| 66 bool m_altKey : 1; | 66 bool m_altKey : 1; |
| 67 bool m_shiftKey : 1; | 67 bool m_shiftKey : 1; |
| 68 bool m_metaKey : 1; | 68 bool m_metaKey : 1; |
| 69 | 69 |
| 70 private: | 70 private: |
| 71 static bool s_newTabModifierSetFromIsolatedWorld; | 71 static bool s_newTabModifierSetFromIsolatedWorld; |
| 72 }; | 72 }; |
| 73 | 73 |
| 74 UIEventWithKeyState* findEventWithKeyState(Event*); | 74 UIEventWithKeyState* findEventWithKeyState(Event*); |
| 75 | 75 |
| 76 } // namespace blink | 76 } // namespace blink |
| 77 | 77 |
| 78 #endif // UIEventWithKeyState_h | 78 #endif // UIEventWithKeyState_h |
| OLD | NEW |