diff options
author | The Android Open Source Project <initial-contribution@android.com> | 2008-12-17 18:05:15 -0800 |
---|---|---|
committer | The Android Open Source Project <initial-contribution@android.com> | 2008-12-17 18:05:15 -0800 |
commit | 1cbdecfa9fc428ac2d8aca0fa91c9580b3d57353 (patch) | |
tree | 4457a7306ea5acb43fe05bfe0973b1f7faf97ba2 /WebCore/dom/Event.h | |
parent | 9364f22aed35e1a1e9d07c121510f80be3ab0502 (diff) | |
download | external_webkit-1cbdecfa9fc428ac2d8aca0fa91c9580b3d57353.zip external_webkit-1cbdecfa9fc428ac2d8aca0fa91c9580b3d57353.tar.gz external_webkit-1cbdecfa9fc428ac2d8aca0fa91c9580b3d57353.tar.bz2 |
Code drop from //branches/cupcake/...@124589
Diffstat (limited to 'WebCore/dom/Event.h')
-rw-r--r-- | WebCore/dom/Event.h | 28 |
1 files changed, 21 insertions, 7 deletions
diff --git a/WebCore/dom/Event.h b/WebCore/dom/Event.h index b74bc16..474ec6a 100644 --- a/WebCore/dom/Event.h +++ b/WebCore/dom/Event.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, 2007 Apple Inc. All rights reserved. + * Copyright (C) 2003, 2004, 2005, 2006, 2007, 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 @@ -64,8 +62,14 @@ namespace WebCore { CHANGE = 32768 }; - Event(); - Event(const AtomicString& type, bool canBubble, bool cancelable); + static PassRefPtr<Event> create() + { + return adoptRef(new Event); + } + static PassRefPtr<Event> create(const AtomicString& type, bool canBubble, bool cancelable) + { + return adoptRef(new Event(type, canBubble, cancelable)); + } virtual ~Event(); void initEvent(const AtomicString& type, bool canBubble, bool cancelable); @@ -101,16 +105,23 @@ namespace WebCore { virtual bool isTextEvent() const; virtual bool isDragEvent() const; // a subset of mouse events virtual bool isClipboardEvent() const; -#if ENABLE(CROSS_DOCUMENT_MESSAGING) virtual bool isMessageEvent() const; -#endif virtual bool isWheelEvent() const; virtual bool isBeforeTextInsertedEvent() const; virtual bool isOverflowEvent() const; virtual bool isProgressEvent() const; + virtual bool isXMLHttpRequestProgressEvent() const; + virtual bool isWebKitAnimationEvent() const; + virtual bool isWebKitTransitionEvent() const; #if ENABLE(SVG) virtual bool isSVGZoomEvent() const; #endif +#if ENABLE(DOM_STORAGE) + virtual bool isStorageEvent() const; +#endif +#if ENABLE(TOUCH_EVENTS) // Android + virtual bool isTouchEvent() const; +#endif bool propagationStopped() const { return m_propagationStopped; } @@ -133,6 +144,9 @@ namespace WebCore { virtual Clipboard* clipboard() const { return 0; } protected: + Event(); + Event(const AtomicString& type, bool canBubble, bool cancelable); + virtual void receivedTarget(); bool dispatched() const { return m_target; } |