Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(709)

Side by Side Diff: third_party/WebKit/Source/core/events/DragEvent.h

Issue 1479923002: Enumerate the return value of dispatchEvent so it is clear. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master_passive_uma_add
Patch Set: Fix typo Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 DispatchEventResult 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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/editing/SelectionEditor.cpp ('k') | third_party/WebKit/Source/core/events/DragEvent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698