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

Side by Side Diff: chrome/browser/gtk/download_shelf_gtk.h

Issue 40139: Put the dropdown menu button on the linux download shelf.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 9 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) 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_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 <gtk/gtk.h> 8 #include <gtk/gtk.h>
9 9
10 #include <vector> 10 #include <vector>
(...skipping 16 matching lines...) Expand all
27 private: 27 private:
28 // Show the shelf. 28 // Show the shelf.
29 void Show(); 29 void Show();
30 30
31 // Hide the shelf. 31 // Hide the shelf.
32 void Hide(); 32 void Hide();
33 33
34 static void OnCloseButtonClick(GtkWidget* button, 34 static void OnCloseButtonClick(GtkWidget* button,
35 DownloadShelfGtk* toolbar); 35 DownloadShelfGtk* toolbar);
36 36
37 // |bar_| is the highest level widget of the download shelf. It is an hbox. 37 // |hbox_| holds the download items and buttons of the shelf.
38 GtkWidget* hbox_;
39
40 // |shelf_box_| is the highest level widget of the shelf. It has a single
41 // child, |hbox_|. It exists because we need to be able to set the background
42 // color of the shelf, and GtkBoxes don't have a gdk window, which is a
43 // requisite for changing the background color.
38 GtkWidget* shelf_; 44 GtkWidget* shelf_;
Dean McNamee 2009/03/05 14:16:01 shelf_box_ -> shelf_ ?
39 45
40 // The 'x' that the user can press to hide the download shelf. 46 // The 'x' that the user can press to hide the download shelf.
41 scoped_ptr<CustomDrawButton> close_button_; 47 scoped_ptr<CustomDrawButton> close_button_;
42 48
43 // Keeps track of our current hide/show state. 49 // Keeps track of our current hide/show state.
44 bool is_showing_; 50 bool is_showing_;
45 51
46 // The download items we have added to our shelf. 52 // The download items we have added to our shelf.
47 std::vector<DownloadItemGtk*> download_items_; 53 std::vector<DownloadItemGtk*> download_items_;
48 }; 54 };
49 55
50 #endif // CHROME_BROWSER_VIEWS_DOWNLOAD_SHELF_VIEW_H_ 56 #endif // CHROME_BROWSER_VIEWS_DOWNLOAD_SHELF_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698