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

Side by Side Diff: third_party/WebKit/Source/web/WebFrameWidgetBase.h

Issue 2655463015: Correctly set dragLeave and dragEnd coords for OOPIF drag and drop (Closed)
Patch Set: Added checks for null RWH on drag end Created 3 years, 10 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 | « content/renderer/render_widget.cc ('k') | third_party/WebKit/Source/web/WebFrameWidgetBase.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 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef WebFrameWidgetBase_h 5 #ifndef WebFrameWidgetBase_h
6 #define WebFrameWidgetBase_h 6 #define WebFrameWidgetBase_h
7 7
8 #include "core/clipboard/DataObject.h" 8 #include "core/clipboard/DataObject.h"
9 #include "public/platform/WebDragData.h" 9 #include "public/platform/WebDragData.h"
10 #include "public/web/WebFrameWidget.h" 10 #include "public/web/WebFrameWidget.h"
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 // WebFrameWidget implementation. 44 // WebFrameWidget implementation.
45 WebDragOperation dragTargetDragEnter(const WebDragData&, 45 WebDragOperation dragTargetDragEnter(const WebDragData&,
46 const WebPoint& pointInViewport, 46 const WebPoint& pointInViewport,
47 const WebPoint& screenPoint, 47 const WebPoint& screenPoint,
48 WebDragOperationsMask operationsAllowed, 48 WebDragOperationsMask operationsAllowed,
49 int modifiers) override; 49 int modifiers) override;
50 WebDragOperation dragTargetDragOver(const WebPoint& pointInViewport, 50 WebDragOperation dragTargetDragOver(const WebPoint& pointInViewport,
51 const WebPoint& screenPoint, 51 const WebPoint& screenPoint,
52 WebDragOperationsMask operationsAllowed, 52 WebDragOperationsMask operationsAllowed,
53 int modifiers) override; 53 int modifiers) override;
54 void dragTargetDragLeave() override; 54 void dragTargetDragLeave(const WebPoint& pointInViewport,
55 const WebPoint& screenPoint) override;
55 void dragTargetDrop(const WebDragData&, 56 void dragTargetDrop(const WebDragData&,
56 const WebPoint& pointInViewport, 57 const WebPoint& pointInViewport,
57 const WebPoint& screenPoint, 58 const WebPoint& screenPoint,
58 int modifiers) override; 59 int modifiers) override;
59 void dragSourceEndedAt(const WebPoint& pointInViewport, 60 void dragSourceEndedAt(const WebPoint& pointInViewport,
60 const WebPoint& screenPoint, 61 const WebPoint& screenPoint,
61 WebDragOperation) override; 62 WebDragOperation) override;
62 void dragSourceSystemDragEnded() override; 63 void dragSourceSystemDragEnded() override;
63 64
64 // Called when a drag-n-drop operation should begin. 65 // Called when a drag-n-drop operation should begin.
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 void cancelDrag(); 110 void cancelDrag();
110 111
111 static bool s_ignoreInputEvents; 112 static bool s_ignoreInputEvents;
112 }; 113 };
113 114
114 DEFINE_TYPE_CASTS(WebFrameWidgetBase, WebFrameWidget, widget, true, true); 115 DEFINE_TYPE_CASTS(WebFrameWidgetBase, WebFrameWidget, widget, true, true);
115 116
116 } // namespace blink 117 } // namespace blink
117 118
118 #endif 119 #endif
OLDNEW
« no previous file with comments | « content/renderer/render_widget.cc ('k') | third_party/WebKit/Source/web/WebFrameWidgetBase.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698