summaryrefslogtreecommitdiff
path: root/Source/WebCore/dom/UIEvent.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/dom/UIEvent.cpp')
-rw-r--r--Source/WebCore/dom/UIEvent.cpp37
1 files changed, 6 insertions, 31 deletions
diff --git a/Source/WebCore/dom/UIEvent.cpp b/Source/WebCore/dom/UIEvent.cpp
index 1ded07933..4cb2239ec 100644
--- a/Source/WebCore/dom/UIEvent.cpp
+++ b/Source/WebCore/dom/UIEvent.cpp
@@ -23,47 +23,32 @@
#include "config.h"
#include "UIEvent.h"
-#include "Console.h"
#include "Node.h"
namespace WebCore {
-
-UIEventInit::UIEventInit()
- : view(0)
- , detail(0)
-{
-}
-
-UIEventInit::UIEventInit(bool bubbles, bool cancelable)
- : EventInit(bubbles, cancelable)
- , view(0)
- , detail(0)
-{
-}
-
UIEvent::UIEvent()
: m_detail(0)
{
}
-UIEvent::UIEvent(const AtomicString& eventType, bool canBubbleArg, bool cancelableArg, PassRefPtr<AbstractView> viewArg, int detailArg)
+UIEvent::UIEvent(const AtomicString& eventType, bool canBubbleArg, bool cancelableArg, DOMWindow* viewArg, int detailArg)
: Event(eventType, canBubbleArg, cancelableArg)
, m_view(viewArg)
, m_detail(detailArg)
{
}
-UIEvent::UIEvent(const AtomicString& eventType, bool canBubbleArg, bool cancelableArg, double timestamp, PassRefPtr<AbstractView> viewArg, int detailArg)
+UIEvent::UIEvent(const AtomicString& eventType, bool canBubbleArg, bool cancelableArg, double timestamp, DOMWindow* viewArg, int detailArg)
: Event(eventType, canBubbleArg, cancelableArg, timestamp)
, m_view(viewArg)
, m_detail(detailArg)
{
}
-UIEvent::UIEvent(const AtomicString& eventType, const UIEventInit& initializer)
- : Event(eventType, initializer)
- , m_view(initializer.view)
+UIEvent::UIEvent(const AtomicString& eventType, const UIEventInit& initializer, IsTrusted isTrusted)
+ : Event(eventType, initializer, isTrusted)
+ , m_view(initializer.view.get())
, m_detail(initializer.detail)
{
}
@@ -72,7 +57,7 @@ UIEvent::~UIEvent()
{
}
-void UIEvent::initUIEvent(const AtomicString& typeArg, bool canBubbleArg, bool cancelableArg, PassRefPtr<AbstractView> viewArg, int detailArg)
+void UIEvent::initUIEvent(const AtomicString& typeArg, bool canBubbleArg, bool cancelableArg, DOMWindow* viewArg, int detailArg)
{
if (dispatched())
return;
@@ -93,16 +78,6 @@ EventInterface UIEvent::eventInterface() const
return UIEventInterfaceType;
}
-int UIEvent::keyCode() const
-{
- return 0;
-}
-
-int UIEvent::charCode() const
-{
- return 0;
-}
-
int UIEvent::layerX()
{
return 0;