Changeset 57205 in webkit


Ignore:
Timestamp:
Apr 7, 2010 5:48:59 AM (14 years ago)
Author:
Simon Hausmann
Message:

https://bugs.webkit.org/show_bug.cgi?id=36750

Reviewed by Laszlo Gombos.

[Qt] Package build without touch support is broken

Use the conditional attribute instead of #ifdefs in the idl file for the
touch specific properties, to make the generated files compile with and
without the touch events enabled.

  • dom/Document.idl: Use conditional instead of #ifdef.
  • dom/Element.idl: Ditto.
  • page/DOMWindow.idl: Ditto.
Location:
trunk/WebCore
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r57204 r57205  
     12010-04-07  Simon Hausmann  <simon.hausmann@nokia.com>
     2
     3        Reviewed by Laszlo Gombos.
     4
     5        https://bugs.webkit.org/show_bug.cgi?id=36750
     6
     7        [Qt] Package build without touch support is broken
     8
     9        Use the conditional attribute instead of #ifdefs in the idl file for the
     10        touch specific properties, to make the generated files compile with and
     11        without the touch events enabled.
     12
     13        * dom/Document.idl: Use conditional instead of #ifdef.
     14        * dom/Element.idl: Ditto.
     15        * page/DOMWindow.idl: Ditto.
     16
    1172010-04-07  Simon Hausmann  <simon.hausmann@nokia.com>
    218
  • trunk/WebCore/dom/Document.idl

    r57200 r57205  
    307307        attribute [DontEnum] EventListener onsearch;
    308308        attribute [DontEnum] EventListener onselectstart;
    309 #if defined(ENABLE_TOUCH_EVENTS) && ENABLE_TOUCH_EVENTS
    310         attribute [DontEnum] EventListener ontouchstart;
    311         attribute [DontEnum] EventListener ontouchmove;
    312         attribute [DontEnum] EventListener ontouchend;
    313         attribute [DontEnum] EventListener ontouchcancel;
    314 #endif
     309        attribute [DontEnum,Conditional=TOUCH_EVENTS] EventListener ontouchstart;
     310        attribute [DontEnum,Conditional=TOUCH_EVENTS] EventListener ontouchmove;
     311        attribute [DontEnum,Conditional=TOUCH_EVENTS] EventListener ontouchend;
     312        attribute [DontEnum,Conditional=TOUCH_EVENTS] EventListener ontouchcancel;
    315313#endif
    316314    };
  • trunk/WebCore/dom/Element.idl

    r57200 r57205  
    196196        attribute [DontEnum] EventListener onsearch;
    197197        attribute [DontEnum] EventListener onselectstart;
    198 #if defined(ENABLE_TOUCH_EVENTS) && ENABLE_TOUCH_EVENTS
    199         attribute [DontEnum] EventListener ontouchstart;
    200         attribute [DontEnum] EventListener ontouchmove;
    201         attribute [DontEnum] EventListener ontouchend;
    202         attribute [DontEnum] EventListener ontouchcancel;
    203 #endif
     198        attribute [DontEnum,Conditional=TOUCH_EVENTS] EventListener ontouchstart;
     199        attribute [DontEnum,Conditional=TOUCH_EVENTS] EventListener ontouchmove;
     200        attribute [DontEnum,Conditional=TOUCH_EVENTS] EventListener ontouchend;
     201        attribute [DontEnum,Conditional=TOUCH_EVENTS] EventListener ontouchcancel;
    204202#endif
    205203    };
  • trunk/WebCore/page/DOMWindow.idl

    r57200 r57205  
    294294        attribute EventListener onorientationchange;
    295295#endif
    296  #if defined(ENABLE_TOUCH_EVENTS) && ENABLE_TOUCH_EVENTS
    297         attribute [DontEnum] EventListener ontouchstart;
    298         attribute [DontEnum] EventListener ontouchmove;
    299         attribute [DontEnum] EventListener ontouchend;
    300         attribute [DontEnum] EventListener ontouchcancel;
    301  #endif
     296        attribute [DontEnum,Conditional=TOUCH_EVENTS] EventListener ontouchstart;
     297        attribute [DontEnum,Conditional=TOUCH_EVENTS] EventListener ontouchmove;
     298        attribute [DontEnum,Conditional=TOUCH_EVENTS] EventListener ontouchend;
     299        attribute [DontEnum,Conditional=TOUCH_EVENTS] EventListener ontouchcancel;
    302300
    303301        // EventTarget interface
     
    713711#endif
    714712
    715 #if defined(ENABLE_TOUCH_EVENTS) && ENABLE_TOUCH_EVENTS
    716         attribute TouchEventConstructor TouchEvent;
    717 #endif
     713        attribute [Conditional=TOUCH_EVENTS] TouchEventConstructor TouchEvent;
    718714
    719715        attribute DOMFormDataConstructor FormData;
Note: See TracChangeset for help on using the changeset viewer.