| 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 684 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 695 WebCursorInfo cursorInfo; | 695 WebCursorInfo cursorInfo; |
| 696 if (m_webPlugin->handleInputEvent(webEvent, cursorInfo)) | 696 if (m_webPlugin->handleInputEvent(webEvent, cursorInfo)) |
| 697 event->setDefaultHandled(); | 697 event->setDefaultHandled(); |
| 698 | 698 |
| 699 // A windowless plugin can change the cursor in response to a mouse move | 699 // A windowless plugin can change the cursor in response to a mouse move |
| 700 // event. We need to reflect the changed cursor in the frame view as the | 700 // event. We need to reflect the changed cursor in the frame view as the |
| 701 // mouse is moved in the boundaries of the windowless plugin. | 701 // mouse is moved in the boundaries of the windowless plugin. |
| 702 Page* page = parentView->frame().page(); | 702 Page* page = parentView->frame().page(); |
| 703 if (!page) | 703 if (!page) |
| 704 return; | 704 return; |
| 705 ChromeClientImpl* chromeClient = static_cast<ChromeClientImpl*>(&page->chrom
e().client()); | 705 ChromeClientImpl* chromeClient = toChromeClientImpl(page->chrome().client())
; |
| 706 chromeClient->setCursorForPlugin(cursorInfo); | 706 chromeClient->setCursorForPlugin(cursorInfo); |
| 707 } | 707 } |
| 708 | 708 |
| 709 void WebPluginContainerImpl::handleDragEvent(MouseEvent* event) | 709 void WebPluginContainerImpl::handleDragEvent(MouseEvent* event) |
| 710 { | 710 { |
| 711 ASSERT(event->isDragEvent()); | 711 ASSERT(event->isDragEvent()); |
| 712 | 712 |
| 713 WebDragStatus dragStatus = WebDragStatusUnknown; | 713 WebDragStatus dragStatus = WebDragStatusUnknown; |
| 714 if (event->type() == EventNames::dragenter) | 714 if (event->type() == EventNames::dragenter) |
| 715 dragStatus = WebDragStatusEnter; | 715 dragStatus = WebDragStatusEnter; |
| (...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 891 // Take our element and get the clip rect from the enclosing layer and | 891 // Take our element and get the clip rect from the enclosing layer and |
| 892 // frame view. | 892 // frame view. |
| 893 clipRect.intersect( | 893 clipRect.intersect( |
| 894 m_element->document().view()->windowClipRectForFrameOwner(m_element,
true)); | 894 m_element->document().view()->windowClipRectForFrameOwner(m_element,
true)); |
| 895 } | 895 } |
| 896 | 896 |
| 897 return clipRect; | 897 return clipRect; |
| 898 } | 898 } |
| 899 | 899 |
| 900 } // namespace WebKit | 900 } // namespace WebKit |
| OLD | NEW |