OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 | 7 |
8 #include <gtk/gtk.h> | 8 #include <gtk/gtk.h> |
9 | 9 |
10 #include <vector> | 10 #include <vector> |
(...skipping 19 matching lines...) Expand all Loading... |
30 class PageNavigator; | 30 class PageNavigator; |
31 } | 31 } |
32 | 32 |
33 namespace gfx { | 33 namespace gfx { |
34 class Point; | 34 class Point; |
35 } | 35 } |
36 | 36 |
37 class DownloadShelfGtk : public DownloadShelf, | 37 class DownloadShelfGtk : public DownloadShelf, |
38 public content::NotificationObserver, | 38 public content::NotificationObserver, |
39 public SlideAnimatorGtk::Delegate, | 39 public SlideAnimatorGtk::Delegate, |
40 public MessageLoopForUI::Observer { | 40 public base::MessageLoopForUI::Observer { |
41 public: | 41 public: |
42 DownloadShelfGtk(Browser* browser, gfx::NativeView view); | 42 DownloadShelfGtk(Browser* browser, gfx::NativeView view); |
43 | 43 |
44 virtual ~DownloadShelfGtk(); | 44 virtual ~DownloadShelfGtk(); |
45 | 45 |
46 // Retrieves the navigator for loading pages. | 46 // Retrieves the navigator for loading pages. |
47 content::PageNavigator* GetNavigator(); | 47 content::PageNavigator* GetNavigator(); |
48 | 48 |
49 // DownloadShelf implementation. | 49 // DownloadShelf implementation. |
50 virtual bool IsShowing() const OVERRIDE; | 50 virtual bool IsShowing() const OVERRIDE; |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
151 // True if the mouse is within the shelf's bounds, as of the last mouse event | 151 // True if the mouse is within the shelf's bounds, as of the last mouse event |
152 // we received. | 152 // we received. |
153 bool mouse_in_shelf_; | 153 bool mouse_in_shelf_; |
154 | 154 |
155 base::WeakPtrFactory<DownloadShelfGtk> weak_factory_; | 155 base::WeakPtrFactory<DownloadShelfGtk> weak_factory_; |
156 | 156 |
157 friend class DownloadItemGtk; | 157 friend class DownloadItemGtk; |
158 }; | 158 }; |
159 | 159 |
160 #endif // CHROME_BROWSER_UI_GTK_DOWNLOAD_DOWNLOAD_SHELF_GTK_H_ | 160 #endif // CHROME_BROWSER_UI_GTK_DOWNLOAD_DOWNLOAD_SHELF_GTK_H_ |
OLD | NEW |