Changeset 111191 in webkit
- Timestamp:
- Mar 19, 2012 9:23:16 AM (12 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r111185 r111191 1 2012-03-19 Leo Yang <leo.yang@torchmobile.com.cn> 2 3 [BlackBerry] Upstream the BlackBerry change to platform/PlatformKeyboardEvent.h 4 https://bugs.webkit.org/show_bug.cgi?id=81312 5 6 Reviewed by Rob Buis. 7 8 * platform/PlatformKeyboardEvent.h: 9 (Platform): 10 (WebCore::PlatformKeyboardEvent::PlatformKeyboardEvent): 11 (PlatformKeyboardEvent): 12 (WebCore::PlatformKeyboardEvent::unmodifiedCharacter): 13 Add BlackBerry specific constructor and member fields. 14 * platform/blackberry/PlatformKeyboardEventBlackBerry.cpp: 15 (WebCore::PlatformKeyboardEvent::PlatformKeyboardEvent): 16 Change the parameter type to const reference type to adapt to the declaration. 17 1 18 2012-03-19 Allan Sandfeld Jensen <allan.jensen@nokia.com> 2 19 -
trunk/Source/WebCore/platform/PlatformKeyboardEvent.h
r105203 r111191 56 56 #endif 57 57 58 #if PLATFORM(BLACKBERRY) 59 namespace BlackBerry { 60 namespace Platform { 61 class KeyboardEvent; 62 } 63 } 64 #endif 65 58 66 #if PLATFORM(EFL) 59 67 typedef struct _Evas_Event_Key_Down Evas_Event_Key_Down; … … 73 81 , m_isKeypad(false) 74 82 , m_isSystemKey(false) 83 #if PLATFORM(BLACKBERRY) 84 , m_unmodifiedCharacter(0) 85 #endif 75 86 #if PLATFORM(GTK) 76 87 , m_gdkEventKey(0) … … 128 139 static void getCurrentModifierState(bool& shiftKey, bool& ctrlKey, bool& altKey, bool& metaKey); 129 140 141 #if PLATFORM(BLACKBERRY) 142 unsigned short unmodifiedCharacter() const { return m_unmodifiedCharacter; } 143 #endif 144 130 145 #if PLATFORM(MAC) 131 146 NSEvent* macEvent() const { return m_macEvent.get(); } … … 155 170 #if PLATFORM(WX) 156 171 PlatformKeyboardEvent(wxKeyEvent&); 172 #endif 173 174 #if PLATFORM(BLACKBERRY) 175 PlatformKeyboardEvent(const BlackBerry::Platform::KeyboardEvent&); 157 176 #endif 158 177 … … 173 192 bool m_isSystemKey; 174 193 194 #if PLATFORM(BLACKBERRY) 195 unsigned short m_unmodifiedCharacter; 196 #endif 197 175 198 #if PLATFORM(MAC) 176 199 RetainPtr<NSEvent> m_macEvent; -
trunk/Source/WebCore/platform/blackberry/PlatformKeyboardEventBlackBerry.cpp
r105919 r111191 437 437 } 438 438 439 PlatformKeyboardEvent::PlatformKeyboardEvent( BlackBerry::Platform::KeyboardEventevent)439 PlatformKeyboardEvent::PlatformKeyboardEvent(const BlackBerry::Platform::KeyboardEvent& event) 440 440 : PlatformEvent(toWebCorePlatformKeyboardEventType(event.type()), event.shiftActive() || (event.character() == KEYCODE_BACK_TAB), event.ctrlActive(), event.altActive(), false) 441 441 , m_keyIdentifier(keyIdentifierForBlackBerryCharacter(event.character()))
Note: See TracChangeset
for help on using the changeset viewer.