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

Side by Side Diff: third_party/WebKit/public/web/WebWidgetClient.h

Issue 2475443003: Drag-and-drop: Move startDrag out of WebView/RenderView. (Closed)
Patch Set: 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 unified diff | Download patch
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 15 matching lines...) Expand all
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */ 29 */
30 30
31 #ifndef WebWidgetClient_h 31 #ifndef WebWidgetClient_h
32 #define WebWidgetClient_h 32 #define WebWidgetClient_h
33 33
34 #include "WebNavigationPolicy.h" 34 #include "WebNavigationPolicy.h"
35 #include "public/platform/WebCommon.h" 35 #include "public/platform/WebCommon.h"
36 #include "public/platform/WebDragOperation.h"
36 #include "public/platform/WebLayerTreeView.h" 37 #include "public/platform/WebLayerTreeView.h"
37 #include "public/platform/WebPoint.h" 38 #include "public/platform/WebPoint.h"
38 #include "public/platform/WebRect.h" 39 #include "public/platform/WebRect.h"
39 #include "public/platform/WebScreenInfo.h" 40 #include "public/platform/WebScreenInfo.h"
40 #include "public/web/WebMeaningfulLayout.h" 41 #include "public/web/WebMeaningfulLayout.h"
41 #include "public/web/WebTextDirection.h" 42 #include "public/web/WebTextDirection.h"
42 #include "public/web/WebTouchAction.h" 43 #include "public/web/WebTouchAction.h"
43 44
44 namespace blink { 45 namespace blink {
45 46
47 class WebDragData;
46 class WebGestureEvent; 48 class WebGestureEvent;
49 class WebImage;
50 class WebLocalFrame;
47 class WebNode; 51 class WebNode;
48 class WebString; 52 class WebString;
49 class WebWidget; 53 class WebWidget;
50 struct WebCursorInfo; 54 struct WebCursorInfo;
51 struct WebFloatPoint; 55 struct WebFloatPoint;
52 struct WebFloatRect; 56 struct WebFloatRect;
53 struct WebFloatSize; 57 struct WebFloatSize;
54 struct WebSize; 58 struct WebSize;
55 59
56 class WebWidgetClient { 60 class WebWidgetClient {
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 // TODO(oshima): Update the comment when the migration is completed. 178 // TODO(oshima): Update the comment when the migration is completed.
175 virtual void convertViewportToWindow(WebRect* rect) {} 179 virtual void convertViewportToWindow(WebRect* rect) {}
176 180
177 // Converts the |rect| from the coordinates in native window in 181 // Converts the |rect| from the coordinates in native window in
178 // DIP to Blink's Viewport coordinates. They're identical in 182 // DIP to Blink's Viewport coordinates. They're identical in
179 // tradional world, but will differ when use-zoom-for-dsf feature 183 // tradional world, but will differ when use-zoom-for-dsf feature
180 // is eanbled. TODO(oshima): Update the comment when the 184 // is eanbled. TODO(oshima): Update the comment when the
181 // migration is completed. 185 // migration is completed.
182 virtual void convertWindowToViewport(WebFloatRect* rect) {} 186 virtual void convertWindowToViewport(WebFloatRect* rect) {}
183 187
188 // Called when a drag-n-drop operation should begin.
189 virtual void startDragging(WebLocalFrame*,
dcheng 2016/11/03 21:22:52 Can we move this to WebFrameWidget?
paulmeyer 2016/11/04 19:01:18 As we discussed offline, |frame| no longer plumbed
190 const WebDragData&,
191 WebDragOperationsMask,
192 const WebImage& dragImage,
193 const WebPoint& dragImageOffset) {}
194
184 protected: 195 protected:
185 ~WebWidgetClient() {} 196 ~WebWidgetClient() {}
186 }; 197 };
187 198
188 } // namespace blink 199 } // namespace blink
189 200
190 #endif 201 #endif
OLDNEW
« third_party/WebKit/Source/web/WebViewImpl.h ('K') | « third_party/WebKit/public/web/WebViewClient.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698