summaryrefslogtreecommitdiff
path: root/Source/WebCore/dom/EventQueue.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/dom/EventQueue.h')
-rw-r--r--Source/WebCore/dom/EventQueue.h13
1 files changed, 5 insertions, 8 deletions
diff --git a/Source/WebCore/dom/EventQueue.h b/Source/WebCore/dom/EventQueue.h
index 2906f80e9..1ba06c52c 100644
--- a/Source/WebCore/dom/EventQueue.h
+++ b/Source/WebCore/dom/EventQueue.h
@@ -10,10 +10,10 @@
* 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
+ * THIS SOFTWARE IS PROVIDED BY APPLE 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
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE 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
@@ -24,8 +24,7 @@
*
*/
-#ifndef EventQueue_h
-#define EventQueue_h
+#pragma once
#include <wtf/Forward.h>
@@ -36,11 +35,9 @@ class Event;
class EventQueue {
public:
virtual ~EventQueue() { }
- virtual bool enqueueEvent(PassRefPtr<Event>) = 0;
+ virtual bool enqueueEvent(Ref<Event>&&) = 0;
virtual bool cancelEvent(Event&) = 0;
virtual void close() = 0; // Discard accumulated events and all future events. No events will be dispatched after this.
};
-}
-
-#endif // EventQueue_h
+} // namespace WebCore