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

Unified Diff: third_party/WebKit/Source/web/WebViewImpl.cpp

Issue 2501213002: Drag-and-drop: dragSourceEndedAt, dragSourceSystemDragEnded (Closed)
Patch Set: Rebased. Added check for !GetWebWidget(). Created 4 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/web/WebViewImpl.cpp
diff --git a/third_party/WebKit/Source/web/WebViewImpl.cpp b/third_party/WebKit/Source/web/WebViewImpl.cpp
index 0507cdaf6917eda68b8747449b832609c2552f12..bc2e404e7a9fe61a87eef3bcea5315f49c4674a2 100644
--- a/third_party/WebKit/Source/web/WebViewImpl.cpp
+++ b/third_party/WebKit/Source/web/WebViewImpl.cpp
@@ -3400,30 +3400,6 @@ HitTestResult WebViewImpl::coreHitTestResultAt(
return hitTestResultForRootFramePos(pointInRootFrame);
}
-void WebViewImpl::dragSourceEndedAt(const WebPoint& pointInViewport,
- const WebPoint& screenPoint,
- WebDragOperation operation) {
- WebPoint pointInRootFrame(
- page()->frameHost().visualViewport().viewportToRootFrame(
- pointInViewport));
- PlatformMouseEvent pme(
- pointInRootFrame, screenPoint, WebPointerProperties::Button::Left,
- PlatformEvent::MouseMoved, 0, PlatformEvent::NoModifiers,
- PlatformMouseEvent::RealOrIndistinguishable,
- WTF::monotonicallyIncreasingTime());
- m_page->deprecatedLocalMainFrame()->eventHandler().dragSourceEndedAt(
- pme, static_cast<DragOperation>(operation));
-}
-
-void WebViewImpl::dragSourceSystemDragEnded() {
- // It's possible for us to get this callback while not doing a drag if
- // it's from a previous page that got unloaded.
- if (m_doingDragAndDrop) {
- m_page->dragController().dragEnded();
- m_doingDragAndDrop = false;
- }
-}
-
void WebViewImpl::spellingMarkers(WebVector<uint32_t>* markers) {
Vector<uint32_t> result;
for (Frame* frame = m_page->mainFrame(); frame;

Powered by Google App Engine
This is Rietveld 408576698