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

Issue 536086: Mac: Save/restore task manager window pos and size. (Closed)

Created:
10 years, 11 months ago by Nico
Modified:
10 years, 11 months ago
Reviewers:
Robert Sesek
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Mac: Save/restore task manager window pos and size. Make window size remembering mechanism easier to use and more compatible with windows's chrome profiles. Nib changes: Unset "show at startup" so that the initial repositioning isn't visible. BUG=32147 TEST=Move & size taskman window, quit chrome, reopen chrome. Size & pos should've stayed. Same for keyword editor. Page info dialog should behave as it did before. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=36557

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : register #

Patch Set 4 : '' #

Patch Set 5 : '' #

Patch Set 6 : size #

Patch Set 7 : unset "visible at startup" in nib #

Patch Set 8 : Done? #

Patch Set 9 : forgot to git add a few files 9_9 #

Total comments: 13

Patch Set 10 : comments #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+394 lines, -775 lines) Patch
M chrome/app/nibs/KeywordEditor.xib View 23 chunks +45 lines, -567 lines 0 comments Download
M chrome/app/nibs/PageInfo.xib View 3 chunks +6 lines, -13 lines 0 comments Download
M chrome/app/nibs/TaskManager.xib View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/browser_prefs.cc View 3 4 2 chunks +1 line, -10 lines 0 comments Download
M chrome/browser/cocoa/keyword_editor_cocoa_controller.h View 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/cocoa/keyword_editor_cocoa_controller.mm View 4 chunks +9 lines, -18 lines 0 comments Download
D chrome/browser/cocoa/nswindow_local_state.h View 6 7 1 chunk +0 lines, -21 lines 0 comments Download
D chrome/browser/cocoa/nswindow_local_state.mm View 6 7 1 chunk +0 lines, -37 lines 0 comments Download
D chrome/browser/cocoa/nswindow_local_state_unittest.mm View 1 chunk +0 lines, -71 lines 0 comments Download
M chrome/browser/cocoa/page_info_window_controller.h View 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/cocoa/page_info_window_controller.mm View 3 chunks +14 lines, -21 lines 0 comments Download
M chrome/browser/cocoa/task_manager_mac.h View 6 7 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/cocoa/task_manager_mac.mm View 1 2 3 4 5 6 7 3 chunks +11 lines, -12 lines 0 comments Download
A chrome/browser/cocoa/window_size_autosaver.h View 9 1 chunk +42 lines, -0 lines 1 comment Download
A chrome/browser/cocoa/window_size_autosaver.mm View 1 chunk +95 lines, -0 lines 0 comments Download
A chrome/browser/cocoa/window_size_autosaver_unittest.mm View 1 chunk +157 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/chrome_tests.gypi View 2 chunks +1 line, -1 line 0 comments Download

Messages

Total messages: 4 (0 generated)
Nico
10 years, 11 months ago (2010-01-19 07:25:08 UTC) #1
Robert Sesek
http://codereview.chromium.org/536086/diff/6003/6004 File chrome/app/nibs/KeywordEditor.xib (right): http://codereview.chromium.org/536086/diff/6003/6004#newcode45 chrome/app/nibs/KeywordEditor.xib:45: <string key="NSWindowContentMaxSize">{3.40282e+38, 3.40282e+38}</string> It looks like you only changed ...
10 years, 11 months ago (2010-01-19 16:00:03 UTC) #2
Nico
http://codereview.chromium.org/536086/diff/6003/6004 File chrome/app/nibs/KeywordEditor.xib (right): http://codereview.chromium.org/536086/diff/6003/6004#newcode45 chrome/app/nibs/KeywordEditor.xib:45: <string key="NSWindowContentMaxSize">{3.40282e+38, 3.40282e+38}</string> On 2010/01/19 16:00:03, rsesek wrote: > ...
10 years, 11 months ago (2010-01-19 21:32:49 UTC) #3
Robert Sesek
10 years, 11 months ago (2010-01-19 21:51:12 UTC) #4
LGTM, provided a Mac trybot goes green.

http://codereview.chromium.org/536086/diff/6003/6004
File chrome/app/nibs/KeywordEditor.xib (right):

http://codereview.chromium.org/536086/diff/6003/6004#newcode45
chrome/app/nibs/KeywordEditor.xib:45: <string
key="NSWindowContentMaxSize">{3.40282e+38, 3.40282e+38}</string>
On 2010/01/19 21:32:49, Nico wrote:
> On 2010/01/19 16:00:03, rsesek wrote:
> > It looks like you only changed the NSWindowContentMaxSize? If so, can you
> > unstage all the other changes (make the XIB diff as minimal as possible).
> Also,
> > please list the XIB changes in the CL description.
> 
> The XIB changes are listed in the CL description ("Nib changes: Unset "show at
> startup" so that the initial repositioning isn't visible.").
> 
> I only clicked a single checkbox and saved in IB and got this diff. I just did
> 
> git checkout trunk chrome/app/nib/KeywordEditor.xib
> open c/a/n/K.xib
> # click "visible at launch" checkbox
> # save
> git diff trunk c/a/n/K.xib
> 
> to make sure and it produced the same diff.
> 
> As far as I know, the IB version I use is what's the currently recommended
> version is. Someone must've used a different version to originally create this
> file :-)

Fair enough ;-).

http://codereview.chromium.org/536086/diff/5039/6035
File chrome/browser/cocoa/window_size_autosaver.h (right):

http://codereview.chromium.org/536086/diff/5039/6035#newcode27
chrome/browser/cocoa/window_size_autosaver.h:27: // restored when the
autosaver's |initWithWindow:...| method is called.
Maybe add a note about not having "Visible on launched" checked?

Powered by Google App Engine
This is Rietveld 408576698