| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google 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 are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * 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 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 705 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 716 dragStatus = WebDragStatusLeave; | 716 dragStatus = WebDragStatusLeave; |
| 717 else if (event->type() == EventTypeNames::dragover) | 717 else if (event->type() == EventTypeNames::dragover) |
| 718 dragStatus = WebDragStatusOver; | 718 dragStatus = WebDragStatusOver; |
| 719 else if (event->type() == EventTypeNames::drop) | 719 else if (event->type() == EventTypeNames::drop) |
| 720 dragStatus = WebDragStatusDrop; | 720 dragStatus = WebDragStatusDrop; |
| 721 | 721 |
| 722 if (dragStatus == WebDragStatusUnknown) | 722 if (dragStatus == WebDragStatusUnknown) |
| 723 return; | 723 return; |
| 724 | 724 |
| 725 Clipboard* clipboard = event->dataTransfer(); | 725 Clipboard* clipboard = event->dataTransfer(); |
| 726 WebDragData dragData = clipboard->dataObject(); | 726 WebDragData dragData(clipboard->dataObject()); |
| 727 WebDragOperationsMask dragOperationMask = static_cast<WebDragOperationsMask>
(clipboard->sourceOperation()); | 727 WebDragOperationsMask dragOperationMask = static_cast<WebDragOperationsMask>
(clipboard->sourceOperation()); |
| 728 WebPoint dragScreenLocation(event->screenX(), event->screenY()); | 728 WebPoint dragScreenLocation(event->screenX(), event->screenY()); |
| 729 WebPoint dragLocation(event->absoluteLocation().x() - location().x(), event-
>absoluteLocation().y() - location().y()); | 729 WebPoint dragLocation(event->absoluteLocation().x() - location().x(), event-
>absoluteLocation().y() - location().y()); |
| 730 | 730 |
| 731 m_webPlugin->handleDragStatusUpdate(dragStatus, dragData, dragOperationMask,
dragLocation, dragScreenLocation); | 731 m_webPlugin->handleDragStatusUpdate(dragStatus, dragData, dragOperationMask,
dragLocation, dragScreenLocation); |
| 732 } | 732 } |
| 733 | 733 |
| 734 void WebPluginContainerImpl::handleWheelEvent(WheelEvent* event) | 734 void WebPluginContainerImpl::handleWheelEvent(WheelEvent* event) |
| 735 { | 735 { |
| 736 WebMouseWheelEventBuilder webEvent(this, m_element->renderer(), *event); | 736 WebMouseWheelEventBuilder webEvent(this, m_element->renderer(), *event); |
| (...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 890 // Take our element and get the clip rect from the enclosing layer and | 890 // Take our element and get the clip rect from the enclosing layer and |
| 891 // frame view. | 891 // frame view. |
| 892 clipRect.intersect( | 892 clipRect.intersect( |
| 893 m_element->document().view()->windowClipRectForFrameOwner(m_element)
); | 893 m_element->document().view()->windowClipRectForFrameOwner(m_element)
); |
| 894 } | 894 } |
| 895 | 895 |
| 896 return clipRect; | 896 return clipRect; |
| 897 } | 897 } |
| 898 | 898 |
| 899 } // namespace blink | 899 } // namespace blink |
| OLD | NEW |