Changeset 111191 in webkit


Ignore:
Timestamp:
Mar 19, 2012 9:23:16 AM (12 years ago)
Author:
leo.yang@torchmobile.com.cn
Message:

[BlackBerry] Upstream the BlackBerry change to platform/PlatformKeyboardEvent.h
https://bugs.webkit.org/show_bug.cgi?id=81312

Reviewed by Rob Buis.

  • platform/PlatformKeyboardEvent.h:

(Platform):
(WebCore::PlatformKeyboardEvent::PlatformKeyboardEvent):
(PlatformKeyboardEvent):
(WebCore::PlatformKeyboardEvent::unmodifiedCharacter):
Add BlackBerry specific constructor and member fields.

  • platform/blackberry/PlatformKeyboardEventBlackBerry.cpp:

(WebCore::PlatformKeyboardEvent::PlatformKeyboardEvent):
Change the parameter type to const reference type to adapt to the declaration.

Location:
trunk/Source/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r111185 r111191  
     12012-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
    1182012-03-19  Allan Sandfeld Jensen  <allan.jensen@nokia.com>
    219
  • trunk/Source/WebCore/platform/PlatformKeyboardEvent.h

    r105203 r111191  
    5656#endif
    5757
     58#if PLATFORM(BLACKBERRY)
     59namespace BlackBerry {
     60namespace Platform {
     61class KeyboardEvent;
     62}
     63}
     64#endif
     65
    5866#if PLATFORM(EFL)
    5967typedef struct _Evas_Event_Key_Down Evas_Event_Key_Down;
     
    7381            , m_isKeypad(false)
    7482            , m_isSystemKey(false)
     83#if PLATFORM(BLACKBERRY)
     84            , m_unmodifiedCharacter(0)
     85#endif
    7586#if PLATFORM(GTK)
    7687            , m_gdkEventKey(0)
     
    128139        static void getCurrentModifierState(bool& shiftKey, bool& ctrlKey, bool& altKey, bool& metaKey);
    129140
     141#if PLATFORM(BLACKBERRY)
     142        unsigned short unmodifiedCharacter() const { return m_unmodifiedCharacter; }
     143#endif
     144
    130145#if PLATFORM(MAC)
    131146        NSEvent* macEvent() const { return m_macEvent.get(); }
     
    155170#if PLATFORM(WX)
    156171        PlatformKeyboardEvent(wxKeyEvent&);
     172#endif
     173
     174#if PLATFORM(BLACKBERRY)
     175        PlatformKeyboardEvent(const BlackBerry::Platform::KeyboardEvent&);
    157176#endif
    158177
     
    173192        bool m_isSystemKey;
    174193
     194#if PLATFORM(BLACKBERRY)
     195        unsigned short m_unmodifiedCharacter;
     196#endif
     197
    175198#if PLATFORM(MAC)
    176199        RetainPtr<NSEvent> m_macEvent;
  • trunk/Source/WebCore/platform/blackberry/PlatformKeyboardEventBlackBerry.cpp

    r105919 r111191  
    437437}
    438438
    439 PlatformKeyboardEvent::PlatformKeyboardEvent(BlackBerry::Platform::KeyboardEvent event)
     439PlatformKeyboardEvent::PlatformKeyboardEvent(const BlackBerry::Platform::KeyboardEvent& event)
    440440    : PlatformEvent(toWebCorePlatformKeyboardEventType(event.type()), event.shiftActive() || (event.character() == KEYCODE_BACK_TAB), event.ctrlActive(), event.altActive(), false)
    441441    , m_keyIdentifier(keyIdentifierForBlackBerryCharacter(event.character()))
Note: See TracChangeset for help on using the changeset viewer.