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

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: Address comments. 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
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 0d84c779483eaa2ecd31e9def7cd0b73c4826c8f..2b55cfebcaf1a0c857708649395257a42efc750e 100644
--- a/ui/views/cocoa/bridged_content_view.h
+++ b/ui/views/cocoa/bridged_content_view.h
@@ -35,11 +35,18 @@ class View;
// Whether the view is reacting to a keyDown event on the view.
BOOL inKeyDown_;
+
+ // Whether dragging on the view moves the window.
+ BOOL mouseDownCanMoveWindow_;
}
@property(readonly, nonatomic) views::View* hostedView;
@property(assign, nonatomic) ui::TextInputClient* textInputClient;
+// 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, nonatomic) BOOL mouseDownCanMoveWindow;
+
// Initialize the NSView -> views::View bridge. |viewToHost| must be non-NULL.
- (id)initWithView:(views::View*)viewToHost;

Powered by Google App Engine
This is Rietveld 408576698