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

Side by Side Diff: chrome/browser/download/download_shelf.h

Issue 155365: GTK Themes: Set bg/text colors for the download manager. (Closed)
Patch Set: Created 11 years, 5 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
« no previous file with comments | « no previous file | chrome/browser/gtk/browser_window_gtk.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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_DOWNLOAD_DOWNLOAD_SHELF_H_ 5 #ifndef CHROME_BROWSER_DOWNLOAD_DOWNLOAD_SHELF_H_
6 #define CHROME_BROWSER_DOWNLOAD_DOWNLOAD_SHELF_H_ 6 #define CHROME_BROWSER_DOWNLOAD_DOWNLOAD_SHELF_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 29 matching lines...) Expand all
40 40
41 // Returns whether the download shelf is showing the close animation. 41 // Returns whether the download shelf is showing the close animation.
42 virtual bool IsClosing() const = 0; 42 virtual bool IsClosing() const = 0;
43 43
44 // Opens the shelf. 44 // Opens the shelf.
45 virtual void Show() = 0; 45 virtual void Show() = 0;
46 46
47 // Closes the shelf. 47 // Closes the shelf.
48 virtual void Close() = 0; 48 virtual void Close() = 0;
49 49
50 Browser* browser() { return browser_; }
51
50 protected: 52 protected:
51 Browser* browser_; 53 Browser* browser_;
52 54
53 private: 55 private:
54 DISALLOW_COPY_AND_ASSIGN(DownloadShelf); 56 DISALLOW_COPY_AND_ASSIGN(DownloadShelf);
55 }; 57 };
56 58
57 // Logic for the download shelf context menu. Platform specific subclasses are 59 // Logic for the download shelf context menu. Platform specific subclasses are
58 // responsible for creating and running the menu. 60 // responsible for creating and running the menu.
59 class DownloadShelfContextMenu { 61 class DownloadShelfContextMenu {
(...skipping 22 matching lines...) Expand all
82 DownloadItem* download_; 84 DownloadItem* download_;
83 85
84 // A model to control the cancel behavior. 86 // A model to control the cancel behavior.
85 BaseDownloadItemModel* model_; 87 BaseDownloadItemModel* model_;
86 88
87 private: 89 private:
88 DISALLOW_COPY_AND_ASSIGN(DownloadShelfContextMenu); 90 DISALLOW_COPY_AND_ASSIGN(DownloadShelfContextMenu);
89 }; 91 };
90 92
91 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_SHELF_H_ 93 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_SHELF_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/gtk/browser_window_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698