| 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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 NOTREACHED(); | 115 NOTREACHED(); |
| 116 return false; | 116 return false; |
| 117 } | 117 } |
| 118 #endif // DCHECK_IS_ON() | 118 #endif // DCHECK_IS_ON() |
| 119 | 119 |
| 120 static PlatformMouseEvent createMouseEvent(DragData* dragData) { | 120 static PlatformMouseEvent createMouseEvent(DragData* dragData) { |
| 121 return PlatformMouseEvent( | 121 return PlatformMouseEvent( |
| 122 dragData->clientPosition(), dragData->globalPosition(), | 122 dragData->clientPosition(), dragData->globalPosition(), |
| 123 WebPointerProperties::Button::Left, PlatformEvent::MouseMoved, 0, | 123 WebPointerProperties::Button::Left, PlatformEvent::MouseMoved, 0, |
| 124 static_cast<PlatformEvent::Modifiers>(dragData->modifiers()), | 124 static_cast<PlatformEvent::Modifiers>(dragData->modifiers()), |
| 125 PlatformMouseEvent::RealOrIndistinguishable, | 125 PlatformMouseEvent::RealOrIndistinguishable, TimeTicks::Now()); |
| 126 monotonicallyIncreasingTime()); | |
| 127 } | 126 } |
| 128 | 127 |
| 129 static DataTransfer* createDraggingDataTransfer(DataTransferAccessPolicy policy, | 128 static DataTransfer* createDraggingDataTransfer(DataTransferAccessPolicy policy, |
| 130 DragData* dragData) { | 129 DragData* dragData) { |
| 131 return DataTransfer::create(DataTransfer::DragAndDrop, policy, | 130 return DataTransfer::create(DataTransfer::DragAndDrop, policy, |
| 132 dragData->platformData()); | 131 dragData->platformData()); |
| 133 } | 132 } |
| 134 | 133 |
| 135 DragController::DragController(Page* page) | 134 DragController::DragController(Page* page) |
| 136 : m_page(page), | 135 : m_page(page), |
| (...skipping 1084 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1221 } | 1220 } |
| 1222 | 1221 |
| 1223 DEFINE_TRACE(DragController) { | 1222 DEFINE_TRACE(DragController) { |
| 1224 visitor->trace(m_page); | 1223 visitor->trace(m_page); |
| 1225 visitor->trace(m_documentUnderMouse); | 1224 visitor->trace(m_documentUnderMouse); |
| 1226 visitor->trace(m_dragInitiator); | 1225 visitor->trace(m_dragInitiator); |
| 1227 visitor->trace(m_fileInputElementUnderMouse); | 1226 visitor->trace(m_fileInputElementUnderMouse); |
| 1228 } | 1227 } |
| 1229 | 1228 |
| 1230 } // namespace blink | 1229 } // namespace blink |
| OLD | NEW |