Changeset 124759 in webkit


Ignore:
Timestamp:
Aug 6, 2012 6:04:03 AM (12 years ago)
Author:
commit-queue@webkit.org
Message:

Add DeviceProximityEvent interface
https://bugs.webkit.org/show_bug.cgi?id=92942

Patch by Kihong Kwon <kihong.kwon@samsung.com> on 2012-08-06
Reviewed by Kentaro Hara.

Source/WebCore:

Spec : http://www.w3.org/TR/proximity/#idl-def-DeviceProximityEvent

Add DeviceProximityEvent interface of Proximity Events.
And add onwebkitdeviceproximity event handler to the DOMWindow.

Tests: fast/dom/Proximity/check-event-deviceproximity.html

fast/dom/Proximity/create-event-deviceproximity.html
fast/events/constructors/device-proximity-event-constructor.html

  • CMakeLists.txt:
  • Modules/proximity/DeviceProximityEvent.cpp: Added.

(WebCore):
(WebCore::DeviceProximityEvent::DeviceProximityEvent):

  • Modules/proximity/DeviceProximityEvent.h: Added.

(WebCore):
(WebCore::DeviceProximityEventInit::DeviceProximityEventInit):
(DeviceProximityEventInit):
(DeviceProximityEvent):
(WebCore::DeviceProximityEvent::~DeviceProximityEvent):
(WebCore::DeviceProximityEvent::create):
(WebCore::DeviceProximityEvent::value):
(WebCore::DeviceProximityEvent::min):
(WebCore::DeviceProximityEvent::max):
(WebCore::DeviceProximityEvent::interfaceName):

  • Modules/proximity/DeviceProximityEvent.idl: Added.
  • dom/EventNames.h:

(WebCore):

  • dom/EventNames.in:
  • page/DOMWindow.h:

(DOMWindow):

  • page/DOMWindow.idl:

LayoutTests:

Add tests for creating and handling the DeviceProximityEvent.

  • fast/dom/Proximity/check-event-deviceproximity-expected.txt: Added.
  • fast/dom/Proximity/check-event-deviceproximity.html: Added.
  • fast/dom/Proximity/create-event-deviceproximity-expected.txt: Added.
  • fast/dom/Proximity/create-event-deviceproximity.html: Added.
  • fast/events/constructors/device-proximity-event-constructor-expected.txt: Added.
  • fast/events/constructors/device-proximity-event-constructor.html: Added.
  • platform/chromium/TestExpectations:
  • platform/efl/TestExpectations:
  • platform/gtk/TestExpectations:
  • platform/mac/Skipped:
  • platform/qt/Skipped:
