OLD | NEW |
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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 { | 64 { |
65 ScriptWrappable::init(this); | 65 ScriptWrappable::init(this); |
66 } | 66 } |
67 | 67 |
68 void FocusEvent::trace(Visitor* visitor) | 68 void FocusEvent::trace(Visitor* visitor) |
69 { | 69 { |
70 visitor->trace(m_relatedTarget); | 70 visitor->trace(m_relatedTarget); |
71 UIEvent::trace(visitor); | 71 UIEvent::trace(visitor); |
72 } | 72 } |
73 | 73 |
74 PassRefPtr<FocusEventDispatchMediator> FocusEventDispatchMediator::create(PassRe
fPtrWillBeRawPtr<FocusEvent> focusEvent) | 74 PassRefPtrWillBeRawPtr<FocusEventDispatchMediator> FocusEventDispatchMediator::c
reate(PassRefPtrWillBeRawPtr<FocusEvent> focusEvent) |
75 { | 75 { |
76 return adoptRef(new FocusEventDispatchMediator(focusEvent)); | 76 return adoptRefWillBeNoop(new FocusEventDispatchMediator(focusEvent)); |
77 } | 77 } |
78 | 78 |
79 FocusEventDispatchMediator::FocusEventDispatchMediator(PassRefPtrWillBeRawPtr<Fo
cusEvent> focusEvent) | 79 FocusEventDispatchMediator::FocusEventDispatchMediator(PassRefPtrWillBeRawPtr<Fo
cusEvent> focusEvent) |
80 : EventDispatchMediator(focusEvent) | 80 : EventDispatchMediator(focusEvent) |
81 { | 81 { |
82 } | 82 } |
83 | 83 |
84 bool FocusEventDispatchMediator::dispatchEvent(EventDispatcher* dispatcher) cons
t | 84 bool FocusEventDispatchMediator::dispatchEvent(EventDispatcher* dispatcher) cons
t |
85 { | 85 { |
86 event()->eventPath().adjustForRelatedTarget(dispatcher->node(), event()->rel
atedTarget()); | 86 event()->eventPath().adjustForRelatedTarget(dispatcher->node(), event()->rel
atedTarget()); |
87 return EventDispatchMediator::dispatchEvent(dispatcher); | 87 return EventDispatchMediator::dispatchEvent(dispatcher); |
88 } | 88 } |
89 | 89 |
90 PassRefPtr<BlurEventDispatchMediator> BlurEventDispatchMediator::create(PassRefP
trWillBeRawPtr<FocusEvent> focusEvent) | 90 PassRefPtrWillBeRawPtr<BlurEventDispatchMediator> BlurEventDispatchMediator::cre
ate(PassRefPtrWillBeRawPtr<FocusEvent> focusEvent) |
91 { | 91 { |
92 return adoptRef(new BlurEventDispatchMediator(focusEvent)); | 92 return adoptRefWillBeNoop(new BlurEventDispatchMediator(focusEvent)); |
93 } | 93 } |
94 | 94 |
95 BlurEventDispatchMediator::BlurEventDispatchMediator(PassRefPtrWillBeRawPtr<Focu
sEvent> focusEvent) | 95 BlurEventDispatchMediator::BlurEventDispatchMediator(PassRefPtrWillBeRawPtr<Focu
sEvent> focusEvent) |
96 : EventDispatchMediator(focusEvent) | 96 : EventDispatchMediator(focusEvent) |
97 { | 97 { |
98 } | 98 } |
99 | 99 |
100 bool BlurEventDispatchMediator::dispatchEvent(EventDispatcher* dispatcher) const | 100 bool BlurEventDispatchMediator::dispatchEvent(EventDispatcher* dispatcher) const |
101 { | 101 { |
102 event()->eventPath().adjustForRelatedTarget(dispatcher->node(), event()->rel
atedTarget()); | 102 event()->eventPath().adjustForRelatedTarget(dispatcher->node(), event()->rel
atedTarget()); |
103 return EventDispatchMediator::dispatchEvent(dispatcher); | 103 return EventDispatchMediator::dispatchEvent(dispatcher); |
104 } | 104 } |
105 | 105 |
106 PassRefPtr<FocusInEventDispatchMediator> FocusInEventDispatchMediator::create(Pa
ssRefPtrWillBeRawPtr<FocusEvent> focusEvent) | 106 PassRefPtrWillBeRawPtr<FocusInEventDispatchMediator> FocusInEventDispatchMediato
r::create(PassRefPtrWillBeRawPtr<FocusEvent> focusEvent) |
107 { | 107 { |
108 return adoptRef(new FocusInEventDispatchMediator(focusEvent)); | 108 return adoptRefWillBeNoop(new FocusInEventDispatchMediator(focusEvent)); |
109 } | 109 } |
110 | 110 |
111 FocusInEventDispatchMediator::FocusInEventDispatchMediator(PassRefPtrWillBeRawPt
r<FocusEvent> focusEvent) | 111 FocusInEventDispatchMediator::FocusInEventDispatchMediator(PassRefPtrWillBeRawPt
r<FocusEvent> focusEvent) |
112 : EventDispatchMediator(focusEvent) | 112 : EventDispatchMediator(focusEvent) |
113 { | 113 { |
114 } | 114 } |
115 | 115 |
116 bool FocusInEventDispatchMediator::dispatchEvent(EventDispatcher* dispatcher) co
nst | 116 bool FocusInEventDispatchMediator::dispatchEvent(EventDispatcher* dispatcher) co
nst |
117 { | 117 { |
118 event()->eventPath().adjustForRelatedTarget(dispatcher->node(), event()->rel
atedTarget()); | 118 event()->eventPath().adjustForRelatedTarget(dispatcher->node(), event()->rel
atedTarget()); |
119 return EventDispatchMediator::dispatchEvent(dispatcher); | 119 return EventDispatchMediator::dispatchEvent(dispatcher); |
120 } | 120 } |
121 | 121 |
122 PassRefPtr<FocusOutEventDispatchMediator> FocusOutEventDispatchMediator::create(
PassRefPtrWillBeRawPtr<FocusEvent> focusEvent) | 122 PassRefPtrWillBeRawPtr<FocusOutEventDispatchMediator> FocusOutEventDispatchMedia
tor::create(PassRefPtrWillBeRawPtr<FocusEvent> focusEvent) |
123 { | 123 { |
124 return adoptRef(new FocusOutEventDispatchMediator(focusEvent)); | 124 return adoptRefWillBeNoop(new FocusOutEventDispatchMediator(focusEvent)); |
125 } | 125 } |
126 | 126 |
127 FocusOutEventDispatchMediator::FocusOutEventDispatchMediator(PassRefPtrWillBeRaw
Ptr<FocusEvent> focusEvent) | 127 FocusOutEventDispatchMediator::FocusOutEventDispatchMediator(PassRefPtrWillBeRaw
Ptr<FocusEvent> focusEvent) |
128 : EventDispatchMediator(focusEvent) | 128 : EventDispatchMediator(focusEvent) |
129 { | 129 { |
130 } | 130 } |
131 | 131 |
132 bool FocusOutEventDispatchMediator::dispatchEvent(EventDispatcher* dispatcher) c
onst | 132 bool FocusOutEventDispatchMediator::dispatchEvent(EventDispatcher* dispatcher) c
onst |
133 { | 133 { |
134 event()->eventPath().adjustForRelatedTarget(dispatcher->node(), event()->rel
atedTarget()); | 134 event()->eventPath().adjustForRelatedTarget(dispatcher->node(), event()->rel
atedTarget()); |
135 return EventDispatchMediator::dispatchEvent(dispatcher); | 135 return EventDispatchMediator::dispatchEvent(dispatcher); |
136 } | 136 } |
137 | 137 |
138 } // namespace WebCore | 138 } // namespace WebCore |
OLD | NEW |