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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 DownloadShelfView(Browser* browser, BrowserView* parent); | 49 DownloadShelfView(Browser* browser, BrowserView* parent); |
50 virtual ~DownloadShelfView(); | 50 virtual ~DownloadShelfView(); |
51 | 51 |
52 // Sent from the DownloadItemView when the user opens an item. | 52 // Sent from the DownloadItemView when the user opens an item. |
53 void OpenedDownload(DownloadItemView* view); | 53 void OpenedDownload(DownloadItemView* view); |
54 | 54 |
55 // Returns the relevant containing object that can load pages. | 55 // Returns the relevant containing object that can load pages. |
56 // i.e. the |browser_|. | 56 // i.e. the |browser_|. |
57 content::PageNavigator* GetNavigator(); | 57 content::PageNavigator* GetNavigator(); |
58 | 58 |
| 59 // Returns the parent_. |
| 60 BrowserView* get_parent() { return parent_; } |
| 61 |
59 // Implementation of View. | 62 // Implementation of View. |
60 virtual gfx::Size GetPreferredSize() OVERRIDE; | 63 virtual gfx::Size GetPreferredSize() OVERRIDE; |
61 virtual void Layout() OVERRIDE; | 64 virtual void Layout() OVERRIDE; |
62 virtual void ViewHierarchyChanged( | 65 virtual void ViewHierarchyChanged( |
63 const ViewHierarchyChangedDetails& details) OVERRIDE; | 66 const ViewHierarchyChangedDetails& details) OVERRIDE; |
64 | 67 |
65 // Implementation of gfx::AnimationDelegate. | 68 // Implementation of gfx::AnimationDelegate. |
66 virtual void AnimationProgressed(const gfx::Animation* animation) OVERRIDE; | 69 virtual void AnimationProgressed(const gfx::Animation* animation) OVERRIDE; |
67 virtual void AnimationEnded(const gfx::Animation* animation) OVERRIDE; | 70 virtual void AnimationEnded(const gfx::Animation* animation) OVERRIDE; |
68 | 71 |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 | 151 |
149 // The window this shelf belongs to. | 152 // The window this shelf belongs to. |
150 BrowserView* parent_; | 153 BrowserView* parent_; |
151 | 154 |
152 views::MouseWatcher mouse_watcher_; | 155 views::MouseWatcher mouse_watcher_; |
153 | 156 |
154 DISALLOW_COPY_AND_ASSIGN(DownloadShelfView); | 157 DISALLOW_COPY_AND_ASSIGN(DownloadShelfView); |
155 }; | 158 }; |
156 | 159 |
157 #endif // CHROME_BROWSER_UI_VIEWS_DOWNLOAD_DOWNLOAD_SHELF_VIEW_H_ | 160 #endif // CHROME_BROWSER_UI_VIEWS_DOWNLOAD_DOWNLOAD_SHELF_VIEW_H_ |
OLD | NEW |