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

Issue 259023: [Mac] Window titles for Expose. (Closed)

Created:
11 years, 2 months ago by Scott Hess - ex-Googler
Modified:
9 years, 6 months ago
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

[Mac] Window titles for Expose. http://crbug.com/18854 TEST=Titles on mouse-over in Expose. No extra title in titlebar.

Patch Set 1 #

Total comments: 3

Patch Set 2 : Only apply to popups. Make more l33t. #

Patch Set 3 : Oops, drop the NoDrawCell. #

Patch Set 4 : Actually read TVL's comment. #

Total comments: 7

Patch Set 5 : Unit tests and plumbing. #

Patch Set 6 : One last comment change. #

Total comments: 2

Patch Set 7 : Refactor to share NSApp init boilerplate. #

Patch Set 8 : Split out CocoaNoWindowTestHelper and use it. #

Patch Set 9 : Fix unit_test expectations for Release. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+219 lines, -43 lines) Patch
M chrome/browser/cocoa/browser_window.h View 1 2 3 4 1 chunk +0 lines, -20 lines 0 comments Download
M chrome/browser/cocoa/browser_window_cocoa.mm View 1 2 3 4 5 6 7 1 chunk +1 line, -11 lines 0 comments Download
M chrome/browser/cocoa/browser_window_controller.h View 5 6 7 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/cocoa/browser_window_controller.mm View 2 3 4 5 6 7 8 3 chunks +7 lines, -1 line 0 comments Download
A chrome/browser/cocoa/chrome_browser_window.h View 5 1 chunk +36 lines, -0 lines 0 comments Download
A + chrome/browser/cocoa/chrome_browser_window.mm View 5 6 7 8 2 chunks +9 lines, -1 line 0 comments Download
A chrome/browser/cocoa/chrome_browser_window_unittest.mm View 5 6 7 8 1 chunk +145 lines, -0 lines 0 comments Download
M chrome/browser/cocoa/cocoa_test_helper.h View 7 8 2 chunks +16 lines, -7 lines 0 comments Download
M chrome/chrome.gyp View 5 6 7 8 2 chunks +3 lines, -2 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
Scott Hess - ex-Googler
Last night was noodling with faking events, and feeling frisky, I looked at this. On ...
11 years, 2 months ago (2009-10-02 21:04:40 UTC) #1
TVL
I think you only want to replace the cell for non popup windows. popups should ...
11 years, 2 months ago (2009-10-02 21:08:27 UTC) #2
TVL
http://codereview.chromium.org/259023/diff/1/4 File chrome/browser/cocoa/browser_window_cocoa.mm (right): http://codereview.chromium.org/259023/diff/1/4#newcode109 Line 109: [NSApp changeWindowsItem:window_ title:newTitle filename:NO]; this and the one ...
11 years, 2 months ago (2009-10-02 21:11:19 UTC) #3
pink (ping after 24hrs)
I don't think this is really that skanky. I don't have any problem with the ...
11 years, 2 months ago (2009-10-02 21:13:12 UTC) #4
Mark Mentovai
http://codereview.chromium.org/259023/diff/1/3 File chrome/browser/cocoa/browser_window.mm (right): http://codereview.chromium.org/259023/diff/1/3#newcode52 Line 52: - (id)_customTitleCell { This isn't really so bad.
11 years, 2 months ago (2009-10-02 21:15:27 UTC) #5
Scott Hess - ex-Googler
My prior hack was 23% less l33t than it could have been. Sigh. In modifying ...
11 years, 2 months ago (2009-10-02 22:46:32 UTC) #6
John Grabowski
LGTM with minor things addressed. I <3 unit tests but even I think this is ...
11 years, 2 months ago (2009-10-02 23:18:10 UTC) #7
Scott Hess - ex-Googler
http://codereview.chromium.org/259023/diff/5006/18 File chrome/browser/cocoa/browser_window_controller.mm (right): http://codereview.chromium.org/259023/diff/5006/18#newcode1229 Line 1229: if ([window_ respondsToSelector:@selector(setShouldHideTitle:)]) { On 2009/10/02 23:18:10, John ...
11 years, 2 months ago (2009-10-02 23:23:15 UTC) #8
Nico
Sweet! How did you find this?
11 years, 2 months ago (2009-10-04 03:47:11 UTC) #9
Scott Hess - ex-Googler
On 2009/10/04 03:47:11, Nico wrote: > Sweet! How did you find this? NSObjCMessageLoggingEnabled=YES plus class-dump. ...
11 years, 2 months ago (2009-10-05 20:56:48 UTC) #10
Scott Hess - ex-Googler
Fear my unit tests! http://codereview.chromium.org/259023/diff/5006/15 File chrome/browser/cocoa/browser_window.h (right): http://codereview.chromium.org/259023/diff/5006/15#newcode15 Line 15: BOOL shouldHideTitle_; On 2009/10/02 ...
11 years, 2 months ago (2009-10-06 18:16:16 UTC) #11
John Grabowski
I DO fear your unit tests! But I like to be scared so it's fine. ...
11 years, 2 months ago (2009-10-06 18:24:41 UTC) #12
Scott Hess - ex-Googler
http://codereview.chromium.org/259023/diff/1019/1027 File chrome/browser/cocoa/chrome_browser_window_unittest.mm (right): http://codereview.chromium.org/259023/diff/1019/1027#newcode31 Line 31: class ChromeBrowserWindowTest : public PlatformTest { On 2009/10/06 ...
11 years, 2 months ago (2009-10-06 18:59:44 UTC) #13
John Grabowski
Hmm. Not sure you can pass in a custom window since CocoaTestHelper calls [NSApplication sharedApplication] ...
11 years, 2 months ago (2009-10-06 19:06:22 UTC) #14
Scott Hess - ex-Googler
How about a CocoaNoWindowTestHelper class which pulls up the shared constructor, which CocoaTestHelper inherits from ...
11 years, 2 months ago (2009-10-06 19:21:36 UTC) #15
John Grabowski
SGTM On Tue, Oct 6, 2009 at 12:15 PM, Scott Hess <shess@chromium.org> wrote: > How ...
11 years, 2 months ago (2009-10-06 19:46:12 UTC) #16
Scott Hess - ex-Googler
OK, I pulled the code out where I could share it. I tried to make ...
11 years, 2 months ago (2009-10-07 17:59:14 UTC) #17
John Grabowski
11 years, 2 months ago (2009-10-07 18:07:00 UTC) #18
LGTM++

Powered by Google App Engine
This is Rietveld 408576698