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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 PassRefPtrWillBeRawPtr<AbstractView>, | 79 PassRefPtrWillBeRawPtr<AbstractView>, |
80 bool ctrlKey, bool altKey, bool shiftKey, bool metaKey, bool cancela
ble); | 80 bool ctrlKey, bool altKey, bool shiftKey, bool metaKey, bool cancela
ble); |
81 | 81 |
82 RefPtrWillBeMember<TouchList> m_touches; | 82 RefPtrWillBeMember<TouchList> m_touches; |
83 RefPtrWillBeMember<TouchList> m_targetTouches; | 83 RefPtrWillBeMember<TouchList> m_targetTouches; |
84 RefPtrWillBeMember<TouchList> m_changedTouches; | 84 RefPtrWillBeMember<TouchList> m_changedTouches; |
85 }; | 85 }; |
86 | 86 |
87 class TouchEventDispatchMediator FINAL : public EventDispatchMediator { | 87 class TouchEventDispatchMediator FINAL : public EventDispatchMediator { |
88 public: | 88 public: |
89 static PassRefPtr<TouchEventDispatchMediator> create(PassRefPtrWillBeRawPtr<
TouchEvent>); | 89 static PassRefPtrWillBeRawPtr<TouchEventDispatchMediator> create(PassRefPtrW
illBeRawPtr<TouchEvent>); |
90 | 90 |
91 private: | 91 private: |
92 explicit TouchEventDispatchMediator(PassRefPtrWillBeRawPtr<TouchEvent>); | 92 explicit TouchEventDispatchMediator(PassRefPtrWillBeRawPtr<TouchEvent>); |
93 TouchEvent* event() const; | 93 TouchEvent* event() const; |
94 virtual bool dispatchEvent(EventDispatcher*) const OVERRIDE; | 94 virtual bool dispatchEvent(EventDispatcher*) const OVERRIDE; |
95 }; | 95 }; |
96 | 96 |
97 DEFINE_EVENT_TYPE_CASTS(TouchEvent); | 97 DEFINE_EVENT_TYPE_CASTS(TouchEvent); |
98 | 98 |
99 } // namespace WebCore | 99 } // namespace WebCore |
100 | 100 |
101 #endif // TouchEvent_h | 101 #endif // TouchEvent_h |
OLD | NEW |