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

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

Issue 1747803003: MacViews: Implement Tab Dragging (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Extract DragsWindowUsingCocoaMoveLoop test, cleanup code. 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/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..6b175c21da666251f500e50c9e16a8f765301566 100644
--- a/ui/views/cocoa/bridged_content_view.h
+++ b/ui/views/cocoa/bridged_content_view.h
@@ -17,6 +17,11 @@ 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
@@ -38,6 +43,8 @@ class View;
// Whether the view is reacting to a keyDown event on the view.
BOOL inKeyDown_;
+ BOOL ignoreMouseEvents_;
tapted 2016/03/10 11:51:19 needs a comment
themblsha 2016/03/25 17:22:54 Done. This local instance property wasn't used at
+
// The last tooltip text, used to limit updates.
base::string16 lastTooltipText_;
@@ -54,6 +61,7 @@ class View;
@property(readonly, nonatomic) views::View* hostedView;
@property(assign, nonatomic) ui::TextInputClient* textInputClient;
+@property(assign, nonatomic) BOOL ignoreMouseEvents;
@property(assign, nonatomic) BOOL drawMenuBackgroundForBlur;
// Extends an atomic, readonly property on NSView to make it assignable.

Powered by Google App Engine
This is Rietveld 408576698