Changeset 157163 in webkit


Ignore:
Timestamp:
Oct 9, 2013 6:07:37 AM (11 years ago)
Author:
Carlos Garcia Campos
Message:

[GTK] mouse wheel events are not considered to be mouse events
https://bugs.webkit.org/show_bug.cgi?id=120648

Reviewed by Gustavo Noronha Silva.

Expose WheelEvent in the GObject DOM bindings API.

  • bindings/gobject/GNUmakefile.am: Add new files to compilation.
  • bindings/gobject/WebKitDOMPrivate.cpp:

(WebKit::wrap): Create a WebKitDOMWheelEvent when the given Event
is a WheelEvent.

Location:
trunk/Source/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r157158 r157163  
     12013-10-09  Carlos Garcia Campos  <cgarcia@igalia.com>
     2
     3        [GTK] mouse wheel events are not considered to be mouse events
     4        https://bugs.webkit.org/show_bug.cgi?id=120648
     5
     6        Reviewed by Gustavo Noronha Silva.
     7
     8        Expose WheelEvent in the GObject DOM bindings API.
     9
     10        * bindings/gobject/GNUmakefile.am: Add new files to compilation.
     11        * bindings/gobject/WebKitDOMPrivate.cpp:
     12        (WebKit::wrap): Create a WebKitDOMWheelEvent when the given Event
     13        is a WheelEvent.
     14
    1152013-10-08  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
    216
  • trunk/Source/WebCore/bindings/gobject/GNUmakefile.am

    r155943 r157163  
    272272        DerivedSources/webkitdom/WebKitDOMWebKitPointPrivate.h \
    273273        DerivedSources/webkitdom/WebKitDOMWebKitNamedFlow.cpp \
     274        DerivedSources/webkitdom/WebKitDOMWheelEvent.cpp \
     275        DerivedSources/webkitdom/WebKitDOMWheelEventPrivate.h \
    274276        DerivedSources/webkitdom/WebKitDOMXPathExpression.cpp \
    275277        DerivedSources/webkitdom/WebKitDOMXPathExpressionPrivate.h \
     
    423425        DerivedSources/webkitdom/WebKitDOMPerformanceNavigation.h \
    424426        DerivedSources/webkitdom/WebKitDOMPerformanceTiming.h \
     427        DerivedSources/webkitdom/WebKitDOMWheelEvent.h \
    425428        DerivedSources/webkitdom/webkitdom.h \
    426429        DerivedSources/webkitdom/webkitdomdefines.h
  • trunk/Source/WebCore/bindings/gobject/WebKitDOMPrivate.cpp

    r153921 r157163  
    6363#include "WebKitDOMTextPrivate.h"
    6464#include "WebKitDOMUIEventPrivate.h"
     65#include "WebKitDOMWheelEventPrivate.h"
    6566
    6667namespace WebKit {
     
    112113    ASSERT(event);
    113114
    114     if (event->isMouseEvent())
    115         return WEBKIT_DOM_EVENT(wrapMouseEvent(static_cast<MouseEvent*>(event)));
     115    if (event->isUIEvent()) {
     116        if (event->isMouseEvent())
     117            return WEBKIT_DOM_EVENT(wrapMouseEvent(static_cast<MouseEvent*>(event)));
    116118
    117     if (event->isKeyboardEvent())
    118         return WEBKIT_DOM_EVENT(wrapKeyboardEvent(static_cast<KeyboardEvent*>(event)));
     119        if (event->isKeyboardEvent())
     120            return WEBKIT_DOM_EVENT(wrapKeyboardEvent(static_cast<KeyboardEvent*>(event)));
    119121
    120     if (event->isUIEvent())
     122        if (event->eventInterface() == WheelEventInterfaceType)
     123            return WEBKIT_DOM_EVENT(wrapWheelEvent(static_cast<WheelEvent*>(event)));
     124
    121125        return WEBKIT_DOM_EVENT(wrapUIEvent(static_cast<UIEvent*>(event)));
     126    }
    122127
    123128    return wrapEvent(event);
Note: See TracChangeset for help on using the changeset viewer.