summaryrefslogtreecommitdiffstats
path: root/WebCore/dom/UIEvent.h
diff options
context:
space:
mode:
authorThe Android Open Source Project <initial-contribution@android.com>2008-12-17 18:05:15 -0800
committerThe Android Open Source Project <initial-contribution@android.com>2008-12-17 18:05:15 -0800
commit1cbdecfa9fc428ac2d8aca0fa91c9580b3d57353 (patch)
tree4457a7306ea5acb43fe05bfe0973b1f7faf97ba2 /WebCore/dom/UIEvent.h
parent9364f22aed35e1a1e9d07c121510f80be3ab0502 (diff)
downloadexternal_webkit-1cbdecfa9fc428ac2d8aca0fa91c9580b3d57353.zip
external_webkit-1cbdecfa9fc428ac2d8aca0fa91c9580b3d57353.tar.gz
external_webkit-1cbdecfa9fc428ac2d8aca0fa91c9580b3d57353.tar.bz2
Code drop from //branches/cupcake/...@124589
Diffstat (limited to 'WebCore/dom/UIEvent.h')
-rw-r--r--WebCore/dom/UIEvent.h23
1 files changed, 15 insertions, 8 deletions
diff --git a/WebCore/dom/UIEvent.h b/WebCore/dom/UIEvent.h
index 9c5e0cd..8e330a5 100644
--- a/WebCore/dom/UIEvent.h
+++ b/WebCore/dom/UIEvent.h
@@ -1,10 +1,8 @@
/*
- * This file is part of the DOM implementation for KDE.
- *
* Copyright (C) 2001 Peter Kelly (pmk@post.com)
* Copyright (C) 2001 Tobias Anton (anton@stud.fbi.fh-darmstadt.de)
* Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com)
- * Copyright (C) 2003, 2004, 2005, 2006 Apple Computer, Inc.
+ * Copyright (C) 2003, 2004, 2005, 2006, 2008 Apple Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
@@ -26,21 +24,26 @@
#ifndef UIEvent_h
#define UIEvent_h
+#include "DOMWindow.h"
#include "Event.h"
namespace WebCore {
- class DOMWindow;
-
typedef DOMWindow AbstractView;
class UIEvent : public Event {
public:
- UIEvent();
- UIEvent(const AtomicString& type, bool canBubble, bool cancelable, AbstractView* view, int detail);
+ static PassRefPtr<UIEvent> create()
+ {
+ return adoptRef(new UIEvent);
+ }
+ static PassRefPtr<UIEvent> create(const AtomicString& type, bool canBubble, bool cancelable, PassRefPtr<AbstractView> view, int detail)
+ {
+ return adoptRef(new UIEvent(type, canBubble, cancelable, view, detail));
+ }
virtual ~UIEvent();
- void initUIEvent(const AtomicString& type, bool canBubble, bool cancelable, AbstractView* view, int detail);
+ void initUIEvent(const AtomicString& type, bool canBubble, bool cancelable, PassRefPtr<AbstractView>, int detail);
AbstractView* view() const { return m_view.get(); }
int detail() const { return m_detail; }
@@ -58,6 +61,10 @@ namespace WebCore {
virtual int which() const;
+ protected:
+ UIEvent();
+ UIEvent(const AtomicString& type, bool canBubble, bool cancelable, PassRefPtr<AbstractView>, int detail);
+
private:
RefPtr<AbstractView> m_view;
int m_detail;