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