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 | |
148 DragController* DragController::create(Page* page) | 144 DragController* DragController::create(Page* page) |
149 { | 145 { |
150 return new DragController(page); | 146 return new DragController(page); |
151 } | 147 } |
152 | 148 |
153 static DocumentFragment* documentFragmentFromDragData(DragData* dragData, LocalF
rame* frame, Range* context, bool allowPlainText, bool& chosePlainText) | 149 static DocumentFragment* documentFragmentFromDragData(DragData* dragData, LocalF
rame* frame, Range* context, bool allowPlainText, bool& chosePlainText) |
154 { | 150 { |
155 ASSERT(dragData); | 151 ASSERT(dragData); |
156 chosePlainText = false; | 152 chosePlainText = false; |
157 | 153 |
(...skipping 838 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
996 | 992 |
997 DEFINE_TRACE(DragController) | 993 DEFINE_TRACE(DragController) |
998 { | 994 { |
999 visitor->trace(m_page); | 995 visitor->trace(m_page); |
1000 visitor->trace(m_documentUnderMouse); | 996 visitor->trace(m_documentUnderMouse); |
1001 visitor->trace(m_dragInitiator); | 997 visitor->trace(m_dragInitiator); |
1002 visitor->trace(m_fileInputElementUnderMouse); | 998 visitor->trace(m_fileInputElementUnderMouse); |
1003 } | 999 } |
1004 | 1000 |
1005 } // namespace blink | 1001 } // namespace blink |
OLD | NEW |