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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 virtual void AnimationEnded(const ui::Animation* animation) OVERRIDE; | 69 virtual void AnimationEnded(const ui::Animation* animation) OVERRIDE; |
70 | 70 |
71 // Implementation of views::LinkListener. | 71 // Implementation of views::LinkListener. |
72 // Invoked when the user clicks the 'show all downloads' link button. | 72 // Invoked when the user clicks the 'show all downloads' link button. |
73 virtual void LinkClicked(views::Link* source, int event_flags) OVERRIDE; | 73 virtual void LinkClicked(views::Link* source, int event_flags) OVERRIDE; |
74 | 74 |
75 // Implementation of ButtonListener. | 75 // Implementation of ButtonListener. |
76 // Invoked when the user clicks the close button. Asks the browser to | 76 // Invoked when the user clicks the close button. Asks the browser to |
77 // hide the download shelf. | 77 // hide the download shelf. |
78 virtual void ButtonPressed(views::Button* button, | 78 virtual void ButtonPressed(views::Button* button, |
79 const views::Event& event) OVERRIDE; | 79 const ui::Event& event) OVERRIDE; |
80 | 80 |
81 // Implementation of DownloadShelf. | 81 // Implementation of DownloadShelf. |
82 virtual bool IsShowing() const OVERRIDE; | 82 virtual bool IsShowing() const OVERRIDE; |
83 virtual bool IsClosing() const OVERRIDE; | 83 virtual bool IsClosing() const OVERRIDE; |
84 virtual Browser* browser() const OVERRIDE; | 84 virtual Browser* browser() const OVERRIDE; |
85 | 85 |
86 // Implementation of MouseWatcherListener OVERRIDE. | 86 // Implementation of MouseWatcherListener OVERRIDE. |
87 virtual void MouseMovedOutOfHost() OVERRIDE; | 87 virtual void MouseMovedOutOfHost() OVERRIDE; |
88 | 88 |
89 // Override views::FocusChangeListener method from AccessiblePaneView. | 89 // Override views::FocusChangeListener method from AccessiblePaneView. |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
168 | 168 |
169 // Whether we are auto-closing. | 169 // Whether we are auto-closing. |
170 bool auto_closed_; | 170 bool auto_closed_; |
171 | 171 |
172 views::MouseWatcher mouse_watcher_; | 172 views::MouseWatcher mouse_watcher_; |
173 | 173 |
174 DISALLOW_COPY_AND_ASSIGN(DownloadShelfView); | 174 DISALLOW_COPY_AND_ASSIGN(DownloadShelfView); |
175 }; | 175 }; |
176 | 176 |
177 #endif // CHROME_BROWSER_UI_VIEWS_DOWNLOAD_DOWNLOAD_SHELF_VIEW_H_ | 177 #endif // CHROME_BROWSER_UI_VIEWS_DOWNLOAD_DOWNLOAD_SHELF_VIEW_H_ |
OLD | NEW |