Location:
trunk
Files:
11 added
12 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r124756 r124759  
     12012-08-06  Kihong Kwon  <kihong.kwon@samsung.com>
     2
     3        Add DeviceProximityEvent interface
     4        https://bugs.webkit.org/show_bug.cgi?id=92942
     5
     6        Reviewed by Kentaro Hara.
     7
     8        Add tests for creating and handling the DeviceProximityEvent.
     9
     10        * fast/dom/Proximity/check-event-deviceproximity-expected.txt: Added.
     11        * fast/dom/Proximity/check-event-deviceproximity.html: Added.
     12        * fast/dom/Proximity/create-event-deviceproximity-expected.txt: Added.
     13        * fast/dom/Proximity/create-event-deviceproximity.html: Added.
     14        * fast/events/constructors/device-proximity-event-constructor-expected.txt: Added.
     15        * fast/events/constructors/device-proximity-event-constructor.html: Added.
     16        * platform/chromium/TestExpectations:
     17        * platform/efl/TestExpectations:
     18        * platform/gtk/TestExpectations:
     19        * platform/mac/Skipped:
     20        * platform/qt/Skipped:
     21
    1222012-08-06  Mikhail Pozdnyakov  <mikhail.pozdnyakov@intel.com>
    223
  • trunk/LayoutTests/platform/chromium/TestExpectations

    r124745 r124759  
    153153// Chromium needs larger media files to test buffering this way.
    154154BUGWK88172 SKIP : http/tests/media/video-buffered.html = PASS
     155
     156// Proximity Events is not supported.
     157BUGWK92942 SKIP : fast/dom/Proximity = PASS
     158BUGWK92942 SKIP : fast/events/constructors/device-proximity-event-constructor.html = PASS
    155159
    156160// -----------------------------------------------------------------
  • trunk/LayoutTests/platform/efl/TestExpectations

    r124725 r124759  
    824824BUGWK92352 : css3/flexbox/flex-rounding.html = TEXT
    825825
     826// Proximity Events is not supported.
     827BUGWK92942 SKIP : fast/dom/Proximity = PASS
     828BUGWK92942 SKIP : fast/events/constructors/device-proximity-event-constructor.html = PASS
     829
    826830// Needs rebaseline after https://bugs.webkit.org/show_bug.cgi?id=80219
    827831BUGWK80219 : fast/box-sizing/box-sizing.html = IMAGE+TEXT
  • trunk/LayoutTests/platform/gtk/TestExpectations

    r124717 r124759  
    394394// Dialog element is not yet enabled.
    395395BUGWK84635 SKIP : fast/dom/HTMLDialogElement = TEXT
     396
     397// Proximity Events is not supported.
     398BUGWK92942 SKIP : fast/dom/Proximity = PASS
     399BUGWK92942 SKIP : fast/events/constructors/device-proximity-event-constructor.html = PASS
     400
    396401//////////////////////////////////////////////////////////////////////////////////////////
    397402// End of Expected failures
  • trunk/LayoutTests/platform/mac/Skipped

    r124717 r124759  
    617617networkinformation
    618618
     619# Proximity Events is not supported.
     620fast/dom/Proximity
     621fast/events/constructors/device-proximity-event-constructor.html
     622
    619623# https://bugs.webkit.org/show_bug.cgi?id=43022
    620624tables/mozilla_expected_failures/bugs/bug85016.html
  • trunk/LayoutTests/platform/qt/Skipped

    r124751 r124759  
    495495# https://bugs.webkit.org/show_bug.cgi?id=85558
    496496http/tests/security/contentSecurityPolicy/1.1
     497
     498# Proximity Events is now supported.
     499fast/dom/Proximity
     500fast/events/constructors/device-proximity-event-constructor.html
    497501
    498502# =========================================================================== #
  • trunk/Source/WebCore/CMakeLists.txt

    r124730 r124759  
    1212    "${WEBCORE_DIR}/Modules/notifications"
    1313    "${WEBCORE_DIR}/Modules/protocolhandler"
     14    "${WEBCORE_DIR}/Modules/proximity"
    1415    "${WEBCORE_DIR}/Modules/quota"
    1516    "${WEBCORE_DIR}/Modules/vibration"
     
    225226
    226227    Modules/protocolhandler/NavigatorRegisterProtocolHandler.idl
    227    
     228
     229    Modules/proximity/DeviceProximityEvent.idl
     230
    228231    Modules/quota/DOMWindowQuota.idl
    229232    Modules/quota/StorageInfo.idl
     
    853856
    854857    Modules/protocolhandler/NavigatorRegisterProtocolHandler.cpp
     858
     859    Modules/proximity/DeviceProximityEvent.cpp
    855860
    856861    Modules/quota/DOMWindowQuota.cpp
  • trunk/Source/WebCore/ChangeLog

    r124757 r124759  
     12012-08-06  Kihong Kwon  <kihong.kwon@samsung.com>
     2
     3        Add DeviceProximityEvent interface
     4        https://bugs.webkit.org/show_bug.cgi?id=92942
     5
     6        Reviewed by Kentaro Hara.
     7
     8        Spec : http://www.w3.org/TR/proximity/#idl-def-DeviceProximityEvent
     9
     10        Add DeviceProximityEvent interface of Proximity Events.
     11        And add onwebkitdeviceproximity event handler to the DOMWindow.
     12
     13        Tests: fast/dom/Proximity/check-event-deviceproximity.html
     14               fast/dom/Proximity/create-event-deviceproximity.html
     15               fast/events/constructors/device-proximity-event-constructor.html
     16
     17        * CMakeLists.txt:
     18        * Modules/proximity/DeviceProximityEvent.cpp: Added.
     19        (WebCore):
     20        (WebCore::DeviceProximityEvent::DeviceProximityEvent):
     21        * Modules/proximity/DeviceProximityEvent.h: Added.
     22        (WebCore):
     23        (WebCore::DeviceProximityEventInit::DeviceProximityEventInit):
     24        (DeviceProximityEventInit):
     25        (DeviceProximityEvent):
     26        (WebCore::DeviceProximityEvent::~DeviceProximityEvent):
     27        (WebCore::DeviceProximityEvent::create):
     28        (WebCore::DeviceProximityEvent::value):
     29        (WebCore::DeviceProximityEvent::min):
     30        (WebCore::DeviceProximityEvent::max):
     31        (WebCore::DeviceProximityEvent::interfaceName):
     32        * Modules/proximity/DeviceProximityEvent.idl: Added.
     33        * dom/EventNames.h:
     34        (WebCore):
     35        * dom/EventNames.in:
     36        * page/DOMWindow.h:
     37        (DOMWindow):
     38        * page/DOMWindow.idl:
     39
    1402012-08-06  Carlos Garcia Campos  <cgarcia@igalia.com>
    241
  • trunk/Source/WebCore/dom/EventNames.h

    r124535 r124759  
    239239    macro(webkitresourcetimingbufferfull) \
    240240    \
     241    macro(webkitdeviceproximity) \
     242    \
    241243
    242244// end of DOM_EVENT_NAMES_FOR_EACH
  • trunk/Source/WebCore/dom/EventNames.in

    r121691 r124759  
    4444DeviceMotionEvent conditional=DEVICE_ORIENTATION
    4545DeviceOrientationEvent conditional=DEVICE_ORIENTATION
     46DeviceProximityEvent conditional=PROXIMITY_EVENTS
    4647OrientationEvent interfaceName=Event, conditional=ORIENTATION_EVENTS
    4748MediaKeyEvent conditional=ENCRYPTED_MEDIA
  • trunk/Source/WebCore/page/DOMWindow.h

    r124753 r124759  
    354354#endif
    355355
     356#if ENABLE(PROXIMITY_EVENTS)
     357        DEFINE_ATTRIBUTE_EVENT_LISTENER(webkitdeviceproximity);
     358#endif
     359
    356360        // HTML 5 key/value storage
    357361        Storage* sessionStorage(ExceptionCode&) const;
  • trunk/Source/WebCore/page/DOMWindow.idl

    r123522 r124759  
    314314        attribute [Conditional=DEVICE_ORIENTATION,V8EnabledAtRuntime] EventListener ondeviceorientation;
    315315
     316        attribute [Conditional=PROXIMITY_EVENTS] EventListener onwebkitdeviceproximity;
     317
    316318        // EventTarget interface
    317319        [Custom] void addEventListener(in DOMString type,
     
    552554        attribute [Conditional=INPUT_SPEECH] SpeechInputEventConstructor SpeechInputEvent;
    553555        attribute [Conditional=WEBGL] WebGLContextEventConstructor WebGLContextEvent;
     556        attribute [Conditional=PROXIMITY_EVENTS] DeviceProximityEventConstructor DeviceProximityEvent;
    554557
    555558        attribute EventExceptionConstructor EventException;
Note: See TracChangeset for help on using the changeset viewer.