Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(88)

Side by Side Diff: Source/core/events/TouchEvent.cpp

Issue 333623002: Oilpan: Prepare to move EventDispatchMediator to Oilpan heap. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/events/TouchEvent.h ('k') | Source/core/events/WheelEvent.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « Source/core/events/TouchEvent.h ('k') | Source/core/events/WheelEvent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698