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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 bool m_causesScrollingIfUncanceled; | 101 bool m_causesScrollingIfUncanceled; |
102 }; | 102 }; |
103 | 103 |
104 class TouchEventDispatchMediator final : public EventDispatchMediator { | 104 class TouchEventDispatchMediator final : public EventDispatchMediator { |
105 public: | 105 public: |
106 static PassRefPtrWillBeRawPtr<TouchEventDispatchMediator> create(PassRefPtrW
illBeRawPtr<TouchEvent>); | 106 static PassRefPtrWillBeRawPtr<TouchEventDispatchMediator> create(PassRefPtrW
illBeRawPtr<TouchEvent>); |
107 | 107 |
108 private: | 108 private: |
109 explicit TouchEventDispatchMediator(PassRefPtrWillBeRawPtr<TouchEvent>); | 109 explicit TouchEventDispatchMediator(PassRefPtrWillBeRawPtr<TouchEvent>); |
110 TouchEvent& event() const; | 110 TouchEvent& event() const; |
111 bool dispatchEvent(EventDispatcher&) const override; | 111 DispatchEventResult dispatchEvent(EventDispatcher&) const override; |
112 }; | 112 }; |
113 | 113 |
114 DEFINE_EVENT_TYPE_CASTS(TouchEvent); | 114 DEFINE_EVENT_TYPE_CASTS(TouchEvent); |
115 | 115 |
116 } // namespace blink | 116 } // namespace blink |
117 | 117 |
118 #endif // TouchEvent_h | 118 #endif // TouchEvent_h |
OLD | NEW |