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

Unified Diff: ui/base/cocoa/base_view.mm

Issue 1777653002: Prepare ui/ module for compilation with OS X 10.7 deployment target. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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
Index: ui/base/cocoa/base_view.mm
diff --git a/ui/base/cocoa/base_view.mm b/ui/base/cocoa/base_view.mm
index 9642fbe1a81f3b8bf64a6853ab441af32c30194c..a37b049793dd390e2ad266cb2f2db37eab9906e0 100644
--- a/ui/base/cocoa/base_view.mm
+++ b/ui/base/cocoa/base_view.mm
@@ -170,19 +170,6 @@ NSString* kSelectionDirection = @"Chromium.kSelectionDirection";
[super keyUp:theEvent];
}
-- (void)pressureChangeWithEvent:(NSEvent*)theEvent {
- NSInteger newStage = [theEvent stage];
- if (pressureEventStage_ == newStage)
- return;
-
- // Call the force touch event when the stage reaches 2, which is the value
- // for force touch.
- if (newStage == 2) {
- [self forceTouchEvent:theEvent];
Avi (use Gerrit) 2016/03/08 20:07:54 I'm rather uncomfortable here. While it seems like
Avi (use Gerrit) 2016/03/08 20:13:08 OK, I'm really unsure about this. -pressureChangeW
erikchen 2016/03/08 20:57:41 Whoops! Good catch.
- }
- pressureEventStage_ = newStage;
Avi (use Gerrit) 2016/03/08 20:07:54 pressureEventStage_ is only used in this method; i
-}
-
- (void)flagsChanged:(NSEvent*)theEvent {
if ([self keyEvent:theEvent] != kEventHandled)
[super flagsChanged:theEvent];

Powered by Google App Engine
This is Rietveld 408576698