OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_UI_GTK_DOWNLOAD_DOWNLOAD_SHELF_GTK_H_ | 5 #ifndef CHROME_BROWSER_UI_GTK_DOWNLOAD_DOWNLOAD_SHELF_GTK_H_ |
6 #define CHROME_BROWSER_UI_GTK_DOWNLOAD_DOWNLOAD_SHELF_GTK_H_ | 6 #define CHROME_BROWSER_UI_GTK_DOWNLOAD_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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 virtual bool IsShowing() const; | 45 virtual bool IsShowing() const; |
46 virtual bool IsClosing() const; | 46 virtual bool IsClosing() const; |
47 virtual void Show(); | 47 virtual void Show(); |
48 virtual void Close(); | 48 virtual void Close(); |
49 virtual Browser* browser() const; | 49 virtual Browser* browser() const; |
50 | 50 |
51 // SlideAnimatorGtk::Delegate implementation. | 51 // SlideAnimatorGtk::Delegate implementation. |
52 virtual void Closed(); | 52 virtual void Closed(); |
53 | 53 |
54 // Overridden from NotificationObserver: | 54 // Overridden from NotificationObserver: |
55 virtual void Observe(NotificationType type, | 55 virtual void Observe(int type, |
56 const NotificationSource& source, | 56 const NotificationSource& source, |
57 const NotificationDetails& details); | 57 const NotificationDetails& details); |
58 | 58 |
59 // Returns the current height of the shelf. | 59 // Returns the current height of the shelf. |
60 int GetHeight() const; | 60 int GetHeight() const; |
61 | 61 |
62 // MessageLoop::Observer implementation: | 62 // MessageLoop::Observer implementation: |
63 virtual void WillProcessEvent(GdkEvent* event); | 63 virtual void WillProcessEvent(GdkEvent* event); |
64 virtual void DidProcessEvent(GdkEvent* event); | 64 virtual void DidProcessEvent(GdkEvent* event); |
65 | 65 |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 // True if the mouse is within the shelf's bounds, as of the last mouse event | 142 // True if the mouse is within the shelf's bounds, as of the last mouse event |
143 // we received. | 143 // we received. |
144 bool mouse_in_shelf_; | 144 bool mouse_in_shelf_; |
145 | 145 |
146 ScopedRunnableMethodFactory<DownloadShelfGtk> auto_close_factory_; | 146 ScopedRunnableMethodFactory<DownloadShelfGtk> auto_close_factory_; |
147 | 147 |
148 friend class DownloadItemGtk; | 148 friend class DownloadItemGtk; |
149 }; | 149 }; |
150 | 150 |
151 #endif // CHROME_BROWSER_UI_GTK_DOWNLOAD_DOWNLOAD_SHELF_GTK_H_ | 151 #endif // CHROME_BROWSER_UI_GTK_DOWNLOAD_DOWNLOAD_SHELF_GTK_H_ |
OLD | NEW |