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

Unified Diff: content/browser/web_contents/web_contents_view_mac.mm

Issue 10824004: [mac] Implement {frame: 'none'} app window on Mac. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: alternative approach Created 8 years, 5 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: content/browser/web_contents/web_contents_view_mac.mm
diff --git a/content/browser/web_contents/web_contents_view_mac.mm b/content/browser/web_contents/web_contents_view_mac.mm
index 023cd506255d7ee7f9cd4fea7c6c7b6b4b5ca405..7c2a0e9bb8a620ae1a3301a2c07da94011e378d7 100644
--- a/content/browser/web_contents/web_contents_view_mac.mm
+++ b/content/browser/web_contents/web_contents_view_mac.mm
@@ -412,6 +412,10 @@ void WebContentsViewMac::CloseTab() {
}
}
+- (void)setMouseDownCanMoveWindow:(BOOL)canMove {
+ mouseDownCanMoveWindow_ = canMove;
+}
+
- (BOOL)mouseDownCanMoveWindow {
// This is needed to prevent mouseDowns from moving the window
// around. The default implementation returns YES only for opaque
@@ -419,7 +423,7 @@ void WebContentsViewMac::CloseTab() {
// its subviews do paint their entire frames. Returning NO here
// saves us the effort of overriding this method in every possible
// subview.
- return NO;
+ return mouseDownCanMoveWindow_;
}
- (void)pasteboard:(NSPasteboard*)sender provideDataForType:(NSString*)type {

Powered by Google App Engine
This is Rietveld 408576698