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

Issue 115740: Move download shelf from per-tab to per-window (Closed)

Created:
11 years, 7 months ago by Nico
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Move download shelf from per-tab to per-window. Also disable auto-hiding of the shelf. BUG=9025 TEST=Download file in one tab, open new tab, and check that download shelf is still open. Also try the shelf's close button and the "show all downloads" link. When saving a file, the download animation should not show up.

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Patch Set 6 : '' #

Patch Set 7 : '' #

Patch Set 8 : '' #

Patch Set 9 : '' #

Patch Set 10 : '' #

Patch Set 11 : '' #

Patch Set 12 : '' #

Patch Set 13 : '' #

Patch Set 14 : '' #

Patch Set 15 : '' #

Patch Set 16 : '' #

Patch Set 17 : '' #

Patch Set 18 : '' #

Patch Set 19 : '' #

Patch Set 20 : '' #

Patch Set 21 : '' #

Patch Set 22 : '' #

Patch Set 23 : '' #

Patch Set 24 : '' #

Total comments: 17

Patch Set 25 : '' #

Patch Set 26 : '' #

Total comments: 6

Patch Set 27 : '' #

Patch Set 28 : '' #

Patch Set 29 : '' #

Total comments: 14

Patch Set 30 : '' #

Total comments: 2

Patch Set 31 : '' #

Patch Set 32 : '' #

Patch Set 33 : '' #

Patch Set 34 : '' #

Total comments: 2

Patch Set 35 : '' #

Patch Set 36 : '' #

Total comments: 20

Patch Set 37 : '' #

Patch Set 38 : '' #

Patch Set 39 : '' #

Patch Set 40 : '' #

Patch Set 41 : '' #

Patch Set 42 : '' #

Total comments: 7

Patch Set 43 : '' #

