| 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 // Invoked when the user clicks the close button. Asks the browser to | 69 // Invoked when the user clicks the close button. Asks the browser to |
| 70 // hide the download shelf. | 70 // hide the download shelf. |
| 71 virtual void ButtonPressed(views::Button* button, | 71 virtual void ButtonPressed(views::Button* button, |
| 72 const views::Event& event) OVERRIDE; | 72 const views::Event& event) OVERRIDE; |
| 73 | 73 |
| 74 // Implementation of DownloadShelf. | 74 // Implementation of DownloadShelf. |
| 75 virtual bool IsShowing() const OVERRIDE; | 75 virtual bool IsShowing() const OVERRIDE; |
| 76 virtual bool IsClosing() const OVERRIDE; | 76 virtual bool IsClosing() const OVERRIDE; |
| 77 virtual Browser* browser() const OVERRIDE; | 77 virtual Browser* browser() const OVERRIDE; |
| 78 | 78 |
| 79 // Implementation of MouseWatcherDelegate OVERRIDE. | 79 // Implementation of MouseWatcherListener OVERRIDE. |
| 80 virtual void MouseMovedOutOfView() OVERRIDE; | 80 virtual void MouseMovedOutOfHost() OVERRIDE; |
| 81 | 81 |
| 82 // Override views::FocusChangeListener method from AccessiblePaneView. | 82 // Override views::FocusChangeListener method from AccessiblePaneView. |
| 83 virtual void OnWillChangeFocus(View* focused_before, | 83 virtual void OnWillChangeFocus(View* focused_before, |
| 84 View* focused_now) OVERRIDE; | 84 View* focused_now) OVERRIDE; |
| 85 virtual void OnDidChangeFocus(View* focused_before, | 85 virtual void OnDidChangeFocus(View* focused_before, |
| 86 View* focused_now) OVERRIDE; | 86 View* focused_now) OVERRIDE; |
| 87 | 87 |
| 88 // Removes a specified download view. The supplied view is deleted after | 88 // Removes a specified download view. The supplied view is deleted after |
| 89 // it's removed. | 89 // it's removed. |
| 90 void RemoveDownloadView(views::View* view); | 90 void RemoveDownloadView(views::View* view); |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 | 161 |
| 162 // Whether we are auto-closing. | 162 // Whether we are auto-closing. |
| 163 bool auto_closed_; | 163 bool auto_closed_; |
| 164 | 164 |
| 165 views::MouseWatcher mouse_watcher_; | 165 views::MouseWatcher mouse_watcher_; |
| 166 | 166 |
| 167 DISALLOW_COPY_AND_ASSIGN(DownloadShelfView); | 167 DISALLOW_COPY_AND_ASSIGN(DownloadShelfView); |
| 168 }; | 168 }; |
| 169 | 169 |
| 170 #endif // CHROME_BROWSER_UI_VIEWS_DOWNLOAD_DOWNLOAD_SHELF_VIEW_H_ | 170 #endif // CHROME_BROWSER_UI_VIEWS_DOWNLOAD_DOWNLOAD_SHELF_VIEW_H_ |
| OLD | NEW |