Title: [102494] trunk/Source/WebKit2
- Revision
- 102494
- Author
- [email protected]
- Date
- 2011-12-09 17:05:18 -0800 (Fri, 09 Dec 2011)
Log Message
Add WKView implementation for quickLookPreviewItemsAtWindowLocation.
<rdar://problem/10472505>
Reviewed by Dan Bernstein.
* UIProcess/API/mac/WKView.mm:
(-[WKView quickLookPreviewItemsAtWindowLocation:]):
Modified Paths
Diff
Modified: trunk/Source/WebKit2/ChangeLog (102493 => 102494)
--- trunk/Source/WebKit2/ChangeLog 2011-12-10 01:01:12 UTC (rev 102493)
+++ trunk/Source/WebKit2/ChangeLog 2011-12-10 01:05:18 UTC (rev 102494)
@@ -1,3 +1,13 @@
+2011-12-09 Sam Weinig <[email protected]>
+
+ Add WKView implementation for quickLookPreviewItemsAtWindowLocation.
+ <rdar://problem/10472505>
+
+ Reviewed by Dan Bernstein.
+
+ * UIProcess/API/mac/WKView.mm:
+ (-[WKView quickLookPreviewItemsAtWindowLocation:]):
+
2011-12-09 Allan Sandfeld Jensen <[email protected]>
[Qt] Open shared memory files with shm_open.
Modified: trunk/Source/WebKit2/UIProcess/API/mac/WKView.mm (102493 => 102494)
--- trunk/Source/WebKit2/UIProcess/API/mac/WKView.mm 2011-12-10 01:01:12 UTC (rev 102493)
+++ trunk/Source/WebKit2/UIProcess/API/mac/WKView.mm 2011-12-10 01:05:18 UTC (rev 102494)
@@ -2098,6 +2098,14 @@
return NO;
}
+#if !defined(BUILDING_ON_SNOW_LEOPARD) && !defined(BUILDING_ON_LION)
+- (void)quickLookPreviewItemsAtWindowLocation:(NSPoint)location
+{
+ NSPoint locationInViewCoordinates = [self convertPoint:location fromView:nil];
+ _data->_page->performDictionaryLookupAtLocation(FloatPoint(locationInViewCoordinates.x, locationInViewCoordinates.y));
+}
+#endif
+
@end
@implementation WKView (Internal)
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes