| 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 TouchList* changedTouches() const { return m_changedTouches.get(); } | 63 TouchList* changedTouches() const { return m_changedTouches.get(); } |
| 64 | 64 |
| 65 void setTouches(PassRefPtrWillBeRawPtr<TouchList> touches) { m_touches = tou
ches; } | 65 void setTouches(PassRefPtrWillBeRawPtr<TouchList> touches) { m_touches = tou
ches; } |
| 66 void setTargetTouches(PassRefPtrWillBeRawPtr<TouchList> targetTouches) { m_t
argetTouches = targetTouches; } | 66 void setTargetTouches(PassRefPtrWillBeRawPtr<TouchList> targetTouches) { m_t
argetTouches = targetTouches; } |
| 67 void setChangedTouches(PassRefPtrWillBeRawPtr<TouchList> changedTouches) { m
_changedTouches = changedTouches; } | 67 void setChangedTouches(PassRefPtrWillBeRawPtr<TouchList> changedTouches) { m
_changedTouches = changedTouches; } |
| 68 | 68 |
| 69 virtual bool isTouchEvent() const OVERRIDE; | 69 virtual bool isTouchEvent() const OVERRIDE; |
| 70 | 70 |
| 71 virtual const AtomicString& interfaceName() const OVERRIDE; | 71 virtual const AtomicString& interfaceName() const OVERRIDE; |
| 72 | 72 |
| 73 virtual void preventDefault() OVERRIDE; |
| 74 |
| 73 virtual void trace(Visitor*) OVERRIDE; | 75 virtual void trace(Visitor*) OVERRIDE; |
| 74 | 76 |
| 75 private: | 77 private: |
| 76 TouchEvent(); | 78 TouchEvent(); |
| 77 TouchEvent(TouchList* touches, TouchList* targetTouches, | 79 TouchEvent(TouchList* touches, TouchList* targetTouches, |
| 78 TouchList* changedTouches, const AtomicString& type, | 80 TouchList* changedTouches, const AtomicString& type, |
| 79 PassRefPtrWillBeRawPtr<AbstractView>, int screenX, int screenY, int
pageX, | 81 PassRefPtrWillBeRawPtr<AbstractView>, int screenX, int screenY, int
pageX, |
| 80 int pageY, | 82 int pageY, |
| 81 bool ctrlKey, bool altKey, bool shiftKey, bool metaKey, bool cancela
ble); | 83 bool ctrlKey, bool altKey, bool shiftKey, bool metaKey, bool cancela
ble); |
| 82 | 84 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 93 explicit TouchEventDispatchMediator(PassRefPtrWillBeRawPtr<TouchEvent>); | 95 explicit TouchEventDispatchMediator(PassRefPtrWillBeRawPtr<TouchEvent>); |
| 94 TouchEvent* event() const; | 96 TouchEvent* event() const; |
| 95 virtual bool dispatchEvent(EventDispatcher*) const OVERRIDE; | 97 virtual bool dispatchEvent(EventDispatcher*) const OVERRIDE; |
| 96 }; | 98 }; |
| 97 | 99 |
| 98 DEFINE_EVENT_TYPE_CASTS(TouchEvent); | 100 DEFINE_EVENT_TYPE_CASTS(TouchEvent); |
| 99 | 101 |
| 100 } // namespace WebCore | 102 } // namespace WebCore |
| 101 | 103 |
| 102 #endif // TouchEvent_h | 104 #endif // TouchEvent_h |
| OLD | NEW |