Add DeviceProximityEvent interface
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 6 Aug 2012 13:04:03 +0000 (13:04 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 6 Aug 2012 13:04:03 +0000 (13:04 +0000)
commitdb885fd9673e7a3b6af96543a18aa71370f23ea4
tree221e85148a70bbb7c30011327a3e67af357d4019
parent6f40420b5de716e89dbb8a293653a32da2b95136
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:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@124759 268f45cc-cd09-0410-ab3c-d52691b4dbfc
21 files changed:
LayoutTests/ChangeLog
LayoutTests/fast/dom/Proximity/check-event-deviceproximity-expected.txt [new file with mode: 0644]
LayoutTests/fast/dom/Proximity/check-event-deviceproximity.html [new file with mode: 0644]
LayoutTests/fast/dom/Proximity/create-event-deviceproximity-expected.txt [new file with mode: 0644]
LayoutTests/fast/dom/Proximity/create-event-deviceproximity.html [new file with mode: 0644]
LayoutTests/fast/events/constructors/device-proximity-event-constructor-expected.txt [new file with mode: 0644]
LayoutTests/fast/events/constructors/device-proximity-event-constructor.html [new file with mode: 0644]
LayoutTests/platform/chromium/TestExpectations
LayoutTests/platform/efl/TestExpectations
LayoutTests/platform/gtk/TestExpectations
LayoutTests/platform/mac/Skipped
LayoutTests/platform/qt/Skipped
Source/WebCore/CMakeLists.txt
Source/WebCore/ChangeLog
Source/WebCore/Modules/proximity/DeviceProximityEvent.cpp [new file with mode: 0644]
Source/WebCore/Modules/proximity/DeviceProximityEvent.h [new file with mode: 0644]
Source/WebCore/Modules/proximity/DeviceProximityEvent.idl [new file with mode: 0644]
Source/WebCore/dom/EventNames.h
Source/WebCore/dom/EventNames.in
Source/WebCore/page/DOMWindow.h
Source/WebCore/page/DOMWindow.idl