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

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

Issue 10337010: Revert r123782. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 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_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/memory/weak_ptr.h" 15 #include "base/memory/weak_ptr.h"
16 #include "base/time.h" 16 #include "base/time.h"
17 #include "base/timer.h" 17 #include "base/timer.h"
18 #include "chrome/browser/icon_manager.h" 18 #include "chrome/browser/icon_manager.h"
19 #include "content/public/browser/download_item.h" 19 #include "content/public/browser/download_item.h"
20 #include "content/public/browser/notification_observer.h" 20 #include "content/public/browser/notification_observer.h"
21 #include "content/public/browser/notification_registrar.h" 21 #include "content/public/browser/notification_registrar.h"
22 #include "ui/base/animation/animation_delegate.h" 22 #include "ui/base/animation/animation_delegate.h"
23 #include "ui/base/animation/slide_animation.h" 23 #include "ui/base/animation/slide_animation.h"
24 #include "ui/base/gtk/gtk_signal.h" 24 #include "ui/base/gtk/gtk_signal.h"
25 #include "ui/base/gtk/owned_widget_gtk.h" 25 #include "ui/base/gtk/owned_widget_gtk.h"
26 26
27 class BaseDownloadItemModel; 27 class BaseDownloadItemModel;
28 class DownloadShelfContextMenuGtk; 28 class DownloadShelfContextMenuGtk;
29 class DownloadShelfGtk; 29 class DownloadShelfGtk;
30 class ThemeServiceGtk; 30 class GtkThemeService;
31 class NineBox; 31 class NineBox;
32 32
33 namespace gfx { 33 namespace gfx {
34 class Image; 34 class Image;
35 } 35 }
36 36
37 namespace ui { 37 namespace ui {
38 class SlideAnimation; 38 class SlideAnimation;
39 } 39 }
40 40
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 179
180 // A gtk arrow pointing downward displayed in |menu_button_|. Only displayed 180 // A gtk arrow pointing downward displayed in |menu_button_|. Only displayed
181 // in GTK mode. 181 // in GTK mode.
182 GtkWidget* arrow_; 182 GtkWidget* arrow_;
183 183
184 // Whether the menu is currently showing for |menu_button_|. Affects how we 184 // Whether the menu is currently showing for |menu_button_|. Affects how we
185 // draw the button. 185 // draw the button.
186 bool menu_showing_; 186 bool menu_showing_;
187 187
188 // Whether we should use the GTK text color 188 // Whether we should use the GTK text color
189 ThemeServiceGtk* theme_service_; 189 GtkThemeService* theme_service_;
190 190
191 // The widget that contains the animation progress and the file's icon 191 // The widget that contains the animation progress and the file's icon
192 // (as well as the complete animation). 192 // (as well as the complete animation).
193 ui::OwnedWidgetGtk progress_area_; 193 ui::OwnedWidgetGtk progress_area_;
194 194
195 // In degrees. Only used for downloads with no known total size. 195 // In degrees. Only used for downloads with no known total size.
196 int progress_angle_; 196 int progress_angle_;
197 197
198 // The menu that pops down when the user presses |menu_button_|. We do not 198 // The menu that pops down when the user presses |menu_button_|. We do not
199 // create this until the first time we actually need it. 199 // create this until the first time we actually need it.
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 244
245 // Whether we are currently disabled as part of opening the downloaded file. 245 // Whether we are currently disabled as part of opening the downloaded file.
246 bool disabled_while_opening_; 246 bool disabled_while_opening_;
247 247
248 // Method factory used to delay reenabling of the item when opening the 248 // Method factory used to delay reenabling of the item when opening the
249 // downloaded file. 249 // downloaded file.
250 base::WeakPtrFactory<DownloadItemGtk> weak_ptr_factory_; 250 base::WeakPtrFactory<DownloadItemGtk> weak_ptr_factory_;
251 }; 251 };
252 252
253 #endif // CHROME_BROWSER_UI_GTK_DOWNLOAD_DOWNLOAD_ITEM_GTK_H_ 253 #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