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

Unified Diff: chrome/browser/download/download_item_model.h

Issue 9968090: Added download error descriptions to tooltips for Mac & Linux. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed GCC compile issue. 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/download/download_item_model.h
diff --git a/chrome/browser/download/download_item_model.h b/chrome/browser/download/download_item_model.h
index bddf911174a547b5a59554e051285e94747099c9..5c2e21b725d93e3d255f754d8d1ead3410212aaf 100644
--- a/chrome/browser/download/download_item_model.h
+++ b/chrome/browser/download/download_item_model.h
@@ -32,6 +32,9 @@ class BaseDownloadItemModel {
// Cancel the task corresponding to the item.
virtual void CancelTask() = 0;
+ // Get the progress text to display.
asanka 2012/04/04 17:27:04 Consider adding some example text here.
ahendrickson 2012/04/04 17:49:32 Done.
+ virtual string16 GetProgressText() = 0;
+
// Get the status text to display.
virtual string16 GetStatusText() = 0;
@@ -74,6 +77,7 @@ class DownloadItemModel : public BaseDownloadItemModel {
// BaseDownloadItemModel
virtual void CancelTask() OVERRIDE;
+ virtual string16 GetProgressText() OVERRIDE;
virtual string16 GetStatusText() OVERRIDE;
virtual int PercentComplete() const OVERRIDE;
virtual string16 GetWarningText(const gfx::Font& font,
@@ -83,6 +87,11 @@ class DownloadItemModel : public BaseDownloadItemModel {
virtual bool IsDangerous() OVERRIDE;
private:
+ bool GetStatusData(int64* size_return,
sky 2012/04/04 16:55:34 Add a description of this, including what the retu
ahendrickson 2012/04/04 17:49:32 Done.
+ int64* total_return,
+ string16* simple_size_return,
+ string16* simple_total_return);
+
DISALLOW_COPY_AND_ASSIGN(DownloadItemModel);
};

Powered by Google App Engine
This is Rietveld 408576698