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

Side by Side Diff: chrome/browser/cocoa/download_shelf_mac.mm

Issue 155706: Fix the URL status bubble overlapping the Mac download shelf (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/cocoa/download_shelf_mac.h ('k') | chrome/browser/cocoa/status_bubble_mac.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/cocoa/download_shelf_mac.h" 5 #include "chrome/browser/cocoa/download_shelf_mac.h"
6 6
7 #include "chrome/browser/browser.h"
7 #import "chrome/browser/cocoa/download_shelf_controller.h" 8 #import "chrome/browser/cocoa/download_shelf_controller.h"
8 #include "chrome/browser/cocoa/download_item_mac.h" 9 #include "chrome/browser/cocoa/download_item_mac.h"
9 #include "chrome/browser/download/download_item_model.h" 10 #include "chrome/browser/download/download_item_model.h"
10 11
11 DownloadShelfMac::DownloadShelfMac(Browser* browser, 12 DownloadShelfMac::DownloadShelfMac(Browser* browser,
12 DownloadShelfController* controller) 13 DownloadShelfController* controller)
13 : browser_(browser), 14 : browser_(browser),
14 shelf_controller_(controller) { 15 shelf_controller_(controller) {
15 Show(); 16 Show();
16 } 17 }
17 18
18 void DownloadShelfMac::AddDownload(BaseDownloadItemModel* download_model) { 19 void DownloadShelfMac::AddDownload(BaseDownloadItemModel* download_model) {
19 [shelf_controller_ addDownloadItem:download_model]; 20 [shelf_controller_ addDownloadItem:download_model];
20 Show(); 21 Show();
21 } 22 }
22 23
23 bool DownloadShelfMac::IsShowing() const { 24 bool DownloadShelfMac::IsShowing() const {
24 return [shelf_controller_ isVisible] == YES; 25 return [shelf_controller_ isVisible] == YES;
25 } 26 }
26 27
27 bool DownloadShelfMac::IsClosing() const { 28 bool DownloadShelfMac::IsClosing() const {
28 // TODO(estade): This is never called. For now just return false. 29 // TODO(estade): This is never called. For now just return false.
29 return false; 30 return false;
30 } 31 }
31 32
32 void DownloadShelfMac::Show() { 33 void DownloadShelfMac::Show() {
33 [shelf_controller_ show:nil]; 34 [shelf_controller_ show:nil];
35 browser_->UpdateDownloadShelfVisibility(true);
34 } 36 }
35 37
36 void DownloadShelfMac::Close() { 38 void DownloadShelfMac::Close() {
37 [shelf_controller_ hide:nil]; 39 [shelf_controller_ hide:nil];
40 browser_->UpdateDownloadShelfVisibility(false);
38 } 41 }
OLDNEW
« no previous file with comments | « chrome/browser/cocoa/download_shelf_mac.h ('k') | chrome/browser/cocoa/status_bubble_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698