Changeset 57028 in webkit
- Timestamp:
- Apr 2, 2010 3:48:06 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 1 deleted
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r57027 r57028 1 2010-04-02 Evan Stade <estade@chromium.org> 2 3 Reviewed by Eric Seidel. 4 5 [chromium] need DragImage implementation 6 https://bugs.webkit.org/show_bug.cgi?id=35811 7 8 Basic implementation using SkBitmap. Transformations are not supported 9 yet. No implementation for mac. 10 11 * WebCore.gyp/WebCore.gyp: 12 * WebCore.gypi: 13 * platform/chromium/DragImageChromium.cpp: 14 * platform/chromium/DragImageRef.h: 15 1 16 2010-04-02 Evan Martin <evan@chromium.org> 2 17 -
trunk/WebCore/WebCore.gyp/WebCore.gyp
r56197 r57028 1065 1065 '../platform/image-decoders/xbm/XBMImageDecoder.cpp', 1066 1066 '../platform/image-decoders/xbm/XBMImageDecoder.h', 1067 1068 # Again, Skia is not used on Mac. 1069 '../platform/chromium/DragImageChromiumSkia.cpp', 1067 1070 ], 1068 1071 'direct_dependent_settings': { -
trunk/WebCore/WebCore.gypi
r57004 r57028 1950 1950 'platform/chromium/DragDataChromium.cpp', 1951 1951 'platform/chromium/DragDataRef.h', 1952 'platform/chromium/DragImageChromium.cpp', 1952 'platform/chromium/DragImageChromiumMac.cpp', 1953 'platform/chromium/DragImageChromiumSkia.cpp', 1953 1954 'platform/chromium/DragImageRef.h', 1954 1955 'platform/chromium/FileChooserChromium.cpp', -
trunk/WebCore/platform/chromium/DragImageRef.h
r39903 r57028 30 30 #define DragImageRef_h 31 31 32 class SkBitmap; 33 32 34 namespace WebCore { 33 35 34 // FIXME: Need to support image drag-n-drop. For now, we just allow things 35 // to compile by defining this dummy type. 36 typedef void* DragImageRef; 36 #if OS(DARWIN) 37 // FIXME: not implemented. 38 typedef void* DragImageRef; 39 #else 40 typedef SkBitmap* DragImageRef; 41 #endif 37 42 38 43 } // namespace WebCore -
trunk/WebKit/chromium/ChangeLog
r57026 r57028 1 2010-04-02 Evan Stade <estade@chromium.org> 2 3 Reviewed by Eric Seidel. 4 5 [chromium] need DragImage implementation 6 https://bugs.webkit.org/show_bug.cgi?id=35811 7 8 Use the DragImageRef that the DragController passes to us. 9 10 * public/WebViewClient.h: 11 (WebKit::WebViewClient::startDragging): 12 * src/DragClientImpl.cpp: 13 (WebKit::DragClientImpl::startDrag): 14 * src/WebViewImpl.cpp: 15 (WebKit::WebViewImpl::startDragging): 16 * src/WebViewImpl.h: 17 1 18 2010-04-02 Rafael Weinstein <rafaelw@chromium.org> 2 19 -
trunk/WebKit/chromium/public/WebViewClient.h
r57014 r57028 49 49 class WebFrame; 50 50 class WebGeolocationService; 51 class WebImage; 51 52 class WebNode; 52 53 class WebNotificationPresenter; … … 225 226 // Called when a drag-n-drop operation should begin. 226 227 virtual void startDragging( 227 const Web Point& from, const WebDragData&, WebDragOperationsMask) { }228 const WebDragData&, WebDragOperationsMask, const WebImage&, const WebPoint&) { } 228 229 229 230 // Called to determine if drag-n-drop operations may initiate a page -
trunk/WebKit/chromium/src/DragClientImpl.cpp
r53296 r57028 31 31 #include "config.h" 32 32 #include "DragClientImpl.h" 33 33 #include "DragImageRef.h" 34 34 #include "ChromiumDataObject.h" 35 35 #include "ClipboardChromium.h" 36 36 #include "Frame.h" 37 #include "NativeImageSkia.h" 38 #include "WebCommon.h" 37 39 #include "WebDragData.h" 40 #include "WebImage.h" 38 41 #include "WebViewClient.h" 39 42 #include "WebViewImpl.h" … … 82 85 DragOperation dragOperationMask = clipboard->sourceOperation(); 83 86 87 IntSize offsetSize(eventPos - dragImageOrigin); 88 WebPoint offsetPoint(offsetSize.width(), offsetSize.height()); 89 #if WEBKIT_USING_SKIA 84 90 m_webView->startDragging( 85 eventPos, dragData, static_cast<WebDragOperationsMask>(dragOperationMask)); 91 dragData, static_cast<WebDragOperationsMask>(dragOperationMask), 92 WebImage(*dragImage), offsetPoint); 93 #else 94 // FIXME: When DragImageRef is implemented for CG, we can probably just remove 95 // this #if fork. For now, pass an empty image. 96 m_webView->startDragging( 97 dragData, static_cast<WebDragOperationsMask>(dragOperationMask), 98 WebImage(), WebPoint()); 99 #endif 86 100 } 87 101 -
trunk/WebKit/chromium/src/WebViewImpl.cpp
r56706 r57028 88 88 #include "WebDragData.h" 89 89 #include "WebFrameImpl.h" 90 #include "WebImage.h" 90 91 #include "WebInputEvent.h" 91 92 #include "WebInputEventConversion.h" … … 1933 1934 } 1934 1935 1935 void WebViewImpl::startDragging(const WebPoint& eventPos, 1936 const WebDragData& dragData, 1937 WebDragOperationsMask mask) 1936 void WebViewImpl::startDragging(const WebDragData& dragData, 1937 WebDragOperationsMask mask, 1938 const WebImage& dragImage, 1939 const WebPoint& dragImageOffset) 1938 1940 { 1939 1941 if (!m_client) … … 1941 1943 ASSERT(!m_doingDragAndDrop); 1942 1944 m_doingDragAndDrop = true; 1943 m_client->startDragging( eventPos, dragData, mask);1945 m_client->startDragging(dragData, mask, dragImage, dragImageOffset); 1944 1946 } 1945 1947 -
trunk/WebKit/chromium/src/WebViewImpl.h
r56603 r57028 75 75 class WebDevToolsAgentPrivate; 76 76 class WebFrameImpl; 77 class WebImage; 77 78 class WebKeyboardEvent; 78 79 class WebMouseEvent; … … 275 276 // Start a system drag and drop operation. 276 277 void startDragging( 277 const WebPoint& eventPos,278 278 const WebDragData& dragData, 279 WebDragOperationsMask dragSourceOperationMask); 279 WebDragOperationsMask mask, 280 const WebImage& dragImage, 281 const WebPoint& dragImageOffset); 280 282 281 283 void suggestionsPopupDidHide()
Note: See TracChangeset
for help on using the changeset viewer.