| 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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 return false; | 112 return false; |
| 113 } | 113 } |
| 114 // Make sure MSVC doesn't complain that not all control paths return a value
. | 114 // Make sure MSVC doesn't complain that not all control paths return a value
. |
| 115 return false; | 115 return false; |
| 116 } | 116 } |
| 117 #endif | 117 #endif |
| 118 | 118 |
| 119 static PlatformMouseEvent createMouseEvent(DragData* dragData) | 119 static PlatformMouseEvent createMouseEvent(DragData* dragData) |
| 120 { | 120 { |
| 121 return PlatformMouseEvent(dragData->clientPosition(), dragData->globalPositi
on(), | 121 return PlatformMouseEvent(dragData->clientPosition(), dragData->globalPositi
on(), |
| 122 LeftButton, PlatformEvent::MouseMoved, 0, | 122 WebPointerProperties::Button::Left, PlatformEvent::MouseMoved, 0, |
| 123 static_cast<PlatformEvent::Modifiers>(dragData->modifiers()), | 123 static_cast<PlatformEvent::Modifiers>(dragData->modifiers()), |
| 124 PlatformMouseEvent::RealOrIndistinguishable, monotonicallyIncreasingTime
()); | 124 PlatformMouseEvent::RealOrIndistinguishable, monotonicallyIncreasingTime
()); |
| 125 } | 125 } |
| 126 | 126 |
| 127 static DataTransfer* createDraggingDataTransfer(DataTransferAccessPolicy policy,
DragData* dragData) | 127 static DataTransfer* createDraggingDataTransfer(DataTransferAccessPolicy policy,
DragData* dragData) |
| 128 { | 128 { |
| 129 return DataTransfer::create(DataTransfer::DragAndDrop, policy, dragData->pla
tformData()); | 129 return DataTransfer::create(DataTransfer::DragAndDrop, policy, dragData->pla
tformData()); |
| 130 } | 130 } |
| 131 | 131 |
| 132 DragController::DragController(Page* page) | 132 DragController::DragController(Page* page) |
| (...skipping 864 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 997 | 997 |
| 998 DEFINE_TRACE(DragController) | 998 DEFINE_TRACE(DragController) |
| 999 { | 999 { |
| 1000 visitor->trace(m_page); | 1000 visitor->trace(m_page); |
| 1001 visitor->trace(m_documentUnderMouse); | 1001 visitor->trace(m_documentUnderMouse); |
| 1002 visitor->trace(m_dragInitiator); | 1002 visitor->trace(m_dragInitiator); |
| 1003 visitor->trace(m_fileInputElementUnderMouse); | 1003 visitor->trace(m_fileInputElementUnderMouse); |
| 1004 } | 1004 } |
| 1005 | 1005 |
| 1006 } // namespace blink | 1006 } // namespace blink |
| OLD | NEW |