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

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

Issue 1780603002: blink: Rename bindings/ methods to prefix with get when they collide. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: clash-bindings: rebase Created 4 years, 9 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 22 matching lines...) Expand all
33 PlatformEvent::Modifiers, short button, unsigned short buttons, 33 PlatformEvent::Modifiers, short button, unsigned short buttons,
34 PassRefPtrWillBeRawPtr<EventTarget> relatedTarget, 34 PassRefPtrWillBeRawPtr<EventTarget> relatedTarget,
35 double platformTimeStamp, DataTransfer*, 35 double platformTimeStamp, DataTransfer*,
36 PlatformMouseEvent::SyntheticEventType = PlatformMouseEvent::RealOrIndis tinguishable); 36 PlatformMouseEvent::SyntheticEventType = PlatformMouseEvent::RealOrIndis tinguishable);
37 37
38 static PassRefPtrWillBeRawPtr<DragEvent> create(const AtomicString& type, co nst DragEventInit& initializer) 38 static PassRefPtrWillBeRawPtr<DragEvent> create(const AtomicString& type, co nst DragEventInit& initializer)
39 { 39 {
40 return adoptRefWillBeNoop(new DragEvent(type, initializer)); 40 return adoptRefWillBeNoop(new DragEvent(type, initializer));
41 } 41 }
42 42
43 DataTransfer* dataTransfer() const override { return isDragEvent() ? m_dataT ransfer.get() : nullptr; } 43 DataTransfer* getDataTransfer() const override { return isDragEvent() ? m_da taTransfer.get() : nullptr; }
44 44
45 bool isDragEvent() const override; 45 bool isDragEvent() const override;
46 bool isMouseEvent() const override; 46 bool isMouseEvent() const override;
47 47
48 PassRefPtrWillBeRawPtr<EventDispatchMediator> createMediator() override; 48 PassRefPtrWillBeRawPtr<EventDispatchMediator> createMediator() override;
49 49
50 DECLARE_VIRTUAL_TRACE(); 50 DECLARE_VIRTUAL_TRACE();
51 51
52 private: 52 private:
53 DragEvent(); 53 DragEvent();
(...skipping 19 matching lines...) Expand all
73 explicit DragEventDispatchMediator(PassRefPtrWillBeRawPtr<DragEvent>); 73 explicit DragEventDispatchMediator(PassRefPtrWillBeRawPtr<DragEvent>);
74 DragEvent& event() const; 74 DragEvent& event() const;
75 DispatchEventResult 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

Powered by Google App Engine
This is Rietveld 408576698