Patch Set 44 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+511 lines, -463 lines) Patch
M chrome/browser/automation/automation_provider.h View 39 40 41 42 43 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/automation/automation_provider.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 3 chunks +21 lines, -3 lines 0 comments Download
M chrome/browser/browser.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/browser.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 3 chunks +23 lines, -0 lines 0 comments Download
M chrome/browser/browser_window.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 2 chunks +8 lines, -0 lines 0 comments Download
M chrome/browser/cocoa/browser_window_cocoa.h View 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 2 chunks +8 lines, -0 lines 0 comments Download
M chrome/browser/cocoa/browser_window_cocoa.mm View 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 2 chunks +18 lines, -1 line 0 comments Download
M chrome/browser/download/download_file.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 1 chunk +10 lines, -9 lines 0 comments Download
M chrome/browser/download/download_shelf.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 1 chunk +15 lines, -14 lines 0 comments Download
M chrome/browser/download/download_shelf.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 2 chunks +4 lines, -10 lines 0 comments Download
M chrome/browser/download/download_uitest.cc View 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 4 chunks +53 lines, -13 lines 0 comments Download
M chrome/browser/download/save_package.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 1 chunk +1 line, -3 lines 0 comments Download
M chrome/browser/download/save_page_uitest.cc View 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 5 chunks +8 lines, -5 lines 0 comments Download
M chrome/browser/gtk/browser_window_gtk.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 3 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/gtk/browser_window_gtk.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 3 chunks +17 lines, -2 lines 0 comments Download
M chrome/browser/gtk/download_item_gtk.h View 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 4 chunks +5 lines, -5 lines 0 comments Download
M chrome/browser/gtk/download_item_gtk.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 13 chunks +45 lines, -31 lines 0 comments Download
M chrome/browser/gtk/download_shelf_gtk.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 3 chunks +9 lines, -2 lines 0 comments Download
M chrome/browser/gtk/download_shelf_gtk.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 10 chunks +34 lines, -20 lines 0 comments Download
M chrome/browser/gtk/tabs/tab_renderer_gtk.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 4 chunks +0 lines, -9 lines 0 comments Download
M chrome/browser/gtk/tabs/tab_renderer_gtk.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 8 chunks +0 lines, -27 lines 0 comments Download
M chrome/browser/renderer_host/resource_dispatcher_host_uitest.cc View 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 2 chunks +5 lines, -6 lines 0 comments Download
M chrome/browser/tab_contents/tab_contents.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 5 chunks +2 lines, -33 lines 0 comments Download
M chrome/browser/tab_contents/tab_contents.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 7 chunks +2 lines, -93 lines 0 comments Download
M chrome/browser/tab_contents/tab_contents_delegate.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 3 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/tab_contents/tab_contents_view_gtk.h View 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 1 chunk +1 line, -4 lines 0 comments Download
M chrome/browser/tab_contents/tab_contents_view_gtk.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 6 chunks +11 lines, -15 lines 0 comments Download
M chrome/browser/views/download_shelf_view.h View 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 4 chunks +8 lines, -2 lines 0 comments Download
M chrome/browser/views/download_shelf_view.cc View 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 7 chunks +21 lines, -26 lines 0 comments Download
M chrome/browser/views/frame/browser_view.h View 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 5 chunks +7 lines, -7 lines 0 comments Download
M chrome/browser/views/frame/browser_view.cc View 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 5 chunks +35 lines, -24 lines 0 comments Download
M chrome/browser/views/tabs/tab_renderer.h View 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 3 chunks +0 lines, -5 lines 0 comments Download
M chrome/browser/views/tabs/tab_renderer.cc View 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 8 chunks +7 lines, -35 lines 0 comments Download
M chrome/common/temp_scaffolding_stubs.h View 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 2 chunks +50 lines, -0 lines 0 comments Download
M chrome/common/temp_scaffolding_stubs.cc View 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 2 chunks +0 lines, -25 lines 0 comments Download
M chrome/test/automation/automation_messages_internal.h View 37 38 39 40 41 42 43 2 chunks +7 lines, -2 lines 0 comments Download
M chrome/test/automation/browser_proxy.h View 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/test/automation/browser_proxy.cc View 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 2 chunks +22 lines, -1 line 0 comments Download
M chrome/test/automation/tab_proxy.h View 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 1 chunk +0 lines, -5 lines 0 comments Download
M chrome/test/automation/tab_proxy.cc View 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 2 chunks +1 line, -14 lines 0 comments Download
M chrome/test/test_browser_window.h View 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/test/ui/ui_test.h View 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 1 chunk +16 lines, -4 lines 0 comments Download
M chrome/test/ui/ui_test.cc View 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 1 chunk +13 lines, -4 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
Nico
I haven't tested the windows changes yet, due to lack of a windows machine. It ...
11 years, 7 months ago (2009-05-26 17:15:37 UTC) #1
Evan Stade
cool. http://codereview.chromium.org/115740/diff/1795/689 File chrome/browser/browser_window.h (right): http://codereview.chromium.org/115740/diff/1795/689#newcode154 Line 154: virtual DownloadShelf* GetDownloadShelf(bool create) = 0; I ...
11 years, 7 months ago (2009-05-26 17:41:49 UTC) #2
Evan Stade
come to think of it, you can get rid of vbox_ in TabContentsViewGtk now. After ...
11 years, 7 months ago (2009-05-26 18:24:16 UTC) #3
Nico
On 2009/05/26 18:24:16, Evan Stade wrote: > come to think of it, you can get ...
11 years, 7 months ago (2009-05-26 21:58:59 UTC) #4
Nico
Forgot to send my comments with the last mail. http://codereview.chromium.org/115740/diff/1795/689 File chrome/browser/browser_window.h (right): http://codereview.chromium.org/115740/diff/1795/689#newcode154 Line ...
11 years, 7 months ago (2009-05-26 22:00:27 UTC) #5
Evan Stade
On 2009/05/26 21:58:59, thakis wrote: > On 2009/05/26 18:24:16, Evan Stade wrote: > > come ...
11 years, 7 months ago (2009-05-26 22:00:57 UTC) #6
Evan Stade
* body_: AnimationProgressed() is still called after the browser window widget has been gtk_widget_destroy()ed. Without ...
11 years, 7 months ago (2009-05-26 22:09:33 UTC) #7
Evan Stade
http://codereview.chromium.org/115740/diff/1795/701 File chrome/browser/gtk/download_item_gtk.cc (right): http://codereview.chromium.org/115740/diff/1795/701#newcode260 Line 260: if (g_signal_handler_find(parent_shelf_->GetHBox(), On 2009/05/26 22:00:27, thakis wrote: > ...
11 years, 7 months ago (2009-05-27 03:02:12 UTC) #8
Nico
All done. I also tested this on windows, and thinks seem to work on windows ...
11 years, 7 months ago (2009-05-27 04:55:36 UTC) #9
Nico
All done. I also tested this on windows, and things seem to work there too ...
11 years, 7 months ago (2009-05-27 04:55:56 UTC) #10
Evan Stade
http://codereview.chromium.org/115740/diff/1948/1959 File chrome/browser/gtk/browser_window_gtk.cc (right): http://codereview.chromium.org/115740/diff/1948/1959#newcode569 Line 569: GetDownloadShelf(); This function is seeming kind of pointless ...
11 years, 6 months ago (2009-05-27 17:22:00 UTC) #11
Nico
Was busy with work the last day, sorry bout that. http://codereview.chromium.org/115740/diff/1948/1959 File chrome/browser/gtk/browser_window_gtk.cc (right): http://codereview.chromium.org/115740/diff/1948/1959#newcode569 ...
11 years, 6 months ago (2009-05-29 22:24:20 UTC) #12
Nico
As touched on in a comment, I'd rather leave the windows side as is if ...
11 years, 6 months ago (2009-05-29 22:25:52 UTC) #13
Evan Stade
lgtm for linux. http://codereview.chromium.org/115740/diff/1948/1959 File chrome/browser/gtk/browser_window_gtk.cc (right): http://codereview.chromium.org/115740/diff/1948/1959#newcode569 Line 569: GetDownloadShelf(); On 2009/05/29 22:24:20, thakis ...
11 years, 6 months ago (2009-05-29 22:48:43 UTC) #14
Nico
Thanks! http://codereview.chromium.org/115740/diff/7114/7121 File chrome/browser/gtk/download_shelf_gtk.cc (right): http://codereview.chromium.org/115740/diff/7114/7121#newcode161 Line 161: browser_->UpdateDownloadShelfVisibility(false); On 2009/05/29 22:48:43, Evan Stade wrote: ...
11 years, 6 months ago (2009-05-29 22:51:38 UTC) #15
Paul Godavari
When I patched your change locally and tested it, I found a problem doing the ...
11 years, 6 months ago (2009-06-02 01:26:59 UTC) #16
Nico
Hi Paul, thanks for the review. I've addressed all comments. I tested the "open shelf, ...
11 years, 6 months ago (2009-06-02 16:44:06 UTC) #17
Paul Godavari
LGTM with nits fixed. http://codereview.chromium.org/115740/diff/7416/7418 File chrome/browser/automation/automation_provider.cc (right): http://codereview.chromium.org/115740/diff/7416/7418#newcode1960 Line 1960: // Nit: remove blank ...
11 years, 6 months ago (2009-06-04 01:19:33 UTC) #18
Nico
11 years, 6 months ago (2009-06-04 01:26:18 UTC) #19
Thanks!

I will land this when the tree is open again.

http://codereview.chromium.org/115740/diff/7416/7418
File chrome/browser/automation/automation_provider.cc (right):

http://codereview.chromium.org/115740/diff/7416/7418#newcode1960
Line 1960: //
On 2009/06/04 01:19:33, Paul Godavari wrote:
> Nit: remove blank comment.

Done.

http://codereview.chromium.org/115740/diff/7416/7418#newcode1971
Line 1971: //
On 2009/06/04 01:19:33, Paul Godavari wrote:
> Nit: remove blank comment.

Done.

http://codereview.chromium.org/115740/diff/7416/7420
File chrome/browser/tab_contents/tab_contents.cc (right):

http://codereview.chromium.org/115740/diff/7416/7420#newcode924
Line 924: 
On 2009/06/04 01:19:33, Paul Godavari wrote:
> Nit: remove extra blank line.

Done.

Powered by Google App Engine
This is Rietveld 408576698