| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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_VIEWS_DOWNLOAD_SHELF_VIEW_H__ | 5 #ifndef CHROME_BROWSER_VIEWS_DOWNLOAD_SHELF_VIEW_H__ |
| 6 #define CHROME_BROWSER_VIEWS_DOWNLOAD_SHELF_VIEW_H__ | 6 #define CHROME_BROWSER_VIEWS_DOWNLOAD_SHELF_VIEW_H__ |
| 7 | 7 |
| 8 #include "chrome/common/slide_animation.h" | 8 #include "chrome/common/slide_animation.h" |
| 9 #include "chrome/views/button.h" | 9 #include "chrome/views/button.h" |
| 10 #include "chrome/views/link.h" | 10 #include "chrome/views/link.h" |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 class DownloadShelfView : public ChromeViews::View, | 29 class DownloadShelfView : public ChromeViews::View, |
| 30 public ChromeViews::BaseButton::ButtonListener, | 30 public ChromeViews::BaseButton::ButtonListener, |
| 31 public ChromeViews::LinkController, | 31 public ChromeViews::LinkController, |
| 32 public AnimationDelegate { | 32 public AnimationDelegate { |
| 33 public: | 33 public: |
| 34 DownloadShelfView(TabContents* tab_contents); | 34 DownloadShelfView(TabContents* tab_contents); |
| 35 | 35 |
| 36 // A new download has started, so add it to our shelf. | 36 // A new download has started, so add it to our shelf. |
| 37 void AddDownload(DownloadItem* download); | 37 void AddDownload(DownloadItem* download); |
| 38 | 38 |
| 39 virtual void GetPreferredSize(CSize *out); | 39 virtual gfx::Size GetPreferredSize(); |
| 40 | 40 |
| 41 virtual void Layout(); | 41 virtual void Layout(); |
| 42 | 42 |
| 43 // Invokes the following methods to do painting: | 43 // Invokes the following methods to do painting: |
| 44 // PaintBackground, PaintBorder and PaintSeparators. | 44 // PaintBackground, PaintBorder and PaintSeparators. |
| 45 virtual void Paint(ChromeCanvas* canvas); | 45 virtual void Paint(ChromeCanvas* canvas); |
| 46 | 46 |
| 47 void DidChangeBounds(const CRect& previous, const CRect& current); | 47 void DidChangeBounds(const CRect& previous, const CRect& current); |
| 48 | 48 |
| 49 // AnimationDelegate implementations | 49 // AnimationDelegate implementations |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 | 106 |
| 107 // Button for closing the downloads. This is contained as a child, and | 107 // Button for closing the downloads. This is contained as a child, and |
| 108 // deleted by View. | 108 // deleted by View. |
| 109 ChromeViews::Button* close_button_; | 109 ChromeViews::Button* close_button_; |
| 110 | 110 |
| 111 DISALLOW_EVIL_CONSTRUCTORS(DownloadShelfView); | 111 DISALLOW_EVIL_CONSTRUCTORS(DownloadShelfView); |
| 112 }; | 112 }; |
| 113 | 113 |
| 114 #endif // CHROME_BROWSER_VIEWS_DOWNLOAD_SHELF_VIEW_H__ | 114 #endif // CHROME_BROWSER_VIEWS_DOWNLOAD_SHELF_VIEW_H__ |
| 115 | 115 |
| OLD | NEW |