| 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(LocalFrame*, float); |
| 85 |
| 84 DECLARE_TRACE(); | 86 DECLARE_TRACE(); |
| 85 | 87 |
| 86 private: | 88 private: |
| 87 explicit DragController(Page*); | 89 explicit DragController(Page*); |
| 88 | 90 |
| 89 DispatchEventResult DispatchTextInputEventFor(LocalFrame*, DragData*); | 91 DispatchEventResult DispatchTextInputEventFor(LocalFrame*, DragData*); |
| 90 bool CanProcessDrag(DragData*, LocalFrame& local_root); | 92 bool CanProcessDrag(DragData*, LocalFrame& local_root); |
| 91 bool ConcludeEditDrag(DragData*); | 93 bool ConcludeEditDrag(DragData*); |
| 92 DragOperation OperationForLoad(DragData*, LocalFrame& local_root); | 94 DragOperation OperationForLoad(DragData*, LocalFrame& local_root); |
| 93 bool TryDocumentDrag(DragData*, | 95 bool TryDocumentDrag(DragData*, |
| (...skipping 27 matching lines...) Expand all Loading... |
| 121 Member<HTMLInputElement> file_input_element_under_mouse_; | 123 Member<HTMLInputElement> file_input_element_under_mouse_; |
| 122 bool document_is_handling_drag_; | 124 bool document_is_handling_drag_; |
| 123 | 125 |
| 124 DragDestinationAction drag_destination_action_; | 126 DragDestinationAction drag_destination_action_; |
| 125 bool did_initiate_drag_; | 127 bool did_initiate_drag_; |
| 126 }; | 128 }; |
| 127 | 129 |
| 128 } // namespace blink | 130 } // namespace blink |
| 129 | 131 |
| 130 #endif // DragController_h | 132 #endif // DragController_h |
| OLD | NEW |