| 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" |
| 11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
| 12 #include "chrome/browser/download/download_shelf.h" | 12 #include "chrome/browser/download/download_shelf.h" |
| 13 #include "chrome/browser/ui/views/frame/browser_view.h" |
| 13 #include "ui/gfx/animation/animation_delegate.h" | 14 #include "ui/gfx/animation/animation_delegate.h" |
| 14 #include "ui/views/accessible_pane_view.h" | 15 #include "ui/views/accessible_pane_view.h" |
| 15 #include "ui/views/controls/button/button.h" | 16 #include "ui/views/controls/button/button.h" |
| 16 #include "ui/views/controls/link_listener.h" | 17 #include "ui/views/controls/link_listener.h" |
| 17 #include "ui/views/mouse_watcher.h" | 18 #include "ui/views/mouse_watcher.h" |
| 18 | 19 |
| 19 class Browser; | 20 class Browser; |
| 20 class BrowserView; | |
| 21 class DownloadItemView; | 21 class DownloadItemView; |
| 22 | 22 |
| 23 namespace content { | 23 namespace content { |
| 24 class DownloadItem; | 24 class DownloadItem; |
| 25 class PageNavigator; | 25 class PageNavigator; |
| 26 } | 26 } |
| 27 | 27 |
| 28 namespace gfx { | 28 namespace gfx { |
| 29 class SlideAnimation; | 29 class SlideAnimation; |
| 30 } | 30 } |
| (...skipping 18 matching lines...) Expand all 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 |