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