OLD | NEW |
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_GTK_DOWNLOAD_SHELF_GTK_H_ | 5 #ifndef CHROME_BROWSER_GTK_DOWNLOAD_SHELF_GTK_H_ |
6 #define CHROME_BROWSER_GTK_DOWNLOAD_SHELF_GTK_H_ | 6 #define CHROME_BROWSER_GTK_DOWNLOAD_SHELF_GTK_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <gtk/gtk.h> | 9 #include <gtk/gtk.h> |
10 | 10 |
(...skipping 22 matching lines...) Expand all Loading... |
33 explicit DownloadShelfGtk(Browser* browser, gfx::NativeView view); | 33 explicit DownloadShelfGtk(Browser* browser, gfx::NativeView view); |
34 | 34 |
35 ~DownloadShelfGtk(); | 35 ~DownloadShelfGtk(); |
36 | 36 |
37 // DownloadShelf implementation. | 37 // DownloadShelf implementation. |
38 virtual void AddDownload(BaseDownloadItemModel* download_model); | 38 virtual void AddDownload(BaseDownloadItemModel* download_model); |
39 virtual bool IsShowing() const; | 39 virtual bool IsShowing() const; |
40 virtual bool IsClosing() const; | 40 virtual bool IsClosing() const; |
41 virtual void Show(); | 41 virtual void Show(); |
42 virtual void Close(); | 42 virtual void Close(); |
43 virtual Browser* browser() const { return browser_; } | 43 virtual Browser* browser() const; |
44 | 44 |
45 // SlideAnimatorGtk::Delegate implementation. | 45 // SlideAnimatorGtk::Delegate implementation. |
46 virtual void Closed(); | 46 virtual void Closed(); |
47 | 47 |
48 // Overridden from NotificationObserver: | 48 // Overridden from NotificationObserver: |
49 virtual void Observe(NotificationType type, | 49 virtual void Observe(NotificationType type, |
50 const NotificationSource& source, | 50 const NotificationSource& source, |
51 const NotificationDetails& details); | 51 const NotificationDetails& details); |
52 | 52 |
53 // Returns the current height of the shelf. | 53 // Returns the current height of the shelf. |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 | 100 |
101 // Gives us our colors and theme information. | 101 // Gives us our colors and theme information. |
102 GtkThemeProvider* theme_provider_; | 102 GtkThemeProvider* theme_provider_; |
103 | 103 |
104 NotificationRegistrar registrar_; | 104 NotificationRegistrar registrar_; |
105 | 105 |
106 friend class DownloadItemGtk; | 106 friend class DownloadItemGtk; |
107 }; | 107 }; |
108 | 108 |
109 #endif // CHROME_BROWSER_GTK_DOWNLOAD_SHELF_GTK_H_ | 109 #endif // CHROME_BROWSER_GTK_DOWNLOAD_SHELF_GTK_H_ |
OLD | NEW |