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

Side by Side Diff: chrome/browser/ui/gtk/download/download_item_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_ITEM_GTK_H_ 5 #ifndef CHROME_BROWSER_UI_GTK_DOWNLOAD_DOWNLOAD_ITEM_GTK_H_
6 #define CHROME_BROWSER_UI_GTK_DOWNLOAD_DOWNLOAD_ITEM_GTK_H_ 6 #define CHROME_BROWSER_UI_GTK_DOWNLOAD_DOWNLOAD_ITEM_GTK_H_
7 #pragma once 7 #pragma once
8 8
9 #include <gtk/gtk.h> 9 #include <gtk/gtk.h>
10 10
11 #include <string> 11 #include <string>
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/time.h" 15 #include "base/time.h"
16 #include "base/timer.h" 16 #include "base/timer.h"
17 #include "chrome/browser/icon_manager.h" 17 #include "chrome/browser/icon_manager.h"
18 #include "content/public/browser/download_item.h" 18 #include "content/public/browser/download_item.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/animation/animation_delegate.h" 21 #include "ui/base/animation/animation_delegate.h"
22 #include "ui/base/animation/slide_animation.h" 22 #include "ui/base/animation/slide_animation.h"
23 #include "ui/base/gtk/gtk_signal.h" 23 #include "ui/base/gtk/gtk_signal.h"
24 #include "ui/base/gtk/owned_widget_gtk.h" 24 #include "ui/base/gtk/owned_widget_gtk.h"
25 25
26 class BaseDownloadItemModel; 26 class BaseDownloadItemModel;
27 class DownloadShelfContextMenuGtk; 27 class DownloadShelfContextMenuGtk;
28 class DownloadShelfGtk; 28 class DownloadShelfGtk;
29 class GtkThemeService; 29 class ThemeServiceGtk;
30 class NineBox; 30 class NineBox;
31 31
32 namespace gfx { 32 namespace gfx {
33 class Image; 33 class Image;
34 } 34 }
35 35
36 namespace ui { 36 namespace ui {
37 class SlideAnimation; 37 class SlideAnimation;
38 } 38 }
39 39
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 178
179 // A gtk arrow pointing downward displayed in |menu_button_|. Only displayed 179 // A gtk arrow pointing downward displayed in |menu_button_|. Only displayed
180 // in GTK mode. 180 // in GTK mode.
181 GtkWidget* arrow_; 181 GtkWidget* arrow_;
182 182
183 // Whether the menu is currently showing for |menu_button_|. Affects how we 183 // Whether the menu is currently showing for |menu_button_|. Affects how we
184 // draw the button. 184 // draw the button.
185 bool menu_showing_; 185 bool menu_showing_;
186 186
187 // Whether we should use the GTK text color 187 // Whether we should use the GTK text color
188 GtkThemeService* theme_service_; 188 ThemeServiceGtk* theme_service_;
189 189
190 // The widget that contains the animation progress and the file's icon 190 // The widget that contains the animation progress and the file's icon
191 // (as well as the complete animation). 191 // (as well as the complete animation).
192 ui::OwnedWidgetGtk progress_area_; 192 ui::OwnedWidgetGtk progress_area_;
193 193
194 // In degrees. Only used for downloads with no known total size. 194 // In degrees. Only used for downloads with no known total size.
195 int progress_angle_; 195 int progress_angle_;
196 196
197 // The menu that pops down when the user presses |menu_button_|. We do not 197 // The menu that pops down when the user presses |menu_button_|. We do not
198 // create this until the first time we actually need it. 198 // create this until the first time we actually need it.
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
236 236
237 // For canceling an in progress icon request. 237 // For canceling an in progress icon request.
238 CancelableRequestConsumerT<int, 0> icon_consumer_; 238 CancelableRequestConsumerT<int, 0> icon_consumer_;
239 239
240 // Indicates when the download has completed, so we don't redo 240 // Indicates when the download has completed, so we don't redo
241 // on-completion actions. 241 // on-completion actions.
242 bool download_complete_; 242 bool download_complete_;
243 }; 243 };
244 244
245 #endif // CHROME_BROWSER_UI_GTK_DOWNLOAD_DOWNLOAD_ITEM_GTK_H_ 245 #endif // CHROME_BROWSER_UI_GTK_DOWNLOAD_DOWNLOAD_ITEM_GTK_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/gtk/custom_button.cc ('k') | chrome/browser/ui/gtk/download/download_item_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698