Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(31)

Unified Diff: content/browser/renderer_host/render_widget_host_view_mac.mm

Issue 1575113002: Implementation for Look Up on Force Touch. If the user force touched a word in the web content the … (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2564
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_mac.h ('k') | ui/base/cocoa/base_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 7c8e1d0b8d2bec1d4dc3e3b92fee7c9e665abede..2537db73be48b6ef4d5ba7fa22cde0026d96cb0d 100644
--- a/content/browser/renderer_host/render_widget_host_view_mac.mm
+++ b/content/browser/renderer_host/render_widget_host_view_mac.mm
@@ -2309,6 +2309,10 @@ void RenderWidgetHostViewMac::OnDisplayMetricsChanged(
[NSCursor setHiddenUntilMouseMoves:YES];
}
+- (void)forceTouchEvent:(NSEvent*)theEvent {
+ [self quickLookWithEvent:theEvent];
+}
+
- (void)shortCircuitScrollWheelEvent:(NSEvent*)event {
DCHECK(base::mac::IsOSLionOrLater());
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_mac.h ('k') | ui/base/cocoa/base_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698