Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(176)

Side by Side Diff: chrome/browser/views/download_shelf_view.h

Issue 2878055: Make theme change notifications auto-propagate through the view hierarchy, in... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/views/constrained_window_win.cc ('k') | chrome/browser/views/download_shelf_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698