| 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 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 210 TouchAction currentTouchAction) | 210 TouchAction currentTouchAction) |
| 211 // Pass a sourceCapabilities including the ability to fire touchevents when | 211 // Pass a sourceCapabilities including the ability to fire touchevents when |
| 212 // creating this touchevent, which is always created from input device | 212 // creating this touchevent, which is always created from input device |
| 213 // capabilities from EventHandler. | 213 // capabilities from EventHandler. |
| 214 : UIEventWithKeyState( | 214 : UIEventWithKeyState( |
| 215 type, | 215 type, |
| 216 true, | 216 true, |
| 217 event.isCancelable(), | 217 event.isCancelable(), |
| 218 view, | 218 view, |
| 219 0, | 219 0, |
| 220 static_cast<PlatformEvent::Modifiers>(event.modifiers()), | 220 static_cast<WebInputEvent::Modifiers>(event.modifiers()), |
| 221 TimeTicks::FromSeconds(event.timeStampSeconds()), | 221 TimeTicks::FromSeconds(event.timeStampSeconds()), |
| 222 view ? view->getInputDeviceCapabilities()->firesTouchEvents(true) | 222 view ? view->getInputDeviceCapabilities()->firesTouchEvents(true) |
| 223 : nullptr), | 223 : nullptr), |
| 224 m_touches(touches), | 224 m_touches(touches), |
| 225 m_targetTouches(targetTouches), | 225 m_targetTouches(targetTouches), |
| 226 m_changedTouches(changedTouches), | 226 m_changedTouches(changedTouches), |
| 227 m_defaultPreventedBeforeCurrentTarget(false), | 227 m_defaultPreventedBeforeCurrentTarget(false), |
| 228 m_currentTouchAction(currentTouchAction) { | 228 m_currentTouchAction(currentTouchAction) { |
| 229 m_nativeEvent.reset(new WebTouchEvent(event)); | 229 m_nativeEvent.reset(new WebTouchEvent(event)); |
| 230 } | 230 } |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 371 return toTouchEvent(EventDispatchMediator::event()); | 371 return toTouchEvent(EventDispatchMediator::event()); |
| 372 } | 372 } |
| 373 | 373 |
| 374 DispatchEventResult TouchEventDispatchMediator::dispatchEvent( | 374 DispatchEventResult TouchEventDispatchMediator::dispatchEvent( |
| 375 EventDispatcher& dispatcher) const { | 375 EventDispatcher& dispatcher) const { |
| 376 event().eventPath().adjustForTouchEvent(event()); | 376 event().eventPath().adjustForTouchEvent(event()); |
| 377 return dispatcher.dispatch(); | 377 return dispatcher.dispatch(); |
| 378 } | 378 } |
| 379 | 379 |
| 380 } // namespace blink | 380 } // namespace blink |
| OLD | NEW |