| 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 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 209 TouchAction currentTouchAction) | 209 TouchAction currentTouchAction) |
| 210 // Pass a sourceCapabilities including the ability to fire touchevents when | 210 // Pass a sourceCapabilities including the ability to fire touchevents when |
| 211 // creating this touchevent, which is always created from input device | 211 // creating this touchevent, which is always created from input device |
| 212 // capabilities from EventHandler. | 212 // capabilities from EventHandler. |
| 213 : UIEventWithKeyState( | 213 : UIEventWithKeyState( |
| 214 type, | 214 type, |
| 215 true, | 215 true, |
| 216 event.isCancelable(), | 216 event.isCancelable(), |
| 217 view, | 217 view, |
| 218 0, | 218 0, |
| 219 static_cast<PlatformEvent::Modifiers>(event.modifiers()), | 219 static_cast<WebInputEvent::Modifiers>(event.modifiers()), |
| 220 TimeTicks::FromSeconds(event.timeStampSeconds()), | 220 TimeTicks::FromSeconds(event.timeStampSeconds()), |
| 221 InputDeviceCapabilities::firesTouchEventsSourceCapabilities()), | 221 InputDeviceCapabilities::firesTouchEventsSourceCapabilities()), |
| 222 m_touches(touches), | 222 m_touches(touches), |
| 223 m_targetTouches(targetTouches), | 223 m_targetTouches(targetTouches), |
| 224 m_changedTouches(changedTouches), | 224 m_changedTouches(changedTouches), |
| 225 m_defaultPreventedBeforeCurrentTarget(false), | 225 m_defaultPreventedBeforeCurrentTarget(false), |
| 226 m_currentTouchAction(currentTouchAction) { | 226 m_currentTouchAction(currentTouchAction) { |
| 227 m_nativeEvent.reset(new WebTouchEvent(event)); | 227 m_nativeEvent.reset(new WebTouchEvent(event)); |
| 228 } | 228 } |
| 229 | 229 |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 346 return toTouchEvent(EventDispatchMediator::event()); | 346 return toTouchEvent(EventDispatchMediator::event()); |
| 347 } | 347 } |
| 348 | 348 |
| 349 DispatchEventResult TouchEventDispatchMediator::dispatchEvent( | 349 DispatchEventResult TouchEventDispatchMediator::dispatchEvent( |
| 350 EventDispatcher& dispatcher) const { | 350 EventDispatcher& dispatcher) const { |
| 351 event().eventPath().adjustForTouchEvent(event()); | 351 event().eventPath().adjustForTouchEvent(event()); |
| 352 return dispatcher.dispatch(); | 352 return dispatcher.dispatch(); |
| 353 } | 353 } |
| 354 | 354 |
| 355 } // namespace blink | 355 } // namespace blink |
| OLD | NEW |