| 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 19 matching lines...) Expand all Loading... |
| 30 | 30 |
| 31 #include "core/events/EventDispatcher.h" | 31 #include "core/events/EventDispatcher.h" |
| 32 #include "core/frame/FrameConsole.h" | 32 #include "core/frame/FrameConsole.h" |
| 33 #include "core/frame/LocalFrame.h" | 33 #include "core/frame/LocalFrame.h" |
| 34 #include "core/inspector/ConsoleMessage.h" | 34 #include "core/inspector/ConsoleMessage.h" |
| 35 | 35 |
| 36 namespace blink { | 36 namespace blink { |
| 37 | 37 |
| 38 TouchEvent::TouchEvent() | 38 TouchEvent::TouchEvent() |
| 39 { | 39 { |
| 40 ScriptWrappable::init(this); | |
| 41 } | 40 } |
| 42 | 41 |
| 43 TouchEvent::TouchEvent(TouchList* touches, TouchList* targetTouches, | 42 TouchEvent::TouchEvent(TouchList* touches, TouchList* targetTouches, |
| 44 TouchList* changedTouches, const AtomicString& type, | 43 TouchList* changedTouches, const AtomicString& type, |
| 45 PassRefPtrWillBeRawPtr<AbstractView> view, | 44 PassRefPtrWillBeRawPtr<AbstractView> view, |
| 46 bool ctrlKey, bool altKey, bool shiftKey, bool metaKey, bool cancelable) | 45 bool ctrlKey, bool altKey, bool shiftKey, bool metaKey, bool cancelable) |
| 47 : UIEventWithKeyState(type, true, cancelable, view, 0, | 46 : UIEventWithKeyState(type, true, cancelable, view, 0, |
| 48 ctrlKey, altKey, shiftKey, metaKey) | 47 ctrlKey, altKey, shiftKey, metaKey) |
| 49 , m_touches(touches) | 48 , m_touches(touches) |
| 50 , m_targetTouches(targetTouches) | 49 , m_targetTouches(targetTouches) |
| 51 , m_changedTouches(changedTouches) | 50 , m_changedTouches(changedTouches) |
| 52 { | 51 { |
| 53 ScriptWrappable::init(this); | |
| 54 } | 52 } |
| 55 | 53 |
| 56 TouchEvent::~TouchEvent() | 54 TouchEvent::~TouchEvent() |
| 57 { | 55 { |
| 58 } | 56 } |
| 59 | 57 |
| 60 void TouchEvent::initTouchEvent(TouchList* touches, TouchList* targetTouches, | 58 void TouchEvent::initTouchEvent(TouchList* touches, TouchList* targetTouches, |
| 61 TouchList* changedTouches, const AtomicString& type, | 59 TouchList* changedTouches, const AtomicString& type, |
| 62 PassRefPtrWillBeRawPtr<AbstractView> view, | 60 PassRefPtrWillBeRawPtr<AbstractView> view, |
| 63 int, int, int, int, | 61 int, int, int, int, |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 return toTouchEvent(EventDispatchMediator::event()); | 124 return toTouchEvent(EventDispatchMediator::event()); |
| 127 } | 125 } |
| 128 | 126 |
| 129 bool TouchEventDispatchMediator::dispatchEvent(EventDispatcher* dispatcher) cons
t | 127 bool TouchEventDispatchMediator::dispatchEvent(EventDispatcher* dispatcher) cons
t |
| 130 { | 128 { |
| 131 event()->eventPath().adjustForTouchEvent(dispatcher->node(), *event()); | 129 event()->eventPath().adjustForTouchEvent(dispatcher->node(), *event()); |
| 132 return dispatcher->dispatch(); | 130 return dispatcher->dispatch(); |
| 133 } | 131 } |
| 134 | 132 |
| 135 } // namespace blink | 133 } // namespace blink |
| OLD | NEW |