Title: [105227] trunk/Source/WebKit2
- Revision
- 105227
- Author
- [email protected]
- Date
- 2012-01-17 18:18:28 -0800 (Tue, 17 Jan 2012)
Log Message
Rename quickLookPreviewItemsAtWindowLocation: to quickLookWithEvent:
<rdar://problem/10688913>
Reviewed by Anders Carlsson.
* UIProcess/API/mac/WKView.mm:
(-[WKView quickLookWithEvent:]):
Modified Paths
Diff
Modified: trunk/Source/WebKit2/ChangeLog (105226 => 105227)
--- trunk/Source/WebKit2/ChangeLog 2012-01-18 02:06:42 UTC (rev 105226)
+++ trunk/Source/WebKit2/ChangeLog 2012-01-18 02:18:28 UTC (rev 105227)
@@ -1,5 +1,15 @@
2012-01-17 Sam Weinig <[email protected]>
+ Rename quickLookPreviewItemsAtWindowLocation: to quickLookWithEvent:
+ <rdar://problem/10688913>
+
+ Reviewed by Anders Carlsson.
+
+ * UIProcess/API/mac/WKView.mm:
+ (-[WKView quickLookWithEvent:]):
+
+2012-01-17 Sam Weinig <[email protected]>
+
Add helper macro for forward declaring objective-c classes
https://bugs.webkit.org/show_bug.cgi?id=76485
Modified: trunk/Source/WebKit2/UIProcess/API/mac/WKView.mm (105226 => 105227)
--- trunk/Source/WebKit2/UIProcess/API/mac/WKView.mm 2012-01-18 02:06:42 UTC (rev 105226)
+++ trunk/Source/WebKit2/UIProcess/API/mac/WKView.mm 2012-01-18 02:18:28 UTC (rev 105227)
@@ -2141,9 +2141,9 @@
}
#if !defined(BUILDING_ON_SNOW_LEOPARD) && !defined(BUILDING_ON_LION)
-- (void)quickLookPreviewItemsAtWindowLocation:(NSPoint)location
+- (void)quickLookWithEvent:(NSEvent *)event
{
- NSPoint locationInViewCoordinates = [self convertPoint:location fromView:nil];
+ NSPoint locationInViewCoordinates = [self convertPoint:[event locationInWindow] fromView:nil];
_data->_page->performDictionaryLookupAtLocation(FloatPoint(locationInViewCoordinates.x, locationInViewCoordinates.y));
}
#endif
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes