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

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

Issue 1146873002: [MacViews] Enable dragging a window by its caption/draggable areas. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Sync and rebase Created 5 years, 7 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/base/ui_base.gyp ('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 969af9975a1997862949dffe3a31086e7527e380..49b41dca21cc7ed1d2809c6fd304a3da47d6f645 100644
--- a/ui/views/cocoa/bridged_content_view.h
+++ b/ui/views/cocoa/bridged_content_view.h
@@ -40,11 +40,19 @@ class View;
// The last tooltip text, used to limit updates.
base::string16 lastTooltipText_;
+
+ // Whether dragging on the view moves the window.
+ BOOL mouseDownCanMoveWindow_;
}
@property(readonly, nonatomic) views::View* hostedView;
@property(assign, nonatomic) ui::TextInputClient* textInputClient;
+// 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
+// so that BridgedNativeWidget can dynamically enable dragging of the window.
+@property(assign) BOOL mouseDownCanMoveWindow;
+
// Initialize the NSView -> views::View bridge. |viewToHost| must be non-NULL.
- (id)initWithView:(views::View*)viewToHost;
« no previous file with comments | « ui/base/ui_base.gyp ('k') | ui/views/cocoa/bridged_content_view.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698