OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |