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

Issue 159062: Make double-clicking on the tab strip minimize (i.e., "miniaturize") the... (Closed)

Created:
11 years, 5 months ago by viettrungluu-gmail
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com, John Grabowski, Ben Goodger (Google)
Visibility:
Public.

Description

Make double-clicking on the tab strip minimize (i.e., "miniaturize") the window on Mac. This entails three things: - getting rid of the hitTest()-hack in TabStripView (which fixed bug 12505); - capturing mouse-up events (and looking for double-clicks); and - making TabStripView accept first mouse (to fix bug 12505 again). A kludge is needed to prevent double-clicks on, e.g., the zoom button from causing a minimize. (The hard-coded timestamp-based kludge was chosen as the least of all evils, though perhaps there's a better way to do this. A button-hit-test kludge was considered, but this is hard, since hitting the zoom button the first time may cause the window to move!) Patch set 2: Properly "flashes" minimize button (by using -performMiniaturize instead of -miniaturize). Also checks user preferences as to whether double-clicks on title bars should minimize. Updated variable/member names to comply with style guide for Obj-C/Cocoa code. Patch set 3: Use the undocumented method +[NSWindow _shouldMiniaturizeOnDoubleClick] (but run-time check and DCHECK() its existence), instead of an undocumented user pref key. BUG=12286 TEST=none

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 6

Patch Set 4 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+49 lines, -13 lines) Patch
M chrome/browser/cocoa/tab_strip_view.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/cocoa/tab_strip_view.mm View 1 2 3 2 chunks +47 lines, -13 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
Nico
I don't like this patch: In my eyes, being able to minimize by clicking the ...
11 years, 5 months ago (2009-07-19 17:33:32 UTC) #1
viettrungluu-gmail
On 2009/07/19 17:33:32, thakis wrote: > I don't like this patch: In my eyes, being ...
11 years, 5 months ago (2009-07-19 19:40:20 UTC) #2
viettrungluu-gmail
Patch set 2 fixes all aforementioned issues, except for the fact that it's a hack ...
11 years, 5 months ago (2009-07-20 02:19:37 UTC) #3
viettrungluu-gmail
(Following up on discussion with thakis and pinkerton on #chromium.) Here are the gory details ...
11 years, 5 months ago (2009-07-22 00:36:18 UTC) #4
pink (ping after 24hrs)
Ok, I think you've convinced me that the tab strip needs to be the one ...
11 years, 5 months ago (2009-07-22 12:11:57 UTC) #5
Nico
LGTM from me, too. Looks like this is the best we can do. Thanks for ...
11 years, 5 months ago (2009-07-22 18:25:54 UTC) #6
pink (ping after 24hrs)
Mostly LGTM but there's a bunch of style/grammar stuff to fix up first. http://codereview.chromium.org/159062/diff/11/12 File ...
11 years, 5 months ago (2009-07-22 18:55:24 UTC) #7
viettrungluu-gmail
On 2009/07/22 18:55:24, pink wrote: > File chrome/browser/cocoa/tab_strip_view.mm (right): > Line 6: #include "base/logging.h" > ...
11 years, 5 months ago (2009-07-22 19:16:40 UTC) #8
pink (ping after 24hrs)
11 years, 5 months ago (2009-07-22 19:42:49 UTC) #9
pushed as r21308

Powered by Google App Engine
This is Rietveld 408576698