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 20 matching lines...) Expand all Loading... |
31 class Point; | 31 class Point; |
32 } | 32 } |
33 | 33 |
34 class DownloadShelfGtk : public DownloadShelf, | 34 class DownloadShelfGtk : public DownloadShelf, |
35 public NotificationObserver, | 35 public NotificationObserver, |
36 public SlideAnimatorGtk::Delegate, | 36 public SlideAnimatorGtk::Delegate, |
37 public MessageLoopForUI::Observer { | 37 public MessageLoopForUI::Observer { |
38 public: | 38 public: |
39 explicit DownloadShelfGtk(Browser* browser, gfx::NativeView view); | 39 explicit DownloadShelfGtk(Browser* browser, gfx::NativeView view); |
40 | 40 |
41 ~DownloadShelfGtk(); | 41 virtual ~DownloadShelfGtk(); |
42 | 42 |
43 // DownloadShelf implementation. | 43 // DownloadShelf implementation. |
44 virtual void AddDownload(BaseDownloadItemModel* download_model); | 44 virtual void AddDownload(BaseDownloadItemModel* download_model); |
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. |
(...skipping 90 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 |