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

Side by Side Diff: Source/core/events/FocusEvent.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/EventTarget.h ('k') | Source/core/events/GenericEventQueue.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) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 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 21 matching lines...) Expand all
32 namespace blink { 32 namespace blink {
33 33
34 class Node; 34 class Node;
35 35
36 struct FocusEventInit : public UIEventInit { 36 struct FocusEventInit : public UIEventInit {
37 FocusEventInit(); 37 FocusEventInit();
38 38
39 RefPtrWillBeMember<EventTarget> relatedTarget; 39 RefPtrWillBeMember<EventTarget> relatedTarget;
40 }; 40 };
41 41
42 class FocusEvent FINAL : public UIEvent { 42 class FocusEvent final : public UIEvent {
43 DEFINE_WRAPPERTYPEINFO(); 43 DEFINE_WRAPPERTYPEINFO();
44 public: 44 public:
45 static PassRefPtrWillBeRawPtr<FocusEvent> create() 45 static PassRefPtrWillBeRawPtr<FocusEvent> create()
46 { 46 {
47 return adoptRefWillBeNoop(new FocusEvent); 47 return adoptRefWillBeNoop(new FocusEvent);
48 } 48 }
49 49
50 static PassRefPtrWillBeRawPtr<FocusEvent> create(const AtomicString& type, b ool canBubble, bool cancelable, PassRefPtrWillBeRawPtr<AbstractView> view, int d etail, EventTarget* relatedTarget) 50 static PassRefPtrWillBeRawPtr<FocusEvent> create(const AtomicString& type, b ool canBubble, bool cancelable, PassRefPtrWillBeRawPtr<AbstractView> view, int d etail, EventTarget* relatedTarget)
51 { 51 {
52 return adoptRefWillBeNoop(new FocusEvent(type, canBubble, cancelable, vi ew, detail, relatedTarget)); 52 return adoptRefWillBeNoop(new FocusEvent(type, canBubble, cancelable, vi ew, detail, relatedTarget));
53 } 53 }
54 54
55 static PassRefPtrWillBeRawPtr<FocusEvent> create(const AtomicString& type, c onst FocusEventInit& initializer) 55 static PassRefPtrWillBeRawPtr<FocusEvent> create(const AtomicString& type, c onst FocusEventInit& initializer)
56 { 56 {
57 return adoptRefWillBeNoop(new FocusEvent(type, initializer)); 57 return adoptRefWillBeNoop(new FocusEvent(type, initializer));
58 } 58 }
59 59
60 EventTarget* relatedTarget() const { return m_relatedTarget.get(); } 60 EventTarget* relatedTarget() const { return m_relatedTarget.get(); }
61 void setRelatedTarget(EventTarget* relatedTarget) { m_relatedTarget = relate dTarget; } 61 void setRelatedTarget(EventTarget* relatedTarget) { m_relatedTarget = relate dTarget; }
62 62
63 virtual const AtomicString& interfaceName() const OVERRIDE; 63 virtual const AtomicString& interfaceName() const override;
64 virtual bool isFocusEvent() const OVERRIDE; 64 virtual bool isFocusEvent() const override;
65 65
66 virtual void trace(Visitor*) OVERRIDE; 66 virtual void trace(Visitor*) override;
67 67
68 private: 68 private:
69 FocusEvent(); 69 FocusEvent();
70 FocusEvent(const AtomicString& type, bool canBubble, bool cancelable, PassRe fPtrWillBeRawPtr<AbstractView>, int, EventTarget*); 70 FocusEvent(const AtomicString& type, bool canBubble, bool cancelable, PassRe fPtrWillBeRawPtr<AbstractView>, int, EventTarget*);
71 FocusEvent(const AtomicString& type, const FocusEventInit&); 71 FocusEvent(const AtomicString& type, const FocusEventInit&);
72 72
73 RefPtrWillBeMember<EventTarget> m_relatedTarget; 73 RefPtrWillBeMember<EventTarget> m_relatedTarget;
74 }; 74 };
75 75
76 DEFINE_EVENT_TYPE_CASTS(FocusEvent); 76 DEFINE_EVENT_TYPE_CASTS(FocusEvent);
77 77
78 class FocusEventDispatchMediator FINAL : public EventDispatchMediator { 78 class FocusEventDispatchMediator final : public EventDispatchMediator {
79 public: 79 public:
80 static PassRefPtrWillBeRawPtr<FocusEventDispatchMediator> create(PassRefPtrW illBeRawPtr<FocusEvent>); 80 static PassRefPtrWillBeRawPtr<FocusEventDispatchMediator> create(PassRefPtrW illBeRawPtr<FocusEvent>);
81 private: 81 private:
82 explicit FocusEventDispatchMediator(PassRefPtrWillBeRawPtr<FocusEvent>); 82 explicit FocusEventDispatchMediator(PassRefPtrWillBeRawPtr<FocusEvent>);
83 FocusEvent* event() const { return static_cast<FocusEvent*>(EventDispatchMed iator::event()); } 83 FocusEvent* event() const { return static_cast<FocusEvent*>(EventDispatchMed iator::event()); }
84 virtual bool dispatchEvent(EventDispatcher*) const OVERRIDE; 84 virtual bool dispatchEvent(EventDispatcher*) const override;
85 }; 85 };
86 86
87 class BlurEventDispatchMediator FINAL : public EventDispatchMediator { 87 class BlurEventDispatchMediator final : public EventDispatchMediator {
88 public: 88 public:
89 static PassRefPtrWillBeRawPtr<BlurEventDispatchMediator> create(PassRefPtrWi llBeRawPtr<FocusEvent>); 89 static PassRefPtrWillBeRawPtr<BlurEventDispatchMediator> create(PassRefPtrWi llBeRawPtr<FocusEvent>);
90 private: 90 private:
91 explicit BlurEventDispatchMediator(PassRefPtrWillBeRawPtr<FocusEvent>); 91 explicit BlurEventDispatchMediator(PassRefPtrWillBeRawPtr<FocusEvent>);
92 FocusEvent* event() const { return static_cast<FocusEvent*>(EventDispatchMed iator::event()); } 92 FocusEvent* event() const { return static_cast<FocusEvent*>(EventDispatchMed iator::event()); }
93 virtual bool dispatchEvent(EventDispatcher*) const OVERRIDE; 93 virtual bool dispatchEvent(EventDispatcher*) const override;
94 }; 94 };
95 95
96 class FocusInEventDispatchMediator FINAL : public EventDispatchMediator { 96 class FocusInEventDispatchMediator final : public EventDispatchMediator {
97 public: 97 public:
98 static PassRefPtrWillBeRawPtr<FocusInEventDispatchMediator> create(PassRefPt rWillBeRawPtr<FocusEvent>); 98 static PassRefPtrWillBeRawPtr<FocusInEventDispatchMediator> create(PassRefPt rWillBeRawPtr<FocusEvent>);
99 private: 99 private:
100 explicit FocusInEventDispatchMediator(PassRefPtrWillBeRawPtr<FocusEvent>); 100 explicit FocusInEventDispatchMediator(PassRefPtrWillBeRawPtr<FocusEvent>);
101 FocusEvent* event() const { return static_cast<FocusEvent*>(EventDispatchMed iator::event()); } 101 FocusEvent* event() const { return static_cast<FocusEvent*>(EventDispatchMed iator::event()); }
102 virtual bool dispatchEvent(EventDispatcher*) const OVERRIDE; 102 virtual bool dispatchEvent(EventDispatcher*) const override;
103 }; 103 };
104 104
105 class FocusOutEventDispatchMediator FINAL : public EventDispatchMediator { 105 class FocusOutEventDispatchMediator final : public EventDispatchMediator {
106 public: 106 public:
107 static PassRefPtrWillBeRawPtr<FocusOutEventDispatchMediator> create(PassRefP trWillBeRawPtr<FocusEvent>); 107 static PassRefPtrWillBeRawPtr<FocusOutEventDispatchMediator> create(PassRefP trWillBeRawPtr<FocusEvent>);
108 private: 108 private:
109 explicit FocusOutEventDispatchMediator(PassRefPtrWillBeRawPtr<FocusEvent>); 109 explicit FocusOutEventDispatchMediator(PassRefPtrWillBeRawPtr<FocusEvent>);
110 FocusEvent* event() const { return static_cast<FocusEvent*>(EventDispatchMed iator::event()); } 110 FocusEvent* event() const { return static_cast<FocusEvent*>(EventDispatchMed iator::event()); }
111 virtual bool dispatchEvent(EventDispatcher*) const OVERRIDE; 111 virtual bool dispatchEvent(EventDispatcher*) const override;
112 }; 112 };
113 113
114 } // namespace blink 114 } // namespace blink
115 115
116 #endif // FocusEvent_h 116 #endif // FocusEvent_h
OLDNEW
« no previous file with comments | « Source/core/events/EventTarget.h ('k') | Source/core/events/GenericEventQueue.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698