Chromium Code Reviews| 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]; |