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

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

Issue 1259913003: MacViews: Implement Tab Dragging (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@20150529-ViewsBrowser-DisableCertificateDialog
Patch Set: update comments, still a TODO Created 5 years, 4 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
« no previous file with comments | « ui/events/cocoa/events_mac.mm ('k') | ui/views/cocoa/bridged_content_view.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 49b41dca21cc7ed1d2809c6fd304a3da47d6f645..c0c6b362aaa48e16a6f413fde79b56dddf915ce1 100644
--- a/ui/views/cocoa/bridged_content_view.h
+++ b/ui/views/cocoa/bridged_content_view.h
@@ -16,9 +16,16 @@ 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
// a views::RootView present. Bridges requests from Cocoa to the hosted
// views::View.
@@ -38,6 +45,8 @@ class View;
// Whether the view is reacting to a keyDown event on the view.
BOOL inKeyDown_;
+ BOOL ignoreMouseEvents_;
+
// The last tooltip text, used to limit updates.
base::string16 lastTooltipText_;
@@ -47,6 +56,7 @@ class View;
@property(readonly, nonatomic) views::View* hostedView;
@property(assign, nonatomic) ui::TextInputClient* textInputClient;
+@property(assign, nonatomic) BOOL ignoreMouseEvents;
// Extends an atomic, readonly property on NSView to make it assignable.
// This usually returns YES if the view is transparent. We want to control it
« no previous file with comments | « ui/events/cocoa/events_mac.mm ('k') | ui/views/cocoa/bridged_content_view.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698