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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 return EventNames::TouchEvent; | 82 return EventNames::TouchEvent; |
83 } | 83 } |
84 | 84 |
85 bool TouchEvent::isTouchEvent() const | 85 bool TouchEvent::isTouchEvent() const |
86 { | 86 { |
87 return true; | 87 return true; |
88 } | 88 } |
89 | 89 |
90 void TouchEvent::trace(Visitor* visitor) | 90 void TouchEvent::trace(Visitor* visitor) |
91 { | 91 { |
| 92 visitor->trace(m_touches); |
| 93 visitor->trace(m_targetTouches); |
| 94 visitor->trace(m_changedTouches); |
92 MouseRelatedEvent::trace(visitor); | 95 MouseRelatedEvent::trace(visitor); |
93 } | 96 } |
94 | 97 |
95 PassRefPtr<TouchEventDispatchMediator> TouchEventDispatchMediator::create(PassRe
fPtr<TouchEvent> touchEvent) | 98 PassRefPtr<TouchEventDispatchMediator> TouchEventDispatchMediator::create(PassRe
fPtr<TouchEvent> touchEvent) |
96 { | 99 { |
97 return adoptRef(new TouchEventDispatchMediator(touchEvent)); | 100 return adoptRef(new TouchEventDispatchMediator(touchEvent)); |
98 } | 101 } |
99 | 102 |
100 TouchEventDispatchMediator::TouchEventDispatchMediator(PassRefPtr<TouchEvent> to
uchEvent) | 103 TouchEventDispatchMediator::TouchEventDispatchMediator(PassRefPtr<TouchEvent> to
uchEvent) |
101 : EventDispatchMediator(touchEvent) | 104 : EventDispatchMediator(touchEvent) |
102 { | 105 { |
103 } | 106 } |
104 | 107 |
105 TouchEvent* TouchEventDispatchMediator::event() const | 108 TouchEvent* TouchEventDispatchMediator::event() const |
106 { | 109 { |
107 return toTouchEvent(EventDispatchMediator::event()); | 110 return toTouchEvent(EventDispatchMediator::event()); |
108 } | 111 } |
109 | 112 |
110 bool TouchEventDispatchMediator::dispatchEvent(EventDispatcher* dispatcher) cons
t | 113 bool TouchEventDispatchMediator::dispatchEvent(EventDispatcher* dispatcher) cons
t |
111 { | 114 { |
112 event()->eventPath().adjustForTouchEvent(dispatcher->node(), *event()); | 115 event()->eventPath().adjustForTouchEvent(dispatcher->node(), *event()); |
113 return dispatcher->dispatch(); | 116 return dispatcher->dispatch(); |
114 } | 117 } |
115 | 118 |
116 } // namespace WebCore | 119 } // namespace WebCore |
OLD | NEW |