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

Unified Diff: ui/views/cocoa/bridged_content_view.mm

Issue 2587833002: MacViews: Perform word lookup on force touch. (Closed)
Patch Set: Created 4 years 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/cocoa/bridged_content_view.mm
diff --git a/ui/views/cocoa/bridged_content_view.mm b/ui/views/cocoa/bridged_content_view.mm
index d1df25251c718fc27151643c891160406a6f233b..cbb4727d0fa6447a602e0b2976bb51186e7ef97f 100644
--- a/ui/views/cocoa/bridged_content_view.mm
+++ b/ui/views/cocoa/bridged_content_view.mm
@@ -618,6 +618,11 @@ - (void)mouseEvent:(NSEvent*)theEvent {
hostedView_->GetWidget()->OnMouseEvent(&event);
}
+- (void)forceTouchEvent:(NSEvent*)theEvent {
+ // Perform word lookup on force touch.
tapted 2016/12/19 04:04:33 The comment probably isn't necessary, but I think
karandeepb 2016/12/19 04:28:20 Oh yeah, thanks for catching this.
+ [self quickLookWithEvent:theEvent];
+}
+
// NSView implementation.
- (BOOL)acceptsFirstResponder {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698