| 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 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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<PlatformEvent::Modifiers>(event.modifiers()), |
| 221 TimeTicks::FromSeconds(event.timeStampSeconds()), | 221 TimeTicks::FromSeconds(event.timeStampSeconds()), |
| 222 view ? view->getInputDeviceCapabilities()->firesTouchEvents(true) | 222 InputDeviceCapabilities::FiresTouchEvents), |
| 223 : nullptr), | |
| 224 m_touches(touches), | 223 m_touches(touches), |
| 225 m_targetTouches(targetTouches), | 224 m_targetTouches(targetTouches), |
| 226 m_changedTouches(changedTouches), | 225 m_changedTouches(changedTouches), |
| 227 m_defaultPreventedBeforeCurrentTarget(false), | 226 m_defaultPreventedBeforeCurrentTarget(false), |
| 228 m_currentTouchAction(currentTouchAction) { | 227 m_currentTouchAction(currentTouchAction) { |
| 229 m_nativeEvent.reset(new WebTouchEvent(event)); | 228 m_nativeEvent.reset(new WebTouchEvent(event)); |
| 230 } | 229 } |
| 231 | 230 |
| 232 TouchEvent::TouchEvent(const AtomicString& type, | 231 TouchEvent::TouchEvent(const AtomicString& type, |
| 233 const TouchEventInit& initializer) | 232 const TouchEventInit& initializer) |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 348 return toTouchEvent(EventDispatchMediator::event()); | 347 return toTouchEvent(EventDispatchMediator::event()); |
| 349 } | 348 } |
| 350 | 349 |
| 351 DispatchEventResult TouchEventDispatchMediator::dispatchEvent( | 350 DispatchEventResult TouchEventDispatchMediator::dispatchEvent( |
| 352 EventDispatcher& dispatcher) const { | 351 EventDispatcher& dispatcher) const { |
| 353 event().eventPath().adjustForTouchEvent(event()); | 352 event().eventPath().adjustForTouchEvent(event()); |
| 354 return dispatcher.dispatch(); | 353 return dispatcher.dispatch(); |
| 355 } | 354 } |
| 356 | 355 |
| 357 } // namespace blink | 356 } // namespace blink |
| OLD | NEW |