123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767 |
- /*
- * Copyright (C) 2006, 2007 Apple Inc. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY
- * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR
- * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
- * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
- * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
- #include "config.h"
- #include "WebKitDLL.h"
- #include <initguid.h>
- #include "DOMEventsClasses.h"
- #include <WebCore/COMPtr.h>
- #include <WebCore/DOMWindow.h>
- #include <WebCore/Event.h>
- #include <WebCore/EventNames.h>
- #include <WebCore/KeyboardEvent.h>
- #include <WebCore/MouseEvent.h>
- #include <WebCore/ScriptExecutionContext.h>
- // DOMEventListener -----------------------------------------------------------
- HRESULT STDMETHODCALLTYPE DOMEventListener::QueryInterface(const IID &riid, void** ppvObject)
- {
- *ppvObject = 0;
- if (IsEqualGUID(riid, IID_IDOMEventListener))
- *ppvObject = static_cast<IDOMEventListener*>(this);
- else
- return DOMObject::QueryInterface(riid, ppvObject);
- AddRef();
- return S_OK;
- }
- HRESULT STDMETHODCALLTYPE DOMEventListener::handleEvent(
- /* [in] */ IDOMEvent* /*evt*/)
- {
- return E_NOTIMPL;
- }
- WebEventListener::WebEventListener(IDOMEventListener* i)
- : EventListener(CPPEventListenerType)
- , m_iDOMEventListener(i)
- {
- m_iDOMEventListener->AddRef();
- }
- WebEventListener::~WebEventListener()
- {
- m_iDOMEventListener->Release();
- }
- bool WebEventListener::operator==(const WebCore::EventListener& other)
- {
- return (other.type() == CPPEventListenerType
- && reinterpret_cast<const WebEventListener*>(&other)->m_iDOMEventListener == m_iDOMEventListener);
- }
- void WebEventListener::handleEvent(WebCore::ScriptExecutionContext* s, WebCore::Event* e)
- {
- RefPtr<WebCore::Event> ePtr(e);
- COMPtr<IDOMEvent> domEvent = DOMEvent::createInstance(ePtr);
- m_iDOMEventListener->handleEvent(domEvent.get());
- }
- PassRefPtr<WebEventListener> WebEventListener::create(IDOMEventListener* d)
- {
- return adoptRef(new WebEventListener(d));
- }
- // DOMEvent -------------------------------------------------------------------
- DOMEvent::DOMEvent(PassRefPtr<WebCore::Event> e)
- : m_event(0)
- {
- m_event = e;
- }
- DOMEvent::~DOMEvent()
- {
- }
- IDOMEvent* DOMEvent::createInstance(PassRefPtr<WebCore::Event> e)
- {
- if (!e)
- return 0;
- HRESULT hr;
- IDOMEvent* domEvent = 0;
- if (e->isKeyboardEvent()) {
- DOMKeyboardEvent* newEvent = new DOMKeyboardEvent(e);
- hr = newEvent->QueryInterface(IID_IDOMKeyboardEvent, (void**)&domEvent);
- } else if (e->isMouseEvent()) {
- DOMMouseEvent* newEvent = new DOMMouseEvent(e);
- hr = newEvent->QueryInterface(IID_IDOMMouseEvent, (void**)&domEvent);
- } else if (e->hasInterface(WebCore::eventNames().interfaceForMutationEvent)) {
- DOMMutationEvent* newEvent = new DOMMutationEvent(e);
- hr = newEvent->QueryInterface(IID_IDOMMutationEvent, (void**)&domEvent);
- } else if (e->hasInterface(WebCore::eventNames().interfaceForOverflowEvent)) {
- DOMOverflowEvent* newEvent = new DOMOverflowEvent(e);
- hr = newEvent->QueryInterface(IID_IDOMOverflowEvent, (void**)&domEvent);
- } else if (e->hasInterface(WebCore::eventNames().interfaceForWheelEvent)) {
- DOMWheelEvent* newEvent = new DOMWheelEvent(e);
- hr = newEvent->QueryInterface(IID_IDOMWheelEvent, (void**)&domEvent);
- } else if (e->isUIEvent()) {
- DOMUIEvent* newEvent = new DOMUIEvent(e);
- hr = newEvent->QueryInterface(IID_IDOMUIEvent, (void**)&domEvent);
- } else {
- DOMEvent* newEvent = new DOMEvent(e);
- hr = newEvent->QueryInterface(IID_IDOMEvent, (void**)&domEvent);
- }
- if (FAILED(hr))
- return 0;
- return domEvent;
- }
- HRESULT STDMETHODCALLTYPE DOMEvent::QueryInterface(const IID &riid, void** ppvObject)
- {
- *ppvObject = 0;
- if (IsEqualGUID(riid, IID_DOMEvent))
- *ppvObject = this;
- else if (IsEqualGUID(riid, IID_IDOMEvent))
- *ppvObject = static_cast<IDOMEvent*>(this);
- else
- return DOMObject::QueryInterface(riid, ppvObject);
- AddRef();
- return S_OK;
- }
- HRESULT STDMETHODCALLTYPE DOMEvent::type(
- /* [retval][out] */ BSTR* /*result*/)
- {
- return E_NOTIMPL;
- }
- HRESULT STDMETHODCALLTYPE DOMEvent::target(
- /* [retval][out] */ IDOMEventTarget** /*result*/)
- {
- return E_NOTIMPL;
- }
- HRESULT STDMETHODCALLTYPE DOMEvent::currentTarget(
- /* [retval][out] */ IDOMEventTarget** /*result*/)
- {
- return E_NOTIMPL;
- }
- HRESULT STDMETHODCALLTYPE DOMEvent::eventPhase(
- /* [retval][out] */ unsigned short* /*result*/)
- {
- return E_NOTIMPL;
- }
- HRESULT STDMETHODCALLTYPE DOMEvent::bubbles(
- /* [retval][out] */ BOOL* /*result*/)
- {
- return E_NOTIMPL;
- }
- HRESULT STDMETHODCALLTYPE DOMEvent::cancelable(
- /* [retval][out] */ BOOL* /*result*/)
- {
- return E_NOTIMPL;
- }
- HRESULT STDMETHODCALLTYPE DOMEvent::timeStamp(
- /* [retval][out] */ DOMTimeStamp* /*result*/)
- {
- return E_NOTIMPL;
- }
- HRESULT STDMETHODCALLTYPE DOMEvent::stopPropagation( void)
- {
- return E_NOTIMPL;
- }
- HRESULT STDMETHODCALLTYPE DOMEvent::preventDefault( void)
- {
- return E_NOTIMPL;
- }
- HRESULT STDMETHODCALLTYPE DOMEvent::initEvent(
- /* [in] */ BSTR /*eventTypeArg*/,
- /* [in] */ BOOL /*canBubbleArg*/,
- /* [in] */ BOOL /*cancelableArg*/)
- {
- return E_NOTIMPL;
- }
- // DOMUIEvent -----------------------------------------------------------------
- HRESULT STDMETHODCALLTYPE DOMUIEvent::QueryInterface(REFIID riid, void** ppvObject)
- {
- *ppvObject = 0;
- if (IsEqualGUID(riid, IID_IDOMUIEvent))
- *ppvObject = static_cast<IDOMUIEvent*>(this);
- else
- return DOMEvent::QueryInterface(riid, ppvObject);
- AddRef();
- return S_OK;
- }
- HRESULT STDMETHODCALLTYPE DOMUIEvent::view(
- /* [retval][out] */ IDOMWindow** /*result*/)
- {
- return E_NOTIMPL;
- }
- HRESULT STDMETHODCALLTYPE DOMUIEvent::detail(
- /* [retval][out] */ long* /*result*/)
- {
- return E_NOTIMPL;
- }
- HRESULT STDMETHODCALLTYPE DOMUIEvent::initUIEvent(
- /* [in] */ BSTR /*type*/,
- /* [in] */ BOOL /*canBubble*/,
- /* [in] */ BOOL /*cancelable*/,
- /* [in] */ IDOMWindow* /*view*/,
- /* [in] */ long /*detail*/)
- {
- return E_NOTIMPL;
- }
- HRESULT STDMETHODCALLTYPE DOMUIEvent::keyCode(
- /* [retval][out] */ long* /*result*/)
- {
- return E_NOTIMPL;
- }
- HRESULT STDMETHODCALLTYPE DOMUIEvent::charCode(
- /* [retval][out] */ long* /*result*/)
- {
- return E_NOTIMPL;
- }
- HRESULT STDMETHODCALLTYPE DOMUIEvent::unused1(
- /* [retval][out] */ long* /*result*/)
- {
- return E_NOTIMPL;
- }
- HRESULT STDMETHODCALLTYPE DOMUIEvent::unused2(
- /* [retval][out] */ long* /*result*/)
- {
- return E_NOTIMPL;
- }
- HRESULT STDMETHODCALLTYPE DOMUIEvent::pageX(
- /* [retval][out] */ long* /*result*/)
- {
- return E_NOTIMPL;
- }
- HRESULT STDMETHODCALLTYPE DOMUIEvent::pageY(
- /* [retval][out] */ long* /*result*/)
- {
- return E_NOTIMPL;
- }
- HRESULT STDMETHODCALLTYPE DOMUIEvent::which(
- /* [retval][out] */ long* /*result*/)
- {
- return E_NOTIMPL;
- }
- // DOMKeyboardEvent -----------------------------------------------------------
- HRESULT STDMETHODCALLTYPE DOMKeyboardEvent::QueryInterface(REFIID riid, void** ppvObject)
- {
- *ppvObject = 0;
- if (IsEqualGUID(riid, IID_IDOMKeyboardEvent))
- *ppvObject = static_cast<IDOMKeyboardEvent*>(this);
- else
- return DOMUIEvent::QueryInterface(riid, ppvObject);
- AddRef();
- return S_OK;
- }
- HRESULT STDMETHODCALLTYPE DOMKeyboardEvent::keyIdentifier(
- /* [retval][out] */ BSTR* /*result*/)
- {
- return E_NOTIMPL;
- }
- HRESULT STDMETHODCALLTYPE DOMKeyboardEvent::keyLocation(
- /* [retval][out] */ unsigned long* /*result*/)
- {
- return E_NOTIMPL;
- }
- HRESULT STDMETHODCALLTYPE DOMKeyboardEvent::ctrlKey(
- /* [retval][out] */ BOOL* result)
- {
- *result = FALSE;
- if (!m_event || !m_event->isKeyboardEvent())
- return E_FAIL;
- WebCore::KeyboardEvent* keyEvent = static_cast<WebCore::KeyboardEvent*>(m_event.get());
- *result = keyEvent->ctrlKey() ? TRUE : FALSE;
- return S_OK;
- }
- HRESULT STDMETHODCALLTYPE DOMKeyboardEvent::shiftKey(
- /* [retval][out] */ BOOL* result)
- {
- *result = FALSE;
- if (!m_event || !m_event->isKeyboardEvent())
- return E_FAIL;
- WebCore::KeyboardEvent* keyEvent = static_cast<WebCore::KeyboardEvent*>(m_event.get());
- *result = keyEvent->shiftKey() ? TRUE : FALSE;
- return S_OK;
- }
- HRESULT STDMETHODCALLTYPE DOMKeyboardEvent::altKey(
- /* [retval][out] */ BOOL* result)
- {
- *result = FALSE;
- if (!m_event || !m_event->isKeyboardEvent())
- return E_FAIL;
- WebCore::KeyboardEvent* keyEvent = static_cast<WebCore::KeyboardEvent*>(m_event.get());
- *result = keyEvent->altKey() ? TRUE : FALSE;
- return S_OK;
- }
- HRESULT STDMETHODCALLTYPE DOMKeyboardEvent::metaKey(
- /* [retval][out] */ BOOL* result)
- {
- *result = FALSE;
- if (!m_event || !m_event->isKeyboardEvent())
- return E_FAIL;
- WebCore::KeyboardEvent* keyEvent = static_cast<WebCore::KeyboardEvent*>(m_event.get());
- *result = keyEvent->metaKey() ? TRUE : FALSE;
- return S_OK;
- }
- HRESULT STDMETHODCALLTYPE DOMKeyboardEvent::altGraphKey(
- /* [retval][out] */ BOOL* result)
- {
- *result = FALSE;
- if (!m_event || !m_event->isKeyboardEvent())
- return E_FAIL;
- WebCore::KeyboardEvent* keyEvent = static_cast<WebCore::KeyboardEvent*>(m_event.get());
- *result = keyEvent->altGraphKey() ? TRUE : FALSE;
- return S_OK;
- }
- HRESULT STDMETHODCALLTYPE DOMKeyboardEvent::getModifierState(
- /* [in] */ BSTR /*keyIdentifierArg*/,
- /* [retval][out] */ BOOL* /*result*/)
- {
- return E_NOTIMPL;
- }
- HRESULT STDMETHODCALLTYPE DOMKeyboardEvent::initKeyboardEvent(
- /* [in] */ BSTR /*type*/,
- /* [in] */ BOOL /*canBubble*/,
- /* [in] */ BOOL /*cancelable*/,
- /* [in] */ IDOMWindow* /*view*/,
- /* [in] */ BSTR /*keyIdentifier*/,
- /* [in] */ unsigned long /*keyLocation*/,
- /* [in] */ BOOL /*ctrlKey*/,
- /* [in] */ BOOL /*altKey*/,
- /* [in] */ BOOL /*shiftKey*/,
- /* [in] */ BOOL /*metaKey*/,
- /* [in] */ BOOL /*graphKey*/)
- {
- return E_NOTIMPL;
- }
- // DOMMouseEvent --------------------------------------------------------------
- HRESULT STDMETHODCALLTYPE DOMMouseEvent::QueryInterface(REFIID riid, void** ppvObject)
- {
- *ppvObject = 0;
- if (IsEqualGUID(riid, IID_IDOMMouseEvent))
- *ppvObject = static_cast<IDOMMouseEvent*>(this);
- else
- return DOMUIEvent::QueryInterface(riid, ppvObject);
- AddRef();
- return S_OK;
- }
- HRESULT STDMETHODCALLTYPE DOMMouseEvent::screenX(
- /* [retval][out] */ long* /*result*/)
- {
- return E_NOTIMPL;
- }
- HRESULT STDMETHODCALLTYPE DOMMouseEvent::screenY(
- /* [retval][out] */ long* /*result*/)
- {
- return E_NOTIMPL;
- }
- HRESULT STDMETHODCALLTYPE DOMMouseEvent::clientX(
- /* [retval][out] */ long* /*result*/)
- {
- return E_NOTIMPL;
- }
- HRESULT STDMETHODCALLTYPE DOMMouseEvent::clientY(
- /* [retval][out] */ long* /*result*/)
- {
- return E_NOTIMPL;
- }
- HRESULT STDMETHODCALLTYPE DOMMouseEvent::ctrlKey(
- /* [retval][out] */ BOOL* result)
- {
- *result = FALSE;
- if (!m_event || !m_event->isMouseEvent())
- return E_FAIL;
- WebCore::MouseEvent* mouseEvent = static_cast<WebCore::MouseEvent*>(m_event.get());
- *result = mouseEvent->ctrlKey() ? TRUE : FALSE;
- return S_OK;
- }
- HRESULT STDMETHODCALLTYPE DOMMouseEvent::shiftKey(
- /* [retval][out] */ BOOL* result)
- {
- *result = FALSE;
- if (!m_event || !m_event->isMouseEvent())
- return E_FAIL;
- WebCore::MouseEvent* mouseEvent = static_cast<WebCore::MouseEvent*>(m_event.get());
- *result = mouseEvent->shiftKey() ? TRUE : FALSE;
- return S_OK;
- }
- HRESULT STDMETHODCALLTYPE DOMMouseEvent::altKey(
- /* [retval][out] */ BOOL* result)
- {
- *result = FALSE;
- if (!m_event || !m_event->isMouseEvent())
- return E_FAIL;
- WebCore::MouseEvent* mouseEvent = static_cast<WebCore::MouseEvent*>(m_event.get());
- *result = mouseEvent->altKey() ? TRUE : FALSE;
- return S_OK;
- }
- HRESULT STDMETHODCALLTYPE DOMMouseEvent::metaKey(
- /* [retval][out] */ BOOL* result)
- {
- *result = FALSE;
- if (!m_event || !m_event->isMouseEvent())
- return E_FAIL;
- WebCore::MouseEvent* mouseEvent = static_cast<WebCore::MouseEvent*>(m_event.get());
- *result = mouseEvent->metaKey() ? TRUE : FALSE;
- return S_OK;
- }
- HRESULT STDMETHODCALLTYPE DOMMouseEvent::button(
- /* [retval][out] */ unsigned short* /*result*/)
- {
- return E_NOTIMPL;
- }
- HRESULT STDMETHODCALLTYPE DOMMouseEvent::relatedTarget(
- /* [retval][out] */ IDOMEventTarget** /*result*/)
- {
- return E_NOTIMPL;
- }
- HRESULT STDMETHODCALLTYPE DOMMouseEvent::initMouseEvent(
- /* [in] */ BSTR /*type*/,
- /* [in] */ BOOL /*canBubble*/,
- /* [in] */ BOOL /*cancelable*/,
- /* [in] */ IDOMWindow* /*view*/,
- /* [in] */ long /*detail*/,
- /* [in] */ long /*screenX*/,
- /* [in] */ long /*screenY*/,
- /* [in] */ long /*clientX*/,
- /* [in] */ long /*clientY*/,
- /* [in] */ BOOL /*ctrlKey*/,
- /* [in] */ BOOL /*altKey*/,
- /* [in] */ BOOL /*shiftKey*/,
- /* [in] */ BOOL /*metaKey*/,
- /* [in] */ unsigned short /*button*/,
- /* [in] */ IDOMEventTarget* /*relatedTarget*/)
- {
- return E_NOTIMPL;
- }
- HRESULT STDMETHODCALLTYPE DOMMouseEvent::offsetX(
- /* [retval][out] */ long* /*result*/)
- {
- return E_NOTIMPL;
- }
- HRESULT STDMETHODCALLTYPE DOMMouseEvent::offsetY(
- /* [retval][out] */ long* /*result*/)
- {
- return E_NOTIMPL;
- }
- HRESULT STDMETHODCALLTYPE DOMMouseEvent::x(
- /* [retval][out] */ long* /*result*/)
- {
- return E_NOTIMPL;
- }
- HRESULT STDMETHODCALLTYPE DOMMouseEvent::y(
- /* [retval][out] */ long* /*result*/)
- {
- return E_NOTIMPL;
- }
- HRESULT STDMETHODCALLTYPE DOMMouseEvent::fromElement(
- /* [retval][out] */ IDOMNode** /*result*/)
- {
- return E_NOTIMPL;
- }
- HRESULT STDMETHODCALLTYPE DOMMouseEvent::toElement(
- /* [retval][out] */ IDOMNode** /*result*/)
- {
- return E_NOTIMPL;
- }
- // DOMMutationEvent -----------------------------------------------------------
- HRESULT STDMETHODCALLTYPE DOMMutationEvent::QueryInterface(REFIID riid, void** ppvObject)
- {
- *ppvObject = 0;
- if (IsEqualGUID(riid, IID_IDOMMutationEvent))
- *ppvObject = static_cast<IDOMMutationEvent*>(this);
- else
- return DOMEvent::QueryInterface(riid, ppvObject);
- AddRef();
- return S_OK;
- }
- HRESULT STDMETHODCALLTYPE DOMMutationEvent::relatedNode(
- /* [retval][out] */ IDOMNode** /*result*/)
- {
- return E_NOTIMPL;
- }
- HRESULT STDMETHODCALLTYPE DOMMutationEvent::prevValue(
- /* [retval][out] */ BSTR* /*result*/)
- {
- return E_NOTIMPL;
- }
- HRESULT STDMETHODCALLTYPE DOMMutationEvent::newValue(
- /* [retval][out] */ BSTR* /*result*/)
- {
- return E_NOTIMPL;
- }
- HRESULT STDMETHODCALLTYPE DOMMutationEvent::attrName(
- /* [retval][out] */ BSTR* /*result*/)
- {
- return E_NOTIMPL;
- }
- HRESULT STDMETHODCALLTYPE DOMMutationEvent::attrChange(
- /* [retval][out] */ unsigned short* /*result*/)
- {
- return E_NOTIMPL;
- }
- HRESULT STDMETHODCALLTYPE DOMMutationEvent::initMutationEvent(
- /* [in] */ BSTR /*type*/,
- /* [in] */ BOOL /*canBubble*/,
- /* [in] */ BOOL /*cancelable*/,
- /* [in] */ IDOMNode* /*relatedNode*/,
- /* [in] */ BSTR /*prevValue*/,
- /* [in] */ BSTR /*newValue*/,
- /* [in] */ BSTR /*attrName*/,
- /* [in] */ unsigned short /*attrChange*/)
- {
- return E_NOTIMPL;
- }
- // DOMOverflowEvent -----------------------------------------------------------
- HRESULT STDMETHODCALLTYPE DOMOverflowEvent::QueryInterface(REFIID riid, void** ppvObject)
- {
- *ppvObject = 0;
- if (IsEqualGUID(riid, IID_IDOMOverflowEvent))
- *ppvObject = static_cast<IDOMOverflowEvent*>(this);
- else
- return DOMEvent::QueryInterface(riid, ppvObject);
- AddRef();
- return S_OK;
- }
- HRESULT STDMETHODCALLTYPE DOMOverflowEvent::orient(
- /* [retval][out] */ unsigned short* /*result*/)
- {
- return E_NOTIMPL;
- }
- HRESULT STDMETHODCALLTYPE DOMOverflowEvent::horizontalOverflow(
- /* [retval][out] */ BOOL* /*result*/)
- {
- return E_NOTIMPL;
- }
- HRESULT STDMETHODCALLTYPE DOMOverflowEvent::verticalOverflow(
- /* [retval][out] */ BOOL* /*result*/)
- {
- return E_NOTIMPL;
- }
- // DOMWheelEvent --------------------------------------------------------------
- HRESULT STDMETHODCALLTYPE DOMWheelEvent::QueryInterface(REFIID riid, void** ppvObject)
- {
- *ppvObject = 0;
- if (IsEqualGUID(riid, IID_IDOMWheelEvent))
- *ppvObject = static_cast<IDOMWheelEvent*>(this);
- else
- return DOMUIEvent::QueryInterface(riid, ppvObject);
- AddRef();
- return S_OK;
- }
- HRESULT STDMETHODCALLTYPE DOMWheelEvent::screenX(
- /* [retval][out] */ long* /*result*/)
- {
- return E_NOTIMPL;
- }
- HRESULT STDMETHODCALLTYPE DOMWheelEvent::screenY(
- /* [retval][out] */ long* /*result*/)
- {
- return E_NOTIMPL;
- }
- HRESULT STDMETHODCALLTYPE DOMWheelEvent::clientX(
- /* [retval][out] */ long* /*result*/)
- {
- return E_NOTIMPL;
- }
- HRESULT STDMETHODCALLTYPE DOMWheelEvent::clientY(
- /* [retval][out] */ long* /*result*/)
- {
- return E_NOTIMPL;
- }
- HRESULT STDMETHODCALLTYPE DOMWheelEvent::ctrlKey(
- /* [retval][out] */ BOOL* /*result*/)
- {
- return E_NOTIMPL;
- }
- HRESULT STDMETHODCALLTYPE DOMWheelEvent::shiftKey(
- /* [retval][out] */ BOOL* /*result*/)
- {
- return E_NOTIMPL;
- }
- HRESULT STDMETHODCALLTYPE DOMWheelEvent::altKey(
- /* [retval][out] */ BOOL* /*result*/)
- {
- return E_NOTIMPL;
- }
- HRESULT STDMETHODCALLTYPE DOMWheelEvent::metaKey(
- /* [retval][out] */ BOOL* /*result*/)
- {
- return E_NOTIMPL;
- }
- HRESULT STDMETHODCALLTYPE DOMWheelEvent::wheelDelta(
- /* [retval][out] */ long* /*result*/)
- {
- return E_NOTIMPL;
- }
- HRESULT STDMETHODCALLTYPE DOMWheelEvent::wheelDeltaX(
- /* [retval][out] */ long* /*result*/)
- {
- return E_NOTIMPL;
- }
- HRESULT STDMETHODCALLTYPE DOMWheelEvent::wheelDeltaY(
- /* [retval][out] */ long* /*result*/)
- {
- return E_NOTIMPL;
- }
- HRESULT STDMETHODCALLTYPE DOMWheelEvent::offsetX(
- /* [retval][out] */ long* /*result*/)
- {
- return E_NOTIMPL;
- }
- HRESULT STDMETHODCALLTYPE DOMWheelEvent::offsetY(
- /* [retval][out] */ long* /*result*/)
- {
- return E_NOTIMPL;
- }
- HRESULT STDMETHODCALLTYPE DOMWheelEvent::x(
- /* [retval][out] */ long* /*result*/)
- {
- return E_NOTIMPL;
- }
- HRESULT STDMETHODCALLTYPE DOMWheelEvent::y(
- /* [retval][out] */ long* /*result*/)
- {
- return E_NOTIMPL;
- }
- HRESULT STDMETHODCALLTYPE DOMWheelEvent::isHorizontal(
- /* [retval][out] */ BOOL* /*result*/)
- {
- return E_NOTIMPL;
- }
- HRESULT STDMETHODCALLTYPE DOMWheelEvent::initWheelEvent(
- /* [in] */ long /*wheelDeltaX*/,
- /* [in] */ long /*wheelDeltaY*/,
- /* [in] */ IDOMWindow* /*view*/,
- /* [in] */ long /*screenX*/,
- /* [in] */ long /*screenY*/,
- /* [in] */ long /*clientX*/,
- /* [in] */ long /*clientY*/,
- /* [in] */ BOOL /*ctrlKey*/,
- /* [in] */ BOOL /*altKey*/,
- /* [in] */ BOOL /*shiftKey*/,
- /* [in] */ BOOL /*metaKey*/)
- {
- return E_NOTIMPL;
- }
|