Commit 6bb99cd8 authored by eric@webkit.org's avatar eric@webkit.org

2010-01-27 Jay Campan <jcampan@google.com>

        Reviewed by Darin Fisher.

        Adding EventListeners to the chromium API.

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

        * WebKit.gyp:
        * public/WebEvent.h: Added.
        * public/WebEventListener.h: Added.
        * public/WebMutationEvent.h: Added.
        * public/WebNode.h:
        * public/WebString.h:
        (WebKit::operator==):
        (WebKit::operator!=):
        * src/EventListenerWrapper.cpp: Added.
        * src/EventListenerWrapper.h: Added.
        * src/WebEvent.cpp: Added.
        * src/WebEventListener.cpp: Added.
        * src/WebEventListenerPrivate.cpp: Added.
        * src/WebEventListenerPrivate.h: Added.
        * src/WebNode.cpp:
        (WebKit::WebNode::addEventListener):
        (WebKit::WebNode::removeEventListener):
        * src/WebString.cpp:
        (WebKit::WebString::equals):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@53934 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent df2257c2
2010-01-27 Jay Campan <jcampan@google.com>
Reviewed by Darin Fisher.
Adding EventListeners to the chromium API.
https://bugs.webkit.org/show_bug.cgi?id=33882
* WebKit.gyp:
* public/WebEvent.h: Added.
* public/WebEventListener.h: Added.
* public/WebMutationEvent.h: Added.
* public/WebNode.h:
* public/WebString.h:
(WebKit::operator==):
(WebKit::operator!=):
* src/EventListenerWrapper.cpp: Added.
* src/EventListenerWrapper.h: Added.
* src/WebEvent.cpp: Added.
* src/WebEventListener.cpp: Added.
* src/WebEventListenerPrivate.cpp: Added.
* src/WebEventListenerPrivate.h: Added.
* src/WebNode.cpp:
(WebKit::WebNode::addEventListener):
(WebKit::WebNode::removeEventListener):
* src/WebString.cpp:
(WebKit::WebString::equals):
2010-01-26 Yaar Schnitman <yaar@chromium.org>
Reviewed by Darin Fisher.
......
......@@ -107,6 +107,8 @@
'public/WebDragData.h',
'public/WebEditingAction.h',
'public/WebElement.h',
'public/WebEvent.h',
'public/WebEventListener.h',
'public/WebFileChooserCompletion.h',
'public/WebFileChooserParams.h',
'public/WebFindOptions.h',
......@@ -130,6 +132,7 @@
'public/WebMessagePortChannel.h',
'public/WebMessagePortChannelClient.h',
'public/WebMimeRegistry.h',
'public/WebMutationEvent.h',
'public/WebNavigationType.h',
'public/WebNode.h',
'public/WebNodeCollection.h',
......@@ -210,6 +213,8 @@
'src/DragClientImpl.h',
'src/EditorClientImpl.cpp',
'src/EditorClientImpl.h',
'src/EventListenerWrapper.cpp',
'src/EventListenerWrapper.h',
'src/FrameLoaderClientImpl.cpp',
'src/FrameLoaderClientImpl.h',
'src/gtk/WebFontInfo.cpp',
......@@ -259,6 +264,10 @@
'src/WebElement.cpp',
'src/WebEntities.cpp',
'src/WebEntities.h',
'src/WebEvent.cpp',
'src/WebEventListener.cpp',
'src/WebEventListenerPrivate.cpp',
'src/WebEventListenerPrivate.h',
'src/WebFileChooserCompletionImpl.cpp',
'src/WebFileChooserCompletionImpl.h',
'src/WebFontCache.cpp',
......@@ -277,6 +286,7 @@
'src/WebKit.cpp',
'src/WebMediaPlayerClientImpl.cpp',
'src/WebMediaPlayerClientImpl.h',
'src/WebMutationEvent.cpp',
'src/WebNode.cpp',
'src/WebNodeCollection.cpp',
'src/WebNodeList.cpp',
......
/*
* Copyright (C) 2010 Google 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:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* * 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.
* * Neither the name of Google Inc. nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "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 THE COPYRIGHT
* OWNER 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.
*/
#ifndef WebEvent_h
#define WebEvent_h
#include "WebCommon.h"
#include "WebNode.h"
#include "WebString.h"
namespace WebCore { class Event; }
#if WEBKIT_IMPLEMENTATION
namespace WTF { template <typename T> class PassRefPtr; }
#endif
namespace WebKit {
class WebEvent {
public:
enum PhaseType {
CapturingPhase = 1,
AtTarget = 2,
BubblingPhase = 3
};
WebEvent() : m_private(0) { }
WebEvent(const WebEvent& e) : m_private(0) { assign(e); }
WebEvent& operator=(const WebEvent& e)
{
assign(e);
return *this;
}
WEBKIT_API void reset();
WEBKIT_API void assign(const WebEvent&);
bool isNull() const { return !m_private; }
WEBKIT_API WebString type() const;
WEBKIT_API WebNode target() const;
WEBKIT_API WebNode currentTarget() const;
WEBKIT_API PhaseType eventPhase() const;
WEBKIT_API bool bubbles() const;
WEBKIT_API bool cancelable() const;
WEBKIT_API bool isUIEvent() const;
WEBKIT_API bool isMouseEvent() const;
WEBKIT_API bool isMutationEvent() const;
WEBKIT_API bool isKeyboardEvent() const;
WEBKIT_API bool isTextEvent() const;
WEBKIT_API bool isCompositionEvent() const;
WEBKIT_API bool isDragEvent() const;
WEBKIT_API bool isClipboardEvent() const;
WEBKIT_API bool isMessageEvent() const;
WEBKIT_API bool isWheelEvent() const;
WEBKIT_API bool isBeforeTextInsertedEvent() const;
WEBKIT_API bool isOverflowEvent() const;
WEBKIT_API bool isPageTransitionEvent() const;
WEBKIT_API bool isPopStateEvent() const;
WEBKIT_API bool isProgressEvent() const;
WEBKIT_API bool isXMLHttpRequestProgressEvent() const;
WEBKIT_API bool isWebKitAnimationEvent() const;
WEBKIT_API bool isWebKitTransitionEvent() const;
WEBKIT_API bool isBeforeLoadEvent() const;
#if WEBKIT_IMPLEMENTATION
WebEvent(const WTF::PassRefPtr<WebCore::Event>&);
#endif
protected:
typedef WebCore::Event WebEventPrivate;
void assign(WebEventPrivate*);
WebEventPrivate* m_private;
template<typename T> T* unwrap()
{
return static_cast<T*>(m_private);
}
template<typename T> const T* constUnwrap() const
{
return static_cast<const T*>(m_private);
}
};
} // namespace WebKit
#endif
/*
* Copyright (C) 2010 Google 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:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* * 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.
* * Neither the name of Google Inc. nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "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 THE COPYRIGHT
* OWNER 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.
*/
#ifndef WebEventListener_h
#define WebEventListener_h
#if WEBKIT_IMPLEMENTATION
namespace WebCore { class Node; }
#endif
namespace WebKit {
class EventListenerWrapper;
class WebEvent;
class WebEventListenerPrivate;
class WebNode;
class WebString;
class WebEventListener {
public:
WebEventListener();
virtual ~WebEventListener();
// Called when an event is received.
virtual void handleEvent(const WebEvent&) = 0;
#if WEBKIT_IMPLEMENTATION
void notifyEventListenerDeleted(EventListenerWrapper*);
EventListenerWrapper* createEventListenerWrapper(const WebString& eventType, bool useCapture, WebCore::Node* node);
EventListenerWrapper* getEventListenerWrapper(const WebString& eventType, bool useCapture, WebCore::Node* node);
#endif
private:
WebEventListenerPrivate* m_private;
};
} // namespace WebKit
#endif
/*
* Copyright (C) 2010 Google 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:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* * 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.
* * Neither the name of Google Inc. nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "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 THE COPYRIGHT
* OWNER 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.
*/
#ifndef WebMutationEvent_h
#define WebMutationEvent_h
#include "WebEvent.h"
#if WEBKIT_IMPLEMENTATION
namespace WebCore { class Event; }
#endif
namespace WebKit {
class WebMutationEvent : public WebEvent {
public:
enum AttrChangeType {
Modification = 1,
Addition = 2,
Removal = 3
};
WEBKIT_API WebNode relatedNode() const;
WEBKIT_API WebString prevValue() const;
WEBKIT_API WebString newValue() const;
WEBKIT_API WebString attrName() const;
WEBKIT_API AttrChangeType attrChange() const;
#if WEBKIT_IMPLEMENTATION
WebMutationEvent(const WTF::PassRefPtr<WebCore::Event>&);
#endif
};
} // namespace WebKit
#endif
......@@ -41,6 +41,8 @@ namespace WTF { template <typename T> class PassRefPtr; }
namespace WebKit {
class WebDocument;
class WebEventListener;
class WebEventListenerPrivate;
class WebFrame;
class WebNodeList;
......@@ -100,6 +102,8 @@ public:
WEBKIT_API WebString createMarkup() const;
WEBKIT_API bool isTextNode() const;
WEBKIT_API bool isElementNode() const;
WEBKIT_API void addEventListener(const WebString& eventType, WebEventListener* listener, bool useCapture);
WEBKIT_API void removeEventListener(const WebString& eventType, WebEventListener* listener, bool useCapture);
template<typename T> T toElement()
{
......
......@@ -76,6 +76,8 @@ public:
WEBKIT_API void assign(const WebString&);
WEBKIT_API void assign(const WebUChar* data, size_t len);
WEBKIT_API bool equals(const WebString& s) const;
WEBKIT_API size_t length() const;
WEBKIT_API const WebUChar* data() const;
......@@ -163,6 +165,16 @@ private:
WebStringPrivate* m_private;
};
inline bool operator==(const WebString& a, const WebString& b)
{
return a.equals(b);
}
inline bool operator!=(const WebString& a, const WebString& b)
{
return !(a == b);
}
} // namespace WebKit
#endif
/*
* Copyright (C) 2010 Google 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:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* * 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.
* * Neither the name of Google Inc. nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "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 THE COPYRIGHT
* OWNER 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 "EventListenerWrapper.h"
#include "Event.h"
#include "EventListener.h"
#include "WebEvent.h"
#include "WebEventListener.h"
namespace WebKit {
EventListenerWrapper::EventListenerWrapper(WebEventListener* webEventListener)
: EventListener(EventListener::JSEventListenerType)
, m_webEventListener(webEventListener)
{
}
EventListenerWrapper::~EventListenerWrapper()
{
if (m_webEventListener)
m_webEventListener->notifyEventListenerDeleted(this);
}
bool EventListenerWrapper::operator==(const EventListener& listener)
{
return this == &listener;
}
void EventListenerWrapper::handleEvent(ScriptExecutionContext* context, Event* event)
{
if (!m_webEventListener)
return;
WebEvent webEvent(event);
m_webEventListener->handleEvent(webEvent);
}
void EventListenerWrapper::webEventListenerDeleted()
{
m_webEventListener = 0;
}
} // namespace WebKit
/*
* Copyright (C) 2010 Google 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:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* * 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.
* * Neither the name of Google Inc. nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "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 THE COPYRIGHT
* OWNER 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.
*/
#ifndef EventListenerWrapper_h
#define EventListenerWrapper_h
#include "EventListener.h"
namespace WebCore {
class ScriptExecutionContext;
}
using namespace WebCore;
namespace WebKit {
class WebEventListener;
class EventListenerWrapper : public EventListener {
public:
EventListenerWrapper(WebEventListener*);
~EventListenerWrapper();
virtual bool operator==(const EventListener&);
virtual void handleEvent(ScriptExecutionContext*, Event*);
void webEventListenerDeleted();
private:
WebEventListener* m_webEventListener;
};
} // namespace WebKit
#endif
/*
* Copyright (C) 2010 Google 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:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* * 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.
* * Neither the name of Google Inc. nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "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 THE COPYRIGHT
* OWNER 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 "WebEvent.h"
#include "Event.h"
#include "Node.h"
#include "WebMutationEvent.h"
#include <wtf/PassRefPtr.h>
namespace WebKit {
class WebEventPrivate : public WebCore::Event {
};
void WebEvent::reset()
{
assign(0);
}
void WebEvent::assign(const WebEvent& other)
{
WebEventPrivate* p = const_cast<WebEventPrivate*>(other.m_private);
if (p)
p->ref();
assign(p);
}
void WebEvent::assign(WebEventPrivate* p)
{
// p is already ref'd for us by the caller
if (m_private)
m_private->deref();
m_private = p;
}
WebEvent::WebEvent(const WTF::PassRefPtr<WebCore::Event>& event)
: m_private(static_cast<WebEventPrivate*>(event.releaseRef()))
{
}
WebString WebEvent::type() const
{
ASSERT(m_private);
return m_private->type();
}
WebNode WebEvent::target() const
{
ASSERT(m_private);
return WebNode(m_private->target()->toNode());
}
WebNode WebEvent::currentTarget() const
{
ASSERT(m_private);
return WebNode(m_private->currentTarget()->toNode());
}
WebEvent::PhaseType WebEvent::eventPhase() const
{
ASSERT(m_private);
return static_cast<WebEvent::PhaseType>(m_private->eventPhase());
}
bool WebEvent::bubbles() const
{
ASSERT(m_private);
return m_private->bubbles();
}
bool WebEvent::cancelable() const
{
ASSERT(m_private);
return m_private->cancelable();
}
bool WebEvent::isUIEvent() const
{
ASSERT(m_private);
return m_private->isUIEvent();
}
bool WebEvent::isMouseEvent() const
{
ASSERT(m_private);
return m_private->isMouseEvent();
}
bool WebEvent::isMutationEvent() const
{
ASSERT(m_private);
return m_private->isMutationEvent();
}
bool WebEvent::isKeyboardEvent() const
{
ASSERT(m_private);
return m_private->isKeyboardEvent();
}
bool WebEvent::isTextEvent() const
{
ASSERT(m_private);
return m_private->isTextEvent();
}
bool WebEvent::isCompositionEvent() const
{
ASSERT(m_private);
return m_private->isCompositionEvent();
}
bool WebEvent::isDragEvent() const
{
ASSERT(m_private);
return m_private->isDragEvent();
}
bool WebEvent::isClipboardEvent() const
{
ASSERT(m_private);
return m_private->isClipboardEvent();
}
bool WebEvent::isMessageEvent() const
{
ASSERT(m_private);
return m_private->isMessageEvent();
}
bool WebEvent::isWheelEvent() const
{
ASSERT(m_private);
return m_private->isWheelEvent();
}
bool WebEvent::isBeforeTextInsertedEvent() const
{
ASSERT(m_private);
return m_private->isBeforeTextInsertedEvent();
}
bool WebEvent::isOverflowEvent() const
{
ASSERT(m_private);
return m_private->isOverflowEvent();
}
bool WebEvent::isPageTransitionEvent() const
{
ASSERT(m_private);
return m_private->isPageTransitionEvent();
}
bool WebEvent::isPopStateEvent() const
{
ASSERT(m_private);
return