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

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

Issue 8632022: Add OVERRIDE to chrome/browser/ui/gtk/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/memory/scoped_ptr.h" 14 #include "base/memory/scoped_ptr.h"
14 #include "base/time.h" 15 #include "base/time.h"
15 #include "base/timer.h" 16 #include "base/timer.h"
16 #include "chrome/browser/icon_manager.h" 17 #include "chrome/browser/icon_manager.h"
17 #include "content/browser/download/download_item.h" 18 #include "content/browser/download/download_item.h"
18 #include "content/public/browser/notification_observer.h" 19 #include "content/public/browser/notification_observer.h"
19 #include "content/public/browser/notification_registrar.h" 20 #include "content/public/browser/notification_registrar.h"
20 #include "ui/base/animation/animation_delegate.h" 21 #include "ui/base/animation/animation_delegate.h"
21 #include "ui/base/animation/slide_animation.h" 22 #include "ui/base/animation/slide_animation.h"
22 #include "ui/base/gtk/gtk_signal.h" 23 #include "ui/base/gtk/gtk_signal.h"
(...skipping 18 matching lines...) Expand all
41 public content::NotificationObserver { 42 public content::NotificationObserver {
42 public: 43 public:
43 // DownloadItemGtk takes ownership of |download_item_model|. 44 // DownloadItemGtk takes ownership of |download_item_model|.
44 DownloadItemGtk(DownloadShelfGtk* parent_shelf, 45 DownloadItemGtk(DownloadShelfGtk* parent_shelf,
45 BaseDownloadItemModel* download_item_model); 46 BaseDownloadItemModel* download_item_model);
46 47
47 // Destroys all widgets belonging to this DownloadItemGtk. 48 // Destroys all widgets belonging to this DownloadItemGtk.
48 virtual ~DownloadItemGtk(); 49 virtual ~DownloadItemGtk();
49 50
50 // DownloadItem::Observer implementation. 51 // DownloadItem::Observer implementation.
51 virtual void OnDownloadUpdated(DownloadItem* download); 52 virtual void OnDownloadUpdated(DownloadItem* download) OVERRIDE;
52 virtual void OnDownloadOpened(DownloadItem* download) { } 53 virtual void OnDownloadOpened(DownloadItem* download) OVERRIDE { }
53 54
54 // ui::AnimationDelegate implementation. 55 // ui::AnimationDelegate implementation.
55 virtual void AnimationProgressed(const ui::Animation* animation); 56 virtual void AnimationProgressed(const ui::Animation* animation) OVERRIDE;
56 57
57 // Overridden from content::NotificationObserver: 58 // Overridden from content::NotificationObserver:
58 virtual void Observe(int type, 59 virtual void Observe(int type,
59 const content::NotificationSource& source, 60 const content::NotificationSource& source,
60 const content::NotificationDetails& details); 61 const content::NotificationDetails& details) OVERRIDE;
61 62
62 // Called when the icon manager has finished loading the icon. We take 63 // Called when the icon manager has finished loading the icon. We take
63 // ownership of |icon_bitmap|. 64 // ownership of |icon_bitmap|.
64 void OnLoadSmallIconComplete(IconManager::Handle handle, 65 void OnLoadSmallIconComplete(IconManager::Handle handle,
65 gfx::Image* image); 66 gfx::Image* image);
66 void OnLoadLargeIconComplete(IconManager::Handle handle, 67 void OnLoadLargeIconComplete(IconManager::Handle handle,
67 gfx::Image* image); 68 gfx::Image* image);
68 69
69 // Returns the DownloadItem model object belonging to this item. 70 // Returns the DownloadItem model object belonging to this item.
70 DownloadItem* get_download(); 71 DownloadItem* get_download();
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 236
236 // For canceling an in progress icon request. 237 // For canceling an in progress icon request.
237 CancelableRequestConsumerT<int, 0> icon_consumer_; 238 CancelableRequestConsumerT<int, 0> icon_consumer_;
238 239
239 // Indicates when the download has completed, so we don't redo 240 // Indicates when the download has completed, so we don't redo
240 // on-completion actions. 241 // on-completion actions.
241 bool download_complete_; 242 bool download_complete_;
242 }; 243 };
243 244
244 #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_drag.h ('k') | chrome/browser/ui/gtk/download/download_shelf_gtk.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698