Changeset 55431 in webkit
- Timestamp:
- Mar 2, 2010 2:27:26 PM (14 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r55429 r55431 1 2010-03-02 Anders Carlsson <andersca@apple.com> 2 3 Reviewed by Sam Weinig. 4 5 Make the default constructor available to all platforms. 6 7 * platform/PlatformKeyboardEvent.h: 8 (WebCore::PlatformKeyboardEvent::PlatformKeyboardEvent): 9 * platform/mac/KeyEventMac.mm: 10 1 11 2010-03-02 Jeremy Orlow <jorlow@chromium.org> 2 12 -
trunk/WebCore/platform/PlatformKeyboardEvent.h
r54930 r55431 95 95 }; 96 96 97 PlatformKeyboardEvent() 98 : m_type(KeyDown) 99 , m_autoRepeat(false) 100 , m_windowsVirtualKeyCode(0) 101 , m_nativeVirtualKeyCode(0) 102 , m_isKeypad(false) 103 , m_shiftKey(false) 104 , m_ctrlKey(false) 105 , m_altKey(false) 106 , m_metaKey(false) 107 #if PLATFORM(WIN) || PLATFORM(CHROMIUM) 108 , m_isSystemKey(false) 109 #endif 110 #if PLATFORM(GTK) 111 , m_gdkEventKey(0) 112 #endif 113 #if PLATFORM(QT) 114 , m_qtEvent(0) 115 #endif 116 { 117 } 118 97 119 Type type() const { return m_type; } 98 120 void disambiguateKeyDownEvent(Type, bool backwardCompatibilityMode = false); // Only used on platforms that need it, i.e. those that generate KeyDown events. … … 137 159 138 160 #if PLATFORM(MAC) 139 PlatformKeyboardEvent();140 161 PlatformKeyboardEvent(NSEvent*); 141 162 NSEvent* macEvent() const { return m_macEvent.get(); } -
trunk/WebCore/platform/mac/KeyEventMac.mm
r52608 r55431 812 812 } 813 813 814 PlatformKeyboardEvent::PlatformKeyboardEvent()815 : m_type(KeyDown)816 , m_autoRepeat(false)817 , m_windowsVirtualKeyCode(0)818 , m_nativeVirtualKeyCode(0)819 , m_isKeypad(false)820 , m_shiftKey(false)821 , m_ctrlKey(false)822 , m_altKey(false)823 , m_metaKey(false)824 {825 }826 827 814 PlatformKeyboardEvent::PlatformKeyboardEvent(NSEvent *event) 828 815 : m_type(isKeyUpEvent(event) ? PlatformKeyboardEvent::KeyUp : PlatformKeyboardEvent::KeyDown)
Note: See TracChangeset
for help on using the changeset viewer.