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

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

Issue 636833002: Replace FINAL and OVERRIDE with their C++11 counterparts in Source/core/events (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 2 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/ProgressEvent.h ('k') | Source/core/events/ResourceProgressEvent.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 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef RelatedEvent_h 5 #ifndef RelatedEvent_h
6 #define RelatedEvent_h 6 #define RelatedEvent_h
7 7
8 #include "core/events/Event.h" 8 #include "core/events/Event.h"
9 9
10 namespace blink { 10 namespace blink {
11 11
12 struct RelatedEventInit : public EventInit { 12 struct RelatedEventInit : public EventInit {
13 RelatedEventInit(); 13 RelatedEventInit();
14 RefPtrWillBeMember<EventTarget> relatedTarget; 14 RefPtrWillBeMember<EventTarget> relatedTarget;
15 }; 15 };
16 16
17 class RelatedEvent FINAL : public Event { 17 class RelatedEvent final : public Event {
18 DEFINE_WRAPPERTYPEINFO(); 18 DEFINE_WRAPPERTYPEINFO();
19 public: 19 public:
20 static PassRefPtrWillBeRawPtr<RelatedEvent> create(); 20 static PassRefPtrWillBeRawPtr<RelatedEvent> create();
21 static PassRefPtrWillBeRawPtr<RelatedEvent> create(const AtomicString& type, bool canBubble, bool cancelable, EventTarget* relatedTarget); 21 static PassRefPtrWillBeRawPtr<RelatedEvent> create(const AtomicString& type, bool canBubble, bool cancelable, EventTarget* relatedTarget);
22 static PassRefPtrWillBeRawPtr<RelatedEvent> create(const AtomicString& event Type, const RelatedEventInit&); 22 static PassRefPtrWillBeRawPtr<RelatedEvent> create(const AtomicString& event Type, const RelatedEventInit&);
23 23
24 virtual ~RelatedEvent(); 24 virtual ~RelatedEvent();
25 25
26 EventTarget* relatedTarget() const { return m_relatedTarget.get(); } 26 EventTarget* relatedTarget() const { return m_relatedTarget.get(); }
27 27
28 virtual const AtomicString& interfaceName() const OVERRIDE { return EventNam es::RelatedEvent; } 28 virtual const AtomicString& interfaceName() const override { return EventNam es::RelatedEvent; }
29 virtual bool isRelatedEvent() const OVERRIDE { return true; } 29 virtual bool isRelatedEvent() const override { return true; }
30 30
31 virtual void trace(Visitor*) OVERRIDE; 31 virtual void trace(Visitor*) override;
32 32
33 private: 33 private:
34 RelatedEvent(); 34 RelatedEvent();
35 RelatedEvent(const AtomicString& type, bool canBubble, bool cancelable, Even tTarget*); 35 RelatedEvent(const AtomicString& type, bool canBubble, bool cancelable, Even tTarget*);
36 RelatedEvent(const AtomicString& type, const RelatedEventInit&); 36 RelatedEvent(const AtomicString& type, const RelatedEventInit&);
37 37
38 RefPtrWillBeMember<EventTarget> m_relatedTarget; 38 RefPtrWillBeMember<EventTarget> m_relatedTarget;
39 }; 39 };
40 40
41 DEFINE_EVENT_TYPE_CASTS(RelatedEvent); 41 DEFINE_EVENT_TYPE_CASTS(RelatedEvent);
42 42
43 } // namespace blink 43 } // namespace blink
44 44
45 #endif // RelatedEvent_h 45 #endif // RelatedEvent_h
OLDNEW
« no previous file with comments | « Source/core/events/ProgressEvent.h ('k') | Source/core/events/ResourceProgressEvent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698