Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(155)

Side by Side Diff: Source/core/events/DOMWindowEventQueue.h

Issue 133133006: Update Event classes to use OVERRIDE / FINAL when needed (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Source/core/events/CustomEvent.h ('k') | Source/core/events/ErrorEvent.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010 Google Inc. All Rights Reserved. 2 * Copyright (C) 2010 Google Inc. All Rights Reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 23 matching lines...) Expand all
34 #include "wtf/OwnPtr.h" 34 #include "wtf/OwnPtr.h"
35 #include "wtf/RefCounted.h" 35 #include "wtf/RefCounted.h"
36 36
37 namespace WebCore { 37 namespace WebCore {
38 38
39 class Event; 39 class Event;
40 class DOMWindowEventQueueTimer; 40 class DOMWindowEventQueueTimer;
41 class Node; 41 class Node;
42 class ExecutionContext; 42 class ExecutionContext;
43 43
44 class DOMWindowEventQueue : public RefCounted<DOMWindowEventQueue>, public Event Queue { 44 class DOMWindowEventQueue FINAL : public RefCounted<DOMWindowEventQueue>, public EventQueue {
45 public: 45 public:
46 static PassRefPtr<DOMWindowEventQueue> create(ExecutionContext*); 46 static PassRefPtr<DOMWindowEventQueue> create(ExecutionContext*);
47 virtual ~DOMWindowEventQueue(); 47 virtual ~DOMWindowEventQueue();
48 48
49 // EventQueue 49 // EventQueue
50 virtual bool enqueueEvent(PassRefPtr<Event>) OVERRIDE; 50 virtual bool enqueueEvent(PassRefPtr<Event>) OVERRIDE;
51 virtual bool cancelEvent(Event*) OVERRIDE; 51 virtual bool cancelEvent(Event*) OVERRIDE;
52 virtual void close() OVERRIDE; 52 virtual void close() OVERRIDE;
53 53
54 private: 54 private:
55 explicit DOMWindowEventQueue(ExecutionContext*); 55 explicit DOMWindowEventQueue(ExecutionContext*);
56 56
57 void pendingEventTimerFired(); 57 void pendingEventTimerFired();
58 void dispatchEvent(PassRefPtr<Event>); 58 void dispatchEvent(PassRefPtr<Event>);
59 59
60 OwnPtr<DOMWindowEventQueueTimer> m_pendingEventTimer; 60 OwnPtr<DOMWindowEventQueueTimer> m_pendingEventTimer;
61 ListHashSet<RefPtr<Event>, 16> m_queuedEvents; 61 ListHashSet<RefPtr<Event>, 16> m_queuedEvents;
62 bool m_isClosed; 62 bool m_isClosed;
63 63
64 friend class DOMWindowEventQueueTimer; 64 friend class DOMWindowEventQueueTimer;
65 }; 65 };
66 66
67 } 67 }
68 68
69 #endif // DOMWindowEventQueue_h 69 #endif // DOMWindowEventQueue_h
OLDNEW
« no previous file with comments | « Source/core/events/CustomEvent.h ('k') | Source/core/events/ErrorEvent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698