Changeset 64505 in webkit


Ignore:
Timestamp:
Aug 2, 2010 4:43:04 PM (14 years ago)
Author:
xan@webkit.org
Message:

2010-08-02 Xan Lopez <xlopez@igalia.com>

Reviewed by Gustavo Noronha.

[GTK] Add support for the Audio element in the DOM bindings
https://bugs.webkit.org/show_bug.cgi?id=43313

Add new files to the build.

  • GNUmakefile.am:

WebCore:

2010-08-02 Xan Lopez <xlopez@igalia.com>

Reviewed by Gustavo Noronha.

[GTK] Add support for the Audio element in the DOM bindings
https://bugs.webkit.org/show_bug.cgi?id=43313

The IDL definition of some HTMLMediaElement methods does not match
the C++ implementation API, take this fact into account when
generating the bindings.

  • bindings/gobject/WebKitHTMLElementWrapperFactory.cpp: (WebKit::createAudioWrapper): (WebKit::createHTMLElementWrapper):
  • bindings/scripts/CodeGeneratorGObject.pm:
Location:
trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/ChangeLog

    r64471 r64505  
     12010-08-02  Xan Lopez  <xlopez@igalia.com>
     2
     3        Reviewed by Gustavo Noronha.
     4
     5        [GTK] Add support for the Audio element in the DOM bindings
     6        https://bugs.webkit.org/show_bug.cgi?id=43313
     7
     8        Add new files to the build.
     9
     10        * GNUmakefile.am:
     11
    1122010-08-02  Chris Fleizach  <cfleizach@apple.com>
    213
  • trunk/GNUmakefile.am

    r64471 r64505  
    376376        DerivedSources/webkit/WebKitDOMHTMLAppletElement.h \
    377377        DerivedSources/webkit/WebKitDOMHTMLAreaElement.h \
     378        DerivedSources/webkit/WebKitDOMHTMLAudioElement.h \
    378379        DerivedSources/webkit/WebKitDOMHTMLBaseElement.h \
    379380        DerivedSources/webkit/WebKitDOMHTMLBaseFontElement.h \
     
    409410        DerivedSources/webkit/WebKitDOMHTMLMapElement.h \
    410411        DerivedSources/webkit/WebKitDOMHTMLMarqueeElement.h \
     412        DerivedSources/webkit/WebKitDOMHTMLMediaElement.h \
    411413        DerivedSources/webkit/WebKitDOMHTMLMenuElement.h \
    412414        DerivedSources/webkit/WebKitDOMHTMLMetaElement.h \
     
    433435        DerivedSources/webkit/WebKitDOMHTMLTableRowElement.h \
    434436        DerivedSources/webkit/WebKitDOMHTMLUListElement.h \
     437        DerivedSources/webkit/WebKitDOMMediaError.h \
     438        DerivedSources/webkit/WebKitDOMTimeRanges.h \
    435439        DerivedSources/webkit/WebKitDOMValidityState.h \
    436440        DerivedSources/webkit/WebKitDOMDOMApplicationCache.h \
     
    537541        DerivedSources/webkit/WebKitDOMHTMLAreaElement.cpp \
    538542        DerivedSources/webkit/WebKitDOMHTMLAreaElementPrivate.h \
     543        DerivedSources/webkit/WebKitDOMHTMLAudioElement.cpp \
     544        DerivedSources/webkit/WebKitDOMHTMLAudioElementPrivate.h \
    539545        DerivedSources/webkit/WebKitDOMHTMLBaseElement.cpp \
    540546        DerivedSources/webkit/WebKitDOMHTMLBaseElementPrivate.h \
     
    603609        DerivedSources/webkit/WebKitDOMHTMLMarqueeElement.cpp \
    604610        DerivedSources/webkit/WebKitDOMHTMLMarqueeElementPrivate.h \
     611        DerivedSources/webkit/WebKitDOMHTMLMediaElement.cpp \
     612        DerivedSources/webkit/WebKitDOMHTMLMediaElementPrivate.h \
    605613        DerivedSources/webkit/WebKitDOMHTMLMenuElement.cpp \
    606614        DerivedSources/webkit/WebKitDOMHTMLMenuElementPrivate.h \
     
    653661        DerivedSources/webkit/WebKitDOMLocation.cpp \
    654662        DerivedSources/webkit/WebKitDOMLocationPrivate.h \
     663        DerivedSources/webkit/WebKitDOMMediaError.cpp \
     664        DerivedSources/webkit/WebKitDOMMediaErrorPrivate.h \
    655665        DerivedSources/webkit/WebKitDOMMediaList.cpp \
    656666        DerivedSources/webkit/WebKitDOMMediaListPrivate.h \
     
    688698        DerivedSources/webkit/WebKitDOMText.cpp \
    689699        DerivedSources/webkit/WebKitDOMTextPrivate.h \
     700        DerivedSources/webkit/WebKitDOMTimeRanges.cpp \
     701        DerivedSources/webkit/WebKitDOMTimeRangesPrivate.h \
    690702        DerivedSources/webkit/WebKitDOMTreeWalker.cpp \
    691703        DerivedSources/webkit/WebKitDOMTreeWalkerPrivate.h \
  • trunk/WebCore/ChangeLog

    r64504 r64505  
     12010-08-02  Xan Lopez  <xlopez@igalia.com>
     2
     3        Reviewed by Gustavo Noronha.
     4
     5        [GTK] Add support for the Audio element in the DOM bindings
     6        https://bugs.webkit.org/show_bug.cgi?id=43313
     7
     8        The IDL definition of some HTMLMediaElement methods does not match
     9        the C++ implementation API, take this fact into account when
     10        generating the bindings.
     11
     12        * bindings/gobject/WebKitHTMLElementWrapperFactory.cpp:
     13        (WebKit::createAudioWrapper):
     14        (WebKit::createHTMLElementWrapper):
     15        * bindings/scripts/CodeGeneratorGObject.pm:
     16
    1172010-08-02  Anders Carlsson  <andersca@apple.com>
    218
  • trunk/WebCore/bindings/gobject/WebKitHTMLElementWrapperFactory.cpp

    r58108 r64505  
    3838#include "HTMLAppletElement.h"
    3939#include "HTMLAreaElement.h"
     40#include "HTMLAudioElement.h"
    4041#include "HTMLBRElement.h"
    4142#include "HTMLBaseElement.h"
     
    9697#include "webkit/WebKitDOMHTMLAppletElementPrivate.h"
    9798#include "webkit/WebKitDOMHTMLAreaElementPrivate.h"
     99#include "webkit/WebKitDOMHTMLAudioElementPrivate.h"
    98100#include "webkit/WebKitDOMHTMLBRElementPrivate.h"
    99101#include "webkit/WebKitDOMHTMLBaseElementPrivate.h"
     
    176178}
    177179
     180static gpointer createAudioWrapper(PassRefPtr<HTMLElement> element)
     181{
     182    return wrapHTMLAudioElement(static_cast<HTMLAudioElement*>(element.get()));
     183}
     184
    178185static gpointer createBaseWrapper(PassRefPtr<HTMLElement> element)
    179186{
     
    447454       map.set(aTag.localName().impl(), createAnchorWrapper);
    448455       map.set(appletTag.localName().impl(), createAppletWrapper);
     456       map.set(audioTag.localName().impl(), createAudioWrapper);
    449457       map.set(areaTag.localName().impl(), createAreaWrapper);
    450458       map.set(baseTag.localName().impl(), createBaseWrapper);
  • trunk/WebCore/bindings/scripts/CodeGeneratorGObject.pm

    r62198 r64505  
    823823    }
    824824
     825    # Not quite sure what to do with this yet, but we need to take into
     826    # account the difference in parameters between the IDL file and the
     827    # actual implementation.
     828    if ($function->signature->extendedAttributes->{"NeedsUserGestureCheck"}) {
     829        $functionSig .= ", gboolean isUserGesture";
     830        $callImplParams .= ", " if $callImplParams;
     831        $callImplParams .= "false";
     832    }
     833
    825834    if ($returnType ne "void" && $returnValueIsGDOMType && $functionSigType ne "DOMObject") {
    826835        if ($functionSigType ne "EventTarget") {
Note: See TracChangeset for help on using the changeset viewer.