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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 void setChangedTouches(PassRefPtrWillBeRawPtr<TouchList> changedTouches) { m
_changedTouches = changedTouches; } | 69 void setChangedTouches(PassRefPtrWillBeRawPtr<TouchList> changedTouches) { m
_changedTouches = changedTouches; } |
70 | 70 |
71 bool causesScrollingIfUncanceled() const { return m_causesScrollingIfUncance
led; } | 71 bool causesScrollingIfUncanceled() const { return m_causesScrollingIfUncance
led; } |
72 | 72 |
73 bool isTouchEvent() const override; | 73 bool isTouchEvent() const override; |
74 | 74 |
75 const AtomicString& interfaceName() const override; | 75 const AtomicString& interfaceName() const override; |
76 | 76 |
77 void preventDefault() override; | 77 void preventDefault() override; |
78 | 78 |
| 79 PassRefPtrWillBeRawPtr<EventDispatchMediator> createMediator() override; |
| 80 |
79 DECLARE_VIRTUAL_TRACE(); | 81 DECLARE_VIRTUAL_TRACE(); |
80 | 82 |
81 private: | 83 private: |
82 TouchEvent(); | 84 TouchEvent(); |
83 TouchEvent(TouchList* touches, TouchList* targetTouches, | 85 TouchEvent(TouchList* touches, TouchList* targetTouches, |
84 TouchList* changedTouches, const AtomicString& type, | 86 TouchList* changedTouches, const AtomicString& type, |
85 PassRefPtrWillBeRawPtr<AbstractView>, | 87 PassRefPtrWillBeRawPtr<AbstractView>, |
86 bool ctrlKey, bool altKey, bool shiftKey, bool metaKey, bool cancela
ble, bool causesScrollingIfUncanceled, | 88 bool ctrlKey, bool altKey, bool shiftKey, bool metaKey, bool cancela
ble, bool causesScrollingIfUncanceled, |
87 double uiCreateTime = 0); | 89 double uiCreateTime = 0); |
88 | 90 |
(...skipping 11 matching lines...) Expand all Loading... |
100 explicit TouchEventDispatchMediator(PassRefPtrWillBeRawPtr<TouchEvent>); | 102 explicit TouchEventDispatchMediator(PassRefPtrWillBeRawPtr<TouchEvent>); |
101 TouchEvent& event() const; | 103 TouchEvent& event() const; |
102 bool dispatchEvent(EventDispatcher&) const override; | 104 bool dispatchEvent(EventDispatcher&) const override; |
103 }; | 105 }; |
104 | 106 |
105 DEFINE_EVENT_TYPE_CASTS(TouchEvent); | 107 DEFINE_EVENT_TYPE_CASTS(TouchEvent); |
106 | 108 |
107 } // namespace blink | 109 } // namespace blink |
108 | 110 |
109 #endif // TouchEvent_h | 111 #endif // TouchEvent_h |
OLD | NEW |