Changeset 55431 in webkit


Ignore:
Timestamp:
Mar 2, 2010 2:27:26 PM (14 years ago)
Author:
andersca@apple.com
Message:

Make the default constructor available to all platforms.

Reviewed by Sam Weinig.

  • platform/PlatformKeyboardEvent.h:

(WebCore::PlatformKeyboardEvent::PlatformKeyboardEvent):

  • platform/mac/KeyEventMac.mm:
Location:
trunk/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r55429 r55431  
     12010-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
    1112010-03-02  Jeremy Orlow  <jorlow@chromium.org>
    212
  • trunk/WebCore/platform/PlatformKeyboardEvent.h

    r54930 r55431  
    9595        };
    9696
     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       
    97119        Type type() const { return m_type; }
    98120        void disambiguateKeyDownEvent(Type, bool backwardCompatibilityMode = false); // Only used on platforms that need it, i.e. those that generate KeyDown events.
     
    137159
    138160#if PLATFORM(MAC)
    139         PlatformKeyboardEvent();
    140161        PlatformKeyboardEvent(NSEvent*);
    141162        NSEvent* macEvent() const { return m_macEvent.get(); }
  • trunk/WebCore/platform/mac/KeyEventMac.mm

    r52608 r55431  
    812812}
    813813
    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 
    827814PlatformKeyboardEvent::PlatformKeyboardEvent(NSEvent *event)
    828815    : m_type(isKeyUpEvent(event) ? PlatformKeyboardEvent::KeyUp : PlatformKeyboardEvent::KeyDown)
Note: See TracChangeset for help on using the changeset viewer.