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

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

Issue 14307023: chrome: Use base::MessageLoop. (Part 2) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 7 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) 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
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/ui/gtk/download/download_item_gtk.cc ('k') | chrome/browser/ui/gtk/download/download_shelf_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698