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

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

Issue 2507223003: Tests for dragging between two frames (potentially cross-site from main frame). (Closed)
Patch Set: Maybe this is ready for landing? Created 4 years 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
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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 // updating a drag over a target. If we're starting a drag, |isEntering| 81 // updating a drag over a target. If we're starting a drag, |isEntering|
82 // should be true. 82 // should be true.
83 WebDragOperation dragTargetDragEnterOrOver(const WebPoint& pointInViewport, 83 WebDragOperation dragTargetDragEnterOrOver(const WebPoint& pointInViewport,
84 const WebPoint& screenPoint, 84 const WebPoint& screenPoint,
85 DragAction, 85 DragAction,
86 int modifiers); 86 int modifiers);
87 87
88 // Helper function to call VisualViewport::viewportToRootFrame(). 88 // Helper function to call VisualViewport::viewportToRootFrame().
89 WebPoint viewportToRootFrame(const WebPoint& pointInViewport) const; 89 WebPoint viewportToRootFrame(const WebPoint& pointInViewport) const;
90 90
91 // Returns the local root as a LocalFrame*.
92 LocalFrame* localFrameRoot() const;
93
Łukasz Anforowicz 2016/11/30 16:47:38 Ooops. Not sure how it got here. I'll remove in
91 WebViewImpl* view() const; 94 WebViewImpl* view() const;
92 95
93 // Returns the page object associated with this widget. This may be null when 96 // Returns the page object associated with this widget. This may be null when
94 // the page is shutting down, but will be valid at all other times. 97 // the page is shutting down, but will be valid at all other times.
95 Page* page() const; 98 Page* page() const;
96 99
97 // A copy of the web drop data object we received from the browser. 100 // A copy of the web drop data object we received from the browser.
98 Persistent<DataObject> m_currentDragData; 101 Persistent<DataObject> m_currentDragData;
99 102
100 bool m_doingDragAndDrop = false; 103 bool m_doingDragAndDrop = false;
101 104
102 // The available drag operations (copy, move link...) allowed by the source. 105 // The available drag operations (copy, move link...) allowed by the source.
103 WebDragOperation m_operationsAllowed = WebDragOperationNone; 106 WebDragOperation m_operationsAllowed = WebDragOperationNone;
104 107
105 // The current drag operation as negotiated by the source and destination. 108 // The current drag operation as negotiated by the source and destination.
106 // When not equal to DragOperationNone, the drag data can be dropped onto the 109 // When not equal to DragOperationNone, the drag data can be dropped onto the
107 // current drop target in this WebView (the drop target can accept the drop). 110 // current drop target in this WebView (the drop target can accept the drop).
108 WebDragOperation m_dragOperation = WebDragOperationNone; 111 WebDragOperation m_dragOperation = WebDragOperationNone;
109 }; 112 };
110 113
111 DEFINE_TYPE_CASTS(WebFrameWidgetBase, WebFrameWidget, widget, true, true); 114 DEFINE_TYPE_CASTS(WebFrameWidgetBase, WebFrameWidget, widget, true, true);
112 115
113 } // namespace blink 116 } // namespace blink
114 117
115 #endif 118 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698