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

Issue 12995025: [Mac] DownloadShelf should be notified when autoclosing. (Closed)

Created:
7 years, 9 months ago by asanka
Modified:
7 years, 8 months ago
Reviewers:
Nico
CC:
chromium-reviews, benjhayden+dwatch_chromium.org, tfarina, kkania, Randy Smith (Not in Mondays), sail+watch_chromium.org, robertshield, rdsmith+dwatch_chromium.org
Visibility:
Public.

Description

[Mac] DownloadShelf should be notified when autoclosing. If the download shelf is already hidden, then the autoclosing logic on Mac wouldn't notify the DownloadShelf. If the shelf was hidden temporarily due to the browser entering fullscreen mode, then the shelf would be restored on exiting fullscreen mode. Also fix UMA logging of download shelf closures on Mac and assorted cleanup. XIB changes: * Connect close button to |-handleClose:| instead of |-hide:|. BUG=222360 TEST=(1) Download something that is marked for opening automatically (e.g. a browser extension). (2) Enter fullscreen mode before download completes. (3) Wait for download to complete. (4) Exit fullscreen mode. The download shelf should be hidden. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=191618

Patch Set 1 : #

Total comments: 11

Patch Set 2 : Address comments. Undo re-ordering. #

Total comments: 6

Patch Set 3 : + NSTrackingInVisibleRect #

Unified diffs Side-by-side diffs Delta from patch set Stats (+162 lines, -157 lines) Patch
M chrome/app/nibs/DownloadShelf.xib View 9 chunks +21 lines, -56 lines 0 comments Download
M chrome/browser/automation/testing_automation_provider.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/download/download_browsertest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/download/download_shelf.h View 1 3 chunks +15 lines, -2 lines 0 comments Download
M chrome/browser/download/download_shelf.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/download/download_shelf_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/download/test_download_shelf.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/download/test_download_shelf.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/chrome_pages.cc View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/cocoa/download/download_shelf_controller.h View 1 1 chunk +15 lines, -5 lines 0 comments Download
M chrome/browser/ui/cocoa/download/download_shelf_controller.mm View 1 2 8 chunks +59 lines, -54 lines 0 comments Download
M chrome/browser/ui/cocoa/download/download_shelf_mac.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/download/download_shelf_mac.mm View 1 1 chunk +5 lines, -3 lines 0 comments Download
M chrome/browser/ui/cocoa/download/download_shelf_mac_unittest.mm View 3 chunks +22 lines, -9 lines 0 comments Download
M chrome/browser/ui/gtk/download/download_shelf_gtk.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/gtk/download/download_shelf_gtk.cc View 1 4 chunks +5 lines, -4 lines 0 comments Download
M chrome/browser/ui/views/download/download_shelf_view.h View 2 chunks +1 line, -4 lines 0 comments Download
M chrome/browser/ui/views/download/download_shelf_view.cc View 1 5 chunks +7 lines, -9 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
asanka
thakis: Could you take a look? https://codereview.chromium.org/12995025/diff/3019/chrome/browser/ui/cocoa/download/download_shelf_controller.mm File chrome/browser/ui/cocoa/download/download_shelf_controller.mm (left): https://codereview.chromium.org/12995025/diff/3019/chrome/browser/ui/cocoa/download/download_shelf_controller.mm#oldcode155 chrome/browser/ui/cocoa/download/download_shelf_controller.mm:155: - (void)viewFrameDidChange:(NSNotification*)notification { ...
7 years, 9 months ago (2013-03-22 20:11:00 UTC) #1
asanka
On 2013/03/22 20:11:00, asanka wrote: > thakis: Could you take a look? .. at chrome/app ...
7 years, 9 months ago (2013-03-22 20:19:19 UTC) #2
Nico
I looked at everything except download_shelf_controller.mm. All the files I looked at look good. https://codereview.chromium.org/12995025/diff/3019/chrome/browser/download/download_shelf.h ...
7 years, 9 months ago (2013-03-22 20:24:11 UTC) #3
asanka
Thanks for the quick review! https://codereview.chromium.org/12995025/diff/3019/chrome/browser/download/download_shelf.h File chrome/browser/download/download_shelf.h (right): https://codereview.chromium.org/12995025/diff/3019/chrome/browser/download/download_shelf.h#newcode23 chrome/browser/download/download_shelf.h:23: AUTOMATIC, On 2013/03/22 20:24:11, ...
7 years, 9 months ago (2013-03-22 21:22:13 UTC) #4
Nico
https://codereview.chromium.org/12995025/diff/4019/chrome/browser/ui/cocoa/download/download_shelf_controller.mm File chrome/browser/ui/cocoa/download/download_shelf_controller.mm (right): https://codereview.chromium.org/12995025/diff/4019/chrome/browser/ui/cocoa/download/download_shelf_controller.mm#newcode194 chrome/browser/ui/cocoa/download/download_shelf_controller.mm:194: [self maybeAutoCloseAfterDelay]; maybeACAD installs a tracking area to check ...
7 years, 9 months ago (2013-03-22 21:29:17 UTC) #5
asanka
https://codereview.chromium.org/12995025/diff/4019/chrome/browser/ui/cocoa/download/download_shelf_controller.mm File chrome/browser/ui/cocoa/download/download_shelf_controller.mm (right): https://codereview.chromium.org/12995025/diff/4019/chrome/browser/ui/cocoa/download/download_shelf_controller.mm#newcode194 chrome/browser/ui/cocoa/download/download_shelf_controller.mm:194: [self maybeAutoCloseAfterDelay]; On 2013/03/22 21:29:17, Nico wrote: > maybeACAD ...
7 years, 9 months ago (2013-03-22 21:33:23 UTC) #6
Nico
lgtm Since I worked with tracking areas a bit recently, a few comments on the ...
7 years, 9 months ago (2013-03-22 21:42:47 UTC) #7
asanka
On 2013/03/22 21:42:47, Nico wrote: > lgtm > > Since I worked with tracking areas ...
7 years, 8 months ago (2013-03-29 15:56:20 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/asanka@chromium.org/12995025/17001
7 years, 8 months ago (2013-04-01 14:53:29 UTC) #9
commit-bot: I haz the power
7 years, 8 months ago (2013-04-01 17:29:19 UTC) #10
Message was sent while issue was closed.
Change committed as 191618

Powered by Google App Engine
This is Rietveld 408576698