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

Unified Diff: chrome/browser/tab_contents/tab_contents_view_mac.mm

Issue 150104: Converts BaseView to be non-opaque, which will fix drawing of... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 6 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 | « chrome/browser/cocoa/base_view.mm ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/tab_contents/tab_contents_view_mac.mm
===================================================================
--- chrome/browser/tab_contents/tab_contents_view_mac.mm (revision 19556)
+++ chrome/browser/tab_contents/tab_contents_view_mac.mm (working copy)
@@ -261,6 +261,16 @@
}
}
+- (BOOL)mouseDownCanMoveWindow {
+ // This is needed to prevent mouseDowns from moving the window
+ // around. The default implementation returns YES only for opaque
+ // views. TabContentsViewCocoa does not draw itself in any way, but
+ // its subviews do paint their entire frames. Returning NO here
+ // saves us the effort of overriding this method in every possible
+ // subview.
+ return NO;
+}
+
// In the Windows version, we always have cut/copy/paste enabled. This is sub-
// optimal, but we do it too. TODO(avi): Plumb the "can*" methods up from
// WebCore.
« no previous file with comments | « chrome/browser/cocoa/base_view.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698