| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |