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

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

Issue 1528153004: Look Up on Force Touch (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
Index: ui/base/cocoa/base_view.h
diff --git a/ui/base/cocoa/base_view.h b/ui/base/cocoa/base_view.h
index 642ada2011d0812a58ed8c8ace2895b803b850cf..0675caeae632e96c577ef8b17c98af441be57355 100644
--- a/ui/base/cocoa/base_view.h
+++ b/ui/base/cocoa/base_view.h
@@ -8,6 +8,7 @@
#import <Cocoa/Cocoa.h>
#include "base/mac/scoped_nsobject.h"
+#include "base/mac/sdk_forward_declarations.h"
#import "ui/base/cocoa/tracking_area.h"
#include "ui/base/ui_base_export.h"
#include "ui/gfx/geometry/rect.h"
@@ -28,15 +29,19 @@ UI_BASE_EXPORT
ui::ScopedCrTrackingArea trackingArea_;
BOOL dragging_;
base::scoped_nsobject<NSEvent> pendingExitEvent_;
+ NSInteger pressureEventStage_;
}
-// Override these methods (mouseEvent, keyEvent) in a subclass.
+// Override these methods (mouseEvent, keyEvent, forceTouchEvent) in a
+// subclass.
- (void)mouseEvent:(NSEvent *)theEvent;
// keyEvent should return kEventHandled if it handled the event, or
// kEventNotHandled if it should be forwarded to BaseView's super class.
- (EventHandled)keyEvent:(NSEvent *)theEvent;
+- (void)forceTouchEvent:(NSEvent*)theEvent;
+
// Useful rect conversions (doing coordinate flipping)
- (gfx::Rect)flipNSRectToRect:(NSRect)rect;
- (NSRect)flipRectToNSRect:(gfx::Rect)rect;

Powered by Google App Engine
This is Rietveld 408576698