diff options
author | viettrungluu@chromium.org <viettrungluu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-12 07:28:17 +0000 |
---|---|---|
committer | viettrungluu@chromium.org <viettrungluu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-12 07:28:17 +0000 |
commit | 8050f2a8f3d1d98bc80ab4ccd5266c5bc6d0678f (patch) | |
tree | 8b3eecb5432b1df8582c7154bd65b6037e542916 /chrome/browser/cocoa/floating_bar_backing_view.mm | |
parent | 01dc650e2499dd966e4025a6022cdc6d82087c39 (diff) | |
download | chromium_src-8050f2a8f3d1d98bc80ab4ccd5266c5bc6d0678f.zip chromium_src-8050f2a8f3d1d98bc80ab4ccd5266c5bc6d0678f.tar.gz chromium_src-8050f2a8f3d1d98bc80ab4ccd5266c5bc6d0678f.tar.bz2 |
Mac: move should-double-click-to-minimize code into mac_util.
Also make the fullscreen code do the right thing in theory, even though it
doesn't work and I'll probably shortly remove it.
BUG=none
TEST=Double-clicking on the tab strip should or should not minimize the window according to the system prefs setting; click in the area beside the tabs.
Review URL: http://codereview.chromium.org/859004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@41413 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/cocoa/floating_bar_backing_view.mm')
-rw-r--r-- | chrome/browser/cocoa/floating_bar_backing_view.mm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/chrome/browser/cocoa/floating_bar_backing_view.mm b/chrome/browser/cocoa/floating_bar_backing_view.mm index 3864d76..8df204f 100644 --- a/chrome/browser/cocoa/floating_bar_backing_view.mm +++ b/chrome/browser/cocoa/floating_bar_backing_view.mm @@ -4,6 +4,7 @@ #include "chrome/browser/cocoa/floating_bar_backing_view.h" +#include "base/mac_util.h" #import "chrome/browser/cocoa/browser_frame_view.h" @implementation FloatingBarBackingView @@ -37,7 +38,8 @@ // Eat this too, except that ... - (void)mouseUp:(NSEvent*)event { // a double-click in the blank area should minimize. - if ([event clickCount] == 2) + if ([event clickCount] == 2 && + mac_util::ShouldWindowsMiniaturizeOnDoubleClick()) [[self window] performMiniaturize:self]; } |