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

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

Issue 2940583002: Move drag related functionality out of LocalFrame (Closed)
Patch Set: updatedPS Created 3 years, 6 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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 bool PopulateDragDataTransfer(LocalFrame* src, 74 bool PopulateDragDataTransfer(LocalFrame* src,
75 const DragState&, 75 const DragState&,
76 const IntPoint& drag_origin); 76 const IntPoint& drag_origin);
77 bool StartDrag(LocalFrame* src, 77 bool StartDrag(LocalFrame* src,
78 const DragState&, 78 const DragState&,
79 const WebMouseEvent& drag_event, 79 const WebMouseEvent& drag_event,
80 const IntPoint& drag_origin); 80 const IntPoint& drag_origin);
81 81
82 DragState& GetDragState(); 82 DragState& GetDragState();
83 83
84 static std::unique_ptr<DragImage> DragImageForSelection(const LocalFrame&,
85 float);
86
84 DECLARE_TRACE(); 87 DECLARE_TRACE();
85 88
86 private: 89 private:
87 explicit DragController(Page*); 90 explicit DragController(Page*);
88 91
89 DispatchEventResult DispatchTextInputEventFor(LocalFrame*, DragData*); 92 DispatchEventResult DispatchTextInputEventFor(LocalFrame*, DragData*);
90 bool CanProcessDrag(DragData*, LocalFrame& local_root); 93 bool CanProcessDrag(DragData*, LocalFrame& local_root);
91 bool ConcludeEditDrag(DragData*); 94 bool ConcludeEditDrag(DragData*);
92 DragOperation OperationForLoad(DragData*, LocalFrame& local_root); 95 DragOperation OperationForLoad(DragData*, LocalFrame& local_root);
93 bool TryDocumentDrag(DragData*, 96 bool TryDocumentDrag(DragData*,
(...skipping 27 matching lines...) Expand all
121 Member<HTMLInputElement> file_input_element_under_mouse_; 124 Member<HTMLInputElement> file_input_element_under_mouse_;
122 bool document_is_handling_drag_; 125 bool document_is_handling_drag_;
123 126
124 DragDestinationAction drag_destination_action_; 127 DragDestinationAction drag_destination_action_;
125 bool did_initiate_drag_; 128 bool did_initiate_drag_;
126 }; 129 };
127 130
128 } // namespace blink 131 } // namespace blink
129 132
130 #endif // DragController_h 133 #endif // DragController_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/frame/LocalFrameTest.cpp ('k') | third_party/WebKit/Source/core/page/DragController.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698