OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "app/slide_animation.h" | 8 #include "app/slide_animation.h" |
9 #include "chrome/browser/download/download_shelf.h" | 9 #include "chrome/browser/download/download_shelf.h" |
10 #include "views/controls/button/button.h" | 10 #include "views/controls/button/button.h" |
11 #include "views/controls/link.h" | 11 #include "views/controls/link.h" |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 // Paints the border. | 77 // Paints the border. |
78 void PaintBorder(gfx::Canvas* canvas); | 78 void PaintBorder(gfx::Canvas* canvas); |
79 | 79 |
80 // Returns true if the shelf is wide enough to show the first download item. | 80 // Returns true if the shelf is wide enough to show the first download item. |
81 bool CanFitFirstDownloadItem(); | 81 bool CanFitFirstDownloadItem(); |
82 | 82 |
83 // Called on theme change. | 83 // Called on theme change. |
84 void UpdateButtonColors(); | 84 void UpdateButtonColors(); |
85 | 85 |
86 // Overridden from views::View. | 86 // Overridden from views::View. |
87 virtual void ThemeChanged(); | 87 virtual void OnThemeChanged(); |
88 | 88 |
89 // Called when the "close shelf" animation ended. | 89 // Called when the "close shelf" animation ended. |
90 void Closed(); | 90 void Closed(); |
91 | 91 |
92 // The browser for this shelf. | 92 // The browser for this shelf. |
93 Browser* browser_; | 93 Browser* browser_; |
94 | 94 |
95 // The animation for adding new items to the shelf. | 95 // The animation for adding new items to the shelf. |
96 scoped_ptr<SlideAnimation> new_item_animation_; | 96 scoped_ptr<SlideAnimation> new_item_animation_; |
97 | 97 |
(...skipping 15 matching lines...) Expand all Loading... |
113 // deleted by View. | 113 // deleted by View. |
114 views::ImageButton* close_button_; | 114 views::ImageButton* close_button_; |
115 | 115 |
116 // The window this shelf belongs to. | 116 // The window this shelf belongs to. |
117 BrowserView* parent_; | 117 BrowserView* parent_; |
118 | 118 |
119 DISALLOW_COPY_AND_ASSIGN(DownloadShelfView); | 119 DISALLOW_COPY_AND_ASSIGN(DownloadShelfView); |
120 }; | 120 }; |
121 | 121 |
122 #endif // CHROME_BROWSER_VIEWS_DOWNLOAD_SHELF_VIEW_H_ | 122 #endif // CHROME_BROWSER_VIEWS_DOWNLOAD_SHELF_VIEW_H_ |
OLD | NEW |