Rename quickLookPreviewItemsAtWindowLocation: to quickLookWithEvent:
authorweinig@apple.com <weinig@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 18 Jan 2012 02:18:28 +0000 (02:18 +0000)
committerweinig@apple.com <weinig@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 18 Jan 2012 02:18:28 +0000 (02:18 +0000)
<rdar://problem/10688913>

Reviewed by Anders Carlsson.

* UIProcess/API/mac/WKView.mm:
(-[WKView quickLookWithEvent:]):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@105227 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebKit2/ChangeLog
Source/WebKit2/UIProcess/API/mac/WKView.mm

index c3b72a0..2c481d6 100644 (file)
@@ -1,5 +1,15 @@
 2012-01-17  Sam Weinig  <sam@webkit.org>
 
+        Rename quickLookPreviewItemsAtWindowLocation: to quickLookWithEvent:
+        <rdar://problem/10688913>
+
+        Reviewed by Anders Carlsson.
+
+        * UIProcess/API/mac/WKView.mm:
+        (-[WKView quickLookWithEvent:]):
+
+2012-01-17  Sam Weinig  <sam@webkit.org>
+
         Add helper macro for forward declaring objective-c classes
         https://bugs.webkit.org/show_bug.cgi?id=76485
 
index f53a694..1d8709d 100644 (file)
@@ -2141,9 +2141,9 @@ static void drawPageBackground(CGContextRef context, WebPageProxy* page, const I
 }
 
 #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