Index: ui/views/cocoa/bridged_content_view.h |
diff --git a/ui/views/cocoa/bridged_content_view.h b/ui/views/cocoa/bridged_content_view.h |
index f4b6a867cd7c56da72d142f05aa21551bf6a6cc8..4e6ce9df038a102598053fa7ee509bc54a8adcaf 100644 |
--- a/ui/views/cocoa/bridged_content_view.h |
+++ b/ui/views/cocoa/bridged_content_view.h |
@@ -17,6 +17,10 @@ class TextInputClient; |
namespace views { |
class View; |
+ |
+// User data supplied in kCGEventSourceUserData for an event that should be |
+// ignored. |
+enum { kIgnoreEventUserData = 1 }; |
} |
// The NSView that sits as the root contentView of the NSWindow, whilst it has |
@@ -61,6 +65,9 @@ class View; |
// so that BridgedNativeWidget can dynamically enable dragging of the window. |
@property(assign) BOOL mouseDownCanMoveWindow; |
+// When |flag| is YES, will make BridgedContentView ignore all mouse events. |
++ (void)setIgnoreMouseEvents:(BOOL)flag; |
+ |
// Initialize the NSView -> views::View bridge. |viewToHost| must be non-NULL. |
- (id)initWithView:(views::View*)viewToHost; |