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

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

Issue 9447096: gtk: Rename GtkThemeService to ThemeServiceGtk. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 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 #pragma once 7 #pragma once
8 8
9 #include <gtk/gtk.h> 9 #include <gtk/gtk.h>
10 10
11 #include <vector> 11 #include <vector>
12 12
13 #include "base/compiler_specific.h" 13 #include "base/compiler_specific.h"
14 #include "base/memory/scoped_ptr.h" 14 #include "base/memory/scoped_ptr.h"
15 #include "base/memory/weak_ptr.h" 15 #include "base/memory/weak_ptr.h"
16 #include "base/message_loop.h" 16 #include "base/message_loop.h"
17 #include "chrome/browser/download/download_shelf.h" 17 #include "chrome/browser/download/download_shelf.h"
18 #include "chrome/browser/ui/gtk/slide_animator_gtk.h" 18 #include "chrome/browser/ui/gtk/slide_animator_gtk.h"
19 #include "content/public/browser/notification_observer.h" 19 #include "content/public/browser/notification_observer.h"
20 #include "content/public/browser/notification_registrar.h" 20 #include "content/public/browser/notification_registrar.h"
21 #include "ui/base/gtk/gtk_signal.h" 21 #include "ui/base/gtk/gtk_signal.h"
22 #include "ui/base/gtk/owned_widget_gtk.h" 22 #include "ui/base/gtk/owned_widget_gtk.h"
23 #include "ui/gfx/native_widget_types.h" 23 #include "ui/gfx/native_widget_types.h"
24 24
25 class BaseDownloadItemModel; 25 class BaseDownloadItemModel;
26 class Browser; 26 class Browser;
27 class CustomDrawButton; 27 class CustomDrawButton;
28 class DownloadItemGtk; 28 class DownloadItemGtk;
29 class GtkThemeService; 29 class ThemeServiceGtk;
30 class SlideAnimatorGtk; 30 class SlideAnimatorGtk;
31 31
32 namespace gfx { 32 namespace gfx {
33 class Point; 33 class Point;
34 } 34 }
35 35
36 class DownloadShelfGtk : public DownloadShelf, 36 class DownloadShelfGtk : public DownloadShelf,
37 public content::NotificationObserver, 37 public content::NotificationObserver,
38 public SlideAnimatorGtk::Delegate, 38 public SlideAnimatorGtk::Delegate,
39 public MessageLoopForUI::Observer { 39 public MessageLoopForUI::Observer {
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 // The 'x' that the user can press to hide the download shelf. 130 // The 'x' that the user can press to hide the download shelf.
131 scoped_ptr<CustomDrawButton> close_button_; 131 scoped_ptr<CustomDrawButton> close_button_;
132 132
133 // Keeps track of our current hide/show state. 133 // Keeps track of our current hide/show state.
134 bool is_showing_; 134 bool is_showing_;
135 135
136 // The download items we have added to our shelf. 136 // The download items we have added to our shelf.
137 std::vector<DownloadItemGtk*> download_items_; 137 std::vector<DownloadItemGtk*> download_items_;
138 138
139 // Gives us our colors and theme information. 139 // Gives us our colors and theme information.
140 GtkThemeService* theme_service_; 140 ThemeServiceGtk* theme_service_;
141 141
142 content::NotificationRegistrar registrar_; 142 content::NotificationRegistrar registrar_;
143 143
144 // True if the shelf will automatically close when the user mouses out. 144 // True if the shelf will automatically close when the user mouses out.
145 bool close_on_mouse_out_; 145 bool close_on_mouse_out_;
146 146
147 // True if the mouse is within the shelf's bounds, as of the last mouse event 147 // True if the mouse is within the shelf's bounds, as of the last mouse event
148 // we received. 148 // we received.
149 bool mouse_in_shelf_; 149 bool mouse_in_shelf_;
150 150
151 base::WeakPtrFactory<DownloadShelfGtk> weak_factory_; 151 base::WeakPtrFactory<DownloadShelfGtk> weak_factory_;
152 152
153 friend class DownloadItemGtk; 153 friend class DownloadItemGtk;
154 }; 154 };
155 155
156 #endif // CHROME_BROWSER_UI_GTK_DOWNLOAD_DOWNLOAD_SHELF_GTK_H_ 156 #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