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

Side by Side Diff: chrome/browser/ui/cocoa/download/download_shelf_controller.h

Issue 209613002: Download shelf autohides on showing in shell, just same as regular open Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move the 'user acted' flag into DownloadItemModelData and get rid of SetOpened/SetShown in Download… Created 6 years, 6 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #import <Cocoa/Cocoa.h> 5 #import <Cocoa/Cocoa.h>
6 6
7 #include "base/mac/scoped_nsobject.h" 7 #include "base/mac/scoped_nsobject.h"
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #import "chrome/browser/ui/cocoa/view_resizer.h" 9 #import "chrome/browser/ui/cocoa/view_resizer.h"
10 #include "ui/base/cocoa/tracking_area.h" 10 #include "ui/base/cocoa/tracking_area.h"
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 113
114 // Similar to addDownloadItem above, but adds a DownloadItemController. 114 // Similar to addDownloadItem above, but adds a DownloadItemController.
115 - (void)add:(DownloadItemController*)download; 115 - (void)add:(DownloadItemController*)download;
116 116
117 // Remove a download, possibly via clearing browser data. 117 // Remove a download, possibly via clearing browser data.
118 - (void)remove:(DownloadItemController*)download; 118 - (void)remove:(DownloadItemController*)download;
119 119
120 // Called by individual item controllers when their downloads are opened. 120 // Called by individual item controllers when their downloads are opened.
121 - (void)downloadWasOpened:(DownloadItemController*)download; 121 - (void)downloadWasOpened:(DownloadItemController*)download;
122 122
123 // Called by individual item controllers when their downloads are shown.
124 - (void)downloadWasShown:(DownloadItemController*)download;
125
123 // Notification that the download shelf is going to be destroyed and should 126 // Notification that the download shelf is going to be destroyed and should
124 // release the downloads. 127 // release the downloads.
125 - (void)exiting; 128 - (void)exiting;
126 129
127 // Return the height of the download shelf. 130 // Return the height of the download shelf.
128 - (float)height; 131 - (float)height;
129 132
130 // Re-layouts all download items based on their current state. 133 // Re-layouts all download items based on their current state.
131 - (void)layoutItems; 134 - (void)layoutItems;
132 135
133 @end 136 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698