| 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 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 204 | 204 |
| 205 TouchEvent::TouchEvent(TouchList* touches, | 205 TouchEvent::TouchEvent(TouchList* touches, |
| 206 TouchList* targetTouches, | 206 TouchList* targetTouches, |
| 207 TouchList* changedTouches, | 207 TouchList* changedTouches, |
| 208 const AtomicString& type, | 208 const AtomicString& type, |
| 209 AbstractView* view, | 209 AbstractView* view, |
| 210 PlatformEvent::Modifiers modifiers, | 210 PlatformEvent::Modifiers modifiers, |
| 211 bool cancelable, | 211 bool cancelable, |
| 212 bool causesScrollingIfUncanceled, | 212 bool causesScrollingIfUncanceled, |
| 213 bool firstTouchMoveOrStart, | 213 bool firstTouchMoveOrStart, |
| 214 double platformTimeStamp, | 214 TimeTicks platformTimeStamp, |
| 215 TouchAction currentTouchAction, | 215 TouchAction currentTouchAction, |
| 216 WebPointerProperties::PointerType pointerType) | 216 WebPointerProperties::PointerType pointerType) |
| 217 // Pass a sourceCapabilities including the ability to fire touchevents when | 217 // Pass a sourceCapabilities including the ability to fire touchevents when |
| 218 // creating this touchevent, which is always created from input device | 218 // creating this touchevent, which is always created from input device |
| 219 // capabilities from EventHandler. | 219 // capabilities from EventHandler. |
| 220 : UIEventWithKeyState( | 220 : UIEventWithKeyState( |
| 221 type, | 221 type, |
| 222 true, | 222 true, |
| 223 cancelable, | 223 cancelable, |
| 224 view, | 224 view, |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 352 return toTouchEvent(EventDispatchMediator::event()); | 352 return toTouchEvent(EventDispatchMediator::event()); |
| 353 } | 353 } |
| 354 | 354 |
| 355 DispatchEventResult TouchEventDispatchMediator::dispatchEvent( | 355 DispatchEventResult TouchEventDispatchMediator::dispatchEvent( |
| 356 EventDispatcher& dispatcher) const { | 356 EventDispatcher& dispatcher) const { |
| 357 event().eventPath().adjustForTouchEvent(event()); | 357 event().eventPath().adjustForTouchEvent(event()); |
| 358 return dispatcher.dispatch(); | 358 return dispatcher.dispatch(); |
| 359 } | 359 } |
| 360 | 360 |
| 361 } // namespace blink | 361 } // namespace blink |
| OLD | NEW |