Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(289)

Side by Side Diff: Source/web/WebPluginContainerImpl.cpp

Issue 26450004: Cleanup: Adding more conversion helper interfaces. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Source/web/WebFrameImpl.cpp ('k') | Source/web/tests/ChromeClientImplTest.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « Source/web/WebFrameImpl.cpp ('k') | Source/web/tests/ChromeClientImplTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698