| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2007, 2009, 2010 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007, 2009, 2010 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2008 Google Inc. | 3 * Copyright (C) 2008 Google Inc. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 : m_page(page) | 134 : m_page(page) |
| 135 , m_documentUnderMouse(nullptr) | 135 , m_documentUnderMouse(nullptr) |
| 136 , m_dragInitiator(nullptr) | 136 , m_dragInitiator(nullptr) |
| 137 , m_fileInputElementUnderMouse(nullptr) | 137 , m_fileInputElementUnderMouse(nullptr) |
| 138 , m_documentIsHandlingDrag(false) | 138 , m_documentIsHandlingDrag(false) |
| 139 , m_dragDestinationAction(DragDestinationActionNone) | 139 , m_dragDestinationAction(DragDestinationActionNone) |
| 140 , m_didInitiateDrag(false) | 140 , m_didInitiateDrag(false) |
| 141 { | 141 { |
| 142 } | 142 } |
| 143 | 143 |
| 144 DragController::~DragController() |
| 145 { |
| 146 } |
| 147 |
| 144 DragController* DragController::create(Page* page) | 148 DragController* DragController::create(Page* page) |
| 145 { | 149 { |
| 146 return new DragController(page); | 150 return new DragController(page); |
| 147 } | 151 } |
| 148 | 152 |
| 149 static DocumentFragment* documentFragmentFromDragData(DragData* dragData, LocalF
rame* frame, Range* context, bool allowPlainText, bool& chosePlainText) | 153 static DocumentFragment* documentFragmentFromDragData(DragData* dragData, LocalF
rame* frame, Range* context, bool allowPlainText, bool& chosePlainText) |
| 150 { | 154 { |
| 151 ASSERT(dragData); | 155 ASSERT(dragData); |
| 152 chosePlainText = false; | 156 chosePlainText = false; |
| 153 | 157 |
| (...skipping 838 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 992 | 996 |
| 993 DEFINE_TRACE(DragController) | 997 DEFINE_TRACE(DragController) |
| 994 { | 998 { |
| 995 visitor->trace(m_page); | 999 visitor->trace(m_page); |
| 996 visitor->trace(m_documentUnderMouse); | 1000 visitor->trace(m_documentUnderMouse); |
| 997 visitor->trace(m_dragInitiator); | 1001 visitor->trace(m_dragInitiator); |
| 998 visitor->trace(m_fileInputElementUnderMouse); | 1002 visitor->trace(m_fileInputElementUnderMouse); |
| 999 } | 1003 } |
| 1000 | 1004 |
| 1001 } // namespace blink | 1005 } // namespace blink |
| OLD | NEW |