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

Side by Side Diff: third_party/WebKit/Source/core/page/DragController.h

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 /* 1 /*
2 * Copyright (C) 2007, 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2007, 2009 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 class DragImage; 43 class DragImage;
44 struct DragSession; 44 struct DragSession;
45 class DragState; 45 class DragState;
46 class LocalFrame; 46 class LocalFrame;
47 class FrameSelection; 47 class FrameSelection;
48 class HTMLInputElement; 48 class HTMLInputElement;
49 class Node; 49 class Node;
50 class Page; 50 class Page;
51 class PlatformMouseEvent; 51 class PlatformMouseEvent;
52 52
53 class CORE_EXPORT DragController final : public NoBaseWillBeGarbageCollectedFina lized<DragController> { 53 class CORE_EXPORT DragController final : public GarbageCollectedFinalized<DragCo ntroller> {
54 WTF_MAKE_NONCOPYABLE(DragController); 54 WTF_MAKE_NONCOPYABLE(DragController);
55 USING_FAST_MALLOC_WILL_BE_REMOVED(DragController);
56 public: 55 public:
57 ~DragController(); 56 ~DragController();
58 57
59 static PassOwnPtrWillBeRawPtr<DragController> create(Page*, DragClient*); 58 static RawPtr<DragController> create(Page*, DragClient*);
60 59
61 DragSession dragEntered(DragData*); 60 DragSession dragEntered(DragData*);
62 void dragExited(DragData*); 61 void dragExited(DragData*);
63 DragSession dragUpdated(DragData*); 62 DragSession dragUpdated(DragData*);
64 bool performDrag(DragData*); 63 bool performDrag(DragData*);
65 64
66 enum SelectionDragPolicy { 65 enum SelectionDragPolicy {
67 ImmediateSelectionDragResolution, 66 ImmediateSelectionDragResolution,
68 DelayedSelectionDragResolution, 67 DelayedSelectionDragResolution,
69 }; 68 };
(...skipping 21 matching lines...) Expand all
91 DragOperation dragOperation(DragData*); 90 DragOperation dragOperation(DragData*);
92 void cancelDrag(); 91 void cancelDrag();
93 bool dragIsMove(FrameSelection&, DragData*); 92 bool dragIsMove(FrameSelection&, DragData*);
94 bool isCopyKeyDown(DragData*); 93 bool isCopyKeyDown(DragData*);
95 94
96 void mouseMovedIntoDocument(Document*); 95 void mouseMovedIntoDocument(Document*);
97 96
98 void doSystemDrag(DragImage*, const IntPoint& dragLocation, const IntPoint& dragOrigin, DataTransfer*, LocalFrame*, bool forLink); 97 void doSystemDrag(DragImage*, const IntPoint& dragLocation, const IntPoint& dragOrigin, DataTransfer*, LocalFrame*, bool forLink);
99 void cleanupAfterSystemDrag(); 98 void cleanupAfterSystemDrag();
100 99
101 RawPtrWillBeMember<Page> m_page; 100 Member<Page> m_page;
102 DragClient* m_client; 101 DragClient* m_client;
103 102
104 RefPtrWillBeMember<Document> m_documentUnderMouse; // The document the mouse was last dragged over. 103 Member<Document> m_documentUnderMouse; // The document the mouse was last dr agged over.
105 RefPtrWillBeMember<Document> m_dragInitiator; // The Document (if any) that initiated the drag. 104 Member<Document> m_dragInitiator; // The Document (if any) that initiated th e drag.
106 RefPtrWillBeMember<HTMLInputElement> m_fileInputElementUnderMouse; 105 Member<HTMLInputElement> m_fileInputElementUnderMouse;
107 bool m_documentIsHandlingDrag; 106 bool m_documentIsHandlingDrag;
108 107
109 DragDestinationAction m_dragDestinationAction; 108 DragDestinationAction m_dragDestinationAction;
110 bool m_didInitiateDrag; 109 bool m_didInitiateDrag;
111 }; 110 };
112 111
113 } // namespace blink 112 } // namespace blink
114 113
115 #endif // DragController_h 114 #endif // DragController_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698