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

Side by Side Diff: chrome/browser/ui/views/download/download_shelf_view.h

Issue 966983002: downloads: clicking "remove" on chrome://downloads should also hide shelf item. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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 #ifndef CHROME_BROWSER_UI_VIEWS_DOWNLOAD_DOWNLOAD_SHELF_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_DOWNLOAD_DOWNLOAD_SHELF_VIEW_H_
6 #define CHROME_BROWSER_UI_VIEWS_DOWNLOAD_DOWNLOAD_SHELF_VIEW_H_ 6 #define CHROME_BROWSER_UI_VIEWS_DOWNLOAD_DOWNLOAD_SHELF_VIEW_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 // Implementation of views::LinkListener. 72 // Implementation of views::LinkListener.
73 // Invoked when the user clicks the 'show all downloads' link button. 73 // Invoked when the user clicks the 'show all downloads' link button.
74 void LinkClicked(views::Link* source, int event_flags) override; 74 void LinkClicked(views::Link* source, int event_flags) override;
75 75
76 // Implementation of ButtonListener. 76 // Implementation of ButtonListener.
77 // Invoked when the user clicks the close button. Asks the browser to 77 // Invoked when the user clicks the close button. Asks the browser to
78 // hide the download shelf. 78 // hide the download shelf.
79 void ButtonPressed(views::Button* button, const ui::Event& event) override; 79 void ButtonPressed(views::Button* button, const ui::Event& event) override;
80 80
81 // Implementation of DownloadShelf. 81 // Implementation of DownloadShelf.
82 void RemoveDownload(content::DownloadItem* download) override;
82 bool IsShowing() const override; 83 bool IsShowing() const override;
83 bool IsClosing() const override; 84 bool IsClosing() const override;
84 Browser* browser() const override; 85 Browser* browser() const override;
85 86
86 // Implementation of MouseWatcherListener override. 87 // Implementation of MouseWatcherListener override.
87 void MouseMovedOutOfHost() override; 88 void MouseMovedOutOfHost() override;
88 89
89 // Removes a specified download view. The supplied view is deleted after 90 // Removes a specified download view. The supplied view is deleted after
90 // it's removed. 91 // it's removed.
91 void RemoveDownloadView(views::View* view); 92 void RemoveDownloadView(views::View* view);
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 151
151 // The window this shelf belongs to. 152 // The window this shelf belongs to.
152 BrowserView* parent_; 153 BrowserView* parent_;
153 154
154 views::MouseWatcher mouse_watcher_; 155 views::MouseWatcher mouse_watcher_;
155 156
156 DISALLOW_COPY_AND_ASSIGN(DownloadShelfView); 157 DISALLOW_COPY_AND_ASSIGN(DownloadShelfView);
157 }; 158 };
158 159
159 #endif // CHROME_BROWSER_UI_VIEWS_DOWNLOAD_DOWNLOAD_SHELF_VIEW_H_ 160 #endif // CHROME_BROWSER_UI_VIEWS_DOWNLOAD_DOWNLOAD_SHELF_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698