| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef DragEvent_h | 5 #ifndef DragEvent_h |
| 6 #define DragEvent_h | 6 #define DragEvent_h |
| 7 | 7 |
| 8 #include "core/CoreExport.h" | 8 #include "core/CoreExport.h" |
| 9 #include "core/events/DragEventInit.h" | 9 #include "core/events/DragEventInit.h" |
| 10 #include "core/events/MouseEvent.h" | 10 #include "core/events/MouseEvent.h" |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 PersistentWillBeMember<DataTransfer> m_dataTransfer; | 65 PersistentWillBeMember<DataTransfer> m_dataTransfer; |
| 66 }; | 66 }; |
| 67 | 67 |
| 68 class DragEventDispatchMediator final : public EventDispatchMediator { | 68 class DragEventDispatchMediator final : public EventDispatchMediator { |
| 69 public: | 69 public: |
| 70 static PassRefPtrWillBeRawPtr<DragEventDispatchMediator> create(PassRefPtrWi
llBeRawPtr<DragEvent>); | 70 static PassRefPtrWillBeRawPtr<DragEventDispatchMediator> create(PassRefPtrWi
llBeRawPtr<DragEvent>); |
| 71 | 71 |
| 72 private: | 72 private: |
| 73 explicit DragEventDispatchMediator(PassRefPtrWillBeRawPtr<DragEvent>); | 73 explicit DragEventDispatchMediator(PassRefPtrWillBeRawPtr<DragEvent>); |
| 74 DragEvent& event() const; | 74 DragEvent& event() const; |
| 75 bool dispatchEvent(EventDispatcher&) const override; | 75 WebInputEventResult dispatchEvent(EventDispatcher&) const override; |
| 76 }; | 76 }; |
| 77 | 77 |
| 78 DEFINE_EVENT_TYPE_CASTS(DragEvent); | 78 DEFINE_EVENT_TYPE_CASTS(DragEvent); |
| 79 | 79 |
| 80 } // namespace blink | 80 } // namespace blink |
| 81 | 81 |
| 82 #endif // DragEvent_h | 82 #endif // DragEvent_h |
| OLD | NEW |