OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2008, The Android Open Source Project | 2 * Copyright 2008, The Android Open Source Project |
3 * Copyright (C) 2012 Research In Motion Limited. All rights reserved. | 3 * Copyright (C) 2012 Research In Motion Limited. All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above copyright | 10 * * Redistributions in binary form must reproduce the above copyright |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 } | 103 } |
104 } | 104 } |
105 void TouchEvent::trace(Visitor* visitor) | 105 void TouchEvent::trace(Visitor* visitor) |
106 { | 106 { |
107 visitor->trace(m_touches); | 107 visitor->trace(m_touches); |
108 visitor->trace(m_targetTouches); | 108 visitor->trace(m_targetTouches); |
109 visitor->trace(m_changedTouches); | 109 visitor->trace(m_changedTouches); |
110 UIEventWithKeyState::trace(visitor); | 110 UIEventWithKeyState::trace(visitor); |
111 } | 111 } |
112 | 112 |
113 PassRefPtr<TouchEventDispatchMediator> TouchEventDispatchMediator::create(PassRe
fPtrWillBeRawPtr<TouchEvent> touchEvent) | 113 PassRefPtrWillBeRawPtr<TouchEventDispatchMediator> TouchEventDispatchMediator::c
reate(PassRefPtrWillBeRawPtr<TouchEvent> touchEvent) |
114 { | 114 { |
115 return adoptRef(new TouchEventDispatchMediator(touchEvent)); | 115 return adoptRefWillBeNoop(new TouchEventDispatchMediator(touchEvent)); |
116 } | 116 } |
117 | 117 |
118 TouchEventDispatchMediator::TouchEventDispatchMediator(PassRefPtrWillBeRawPtr<To
uchEvent> touchEvent) | 118 TouchEventDispatchMediator::TouchEventDispatchMediator(PassRefPtrWillBeRawPtr<To
uchEvent> touchEvent) |
119 : EventDispatchMediator(touchEvent) | 119 : EventDispatchMediator(touchEvent) |
120 { | 120 { |
121 } | 121 } |
122 | 122 |
123 TouchEvent* TouchEventDispatchMediator::event() const | 123 TouchEvent* TouchEventDispatchMediator::event() const |
124 { | 124 { |
125 return toTouchEvent(EventDispatchMediator::event()); | 125 return toTouchEvent(EventDispatchMediator::event()); |
126 } | 126 } |
127 | 127 |
128 bool TouchEventDispatchMediator::dispatchEvent(EventDispatcher* dispatcher) cons
t | 128 bool TouchEventDispatchMediator::dispatchEvent(EventDispatcher* dispatcher) cons
t |
129 { | 129 { |
130 event()->eventPath().adjustForTouchEvent(dispatcher->node(), *event()); | 130 event()->eventPath().adjustForTouchEvent(dispatcher->node(), *event()); |
131 return dispatcher->dispatch(); | 131 return dispatcher->dispatch(); |
132 } | 132 } |
133 | 133 |
134 } // namespace WebCore | 134 } // namespace WebCore |
OLD | NEW |