Index: content/browser/renderer_host/render_widget_host_view_mac.mm |
diff --git a/content/browser/renderer_host/render_widget_host_view_mac.mm b/content/browser/renderer_host/render_widget_host_view_mac.mm |
index f4925cef60bd1043fc954e3e87314bfbd9f1e678..9500038092b8c8630da89909a8f4d2ae95452169 100644 |
--- a/content/browser/renderer_host/render_widget_host_view_mac.mm |
+++ b/content/browser/renderer_host/render_widget_host_view_mac.mm |
@@ -2355,9 +2355,10 @@ |
} |
} |
-- (void)showLookUpDictionaryOverlayAtPoint:(NSPoint)point { |
- // The PDF plugin does not support getting the attributed string at point. |
- // TODO: support GetStringAtPoint() for PDF. See crbug.com/152438. |
+// This is invoked only on 10.8 or newer when the user taps a word using |
+// three fingers. |
+- (void)quickLookWithEvent:(NSEvent*)event { |
+ NSPoint point = [self convertPoint:[event locationInWindow] fromView:nil]; |
TextInputClientMac::GetInstance()->GetStringAtPoint( |
renderWidgetHostView_->render_widget_host_, |
gfx::Point(point.x, NSHeight([self frame]) - point.y), |
@@ -2370,13 +2371,6 @@ |
} |
} |
); |
-} |
- |
-// This is invoked only on 10.8 or newer when the user taps a word using |
-// three fingers. |
-- (void)quickLookWithEvent:(NSEvent*)event { |
- NSPoint point = [self convertPoint:[event locationInWindow] fromView:nil]; |
- [self showLookUpDictionaryOverlayAtPoint:point]; |
} |
// This method handles 2 different types of hardware events. |