Changeset 86717 in webkit
- Timestamp:
- May 17, 2011 4:15:06 PM (13 years ago)
- Location:
- trunk/Source/WebKit2
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit2/ChangeLog
r86714 r86717 1 2011-05-17 Brian Weinstein <bweinstein@apple.com> 2 3 Reviewed by Adam Roben. 4 5 WebKit2: Needs API to set a custom drop target 6 https://bugs.webkit.org/show_bug.cgi?id=60991 7 <rdar://problem/9090868> 8 9 Add API to set a custom drop target on a WKView. 10 11 * UIProcess/API/C/win/WKView.cpp: 12 (WKViewSetCustomDropTarget): Call through to WebView::setCustomDropTarget. 13 * UIProcess/API/C/win/WKView.h: 14 * UIProcess/win/WebView.cpp: 15 (WebKit::WebView::setCustomDropTarget): Revoke the current drop target, and register the 16 custom one. 17 * UIProcess/win/WebView.h: 18 1 19 2011-05-17 Sam Weinig <sam@webkit.org> 2 20 -
trunk/Source/WebKit2/UIProcess/API/C/win/WKView.cpp
r86183 r86717 120 120 } 121 121 122 void WKViewSetCustomDropTarget(WKViewRef viewRef, IDropTarget* dropTarget) 123 { 124 return toImpl(viewRef)->setCustomDropTarget(dropTarget); 125 } 126 -
trunk/Source/WebKit2/UIProcess/API/C/win/WKView.h
r86183 r86717 84 84 WK_EXPORT bool WKViewDrawsTransparentBackground(WKViewRef view); 85 85 86 WK_EXPORT void WKViewSetCustomDropTarget(WKViewRef view, IDropTarget*); 87 86 88 #ifdef __cplusplus 87 89 } -
trunk/Source/WebKit2/UIProcess/win/WebView.cpp
r86183 r86717 1122 1122 } 1123 1123 1124 void WebView::setCustomDropTarget(IDropTarget* dropTarget) 1125 { 1126 if (!m_page->isValid() || !m_window) 1127 return; 1128 1129 ::RevokeDragDrop(m_window); 1130 1131 if (dropTarget) 1132 ::RegisterDragDrop(m_window, dropTarget); 1133 else 1134 ::RegisterDragDrop(m_window, this); 1135 } 1136 1124 1137 FloatRect WebView::convertToDeviceSpace(const FloatRect& rect) 1125 1138 { -
trunk/Source/WebKit2/UIProcess/win/WebView.h
r86183 r86717 89 89 void reapplyEditCommand(WebEditCommandProxy*); 90 90 void unapplyEditCommand(WebEditCommandProxy*); 91 92 void setCustomDropTarget(IDropTarget*); 91 93 92 94 // IUnknown
Note: See TracChangeset
for help on using the changeset viewer.