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

Unified Diff: chrome/browser/ui/views/download/download_item_view.h

Issue 1538773002: Reduce CPU usage of download shelf UI. (both MD and pre-MD shelves) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: warning dialog tested (fix MD only bug) Created 4 years, 11 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
« no previous file with comments | « no previous file | chrome/browser/ui/views/download/download_item_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/download/download_item_view.h
diff --git a/chrome/browser/ui/views/download/download_item_view.h b/chrome/browser/ui/views/download/download_item_view.h
index 44745249f77302f29f3213c799511a055da946c7..9e4af8b4691558b427329d9da48bec386b953201 100644
--- a/chrome/browser/ui/views/download/download_item_view.h
+++ b/chrome/browser/ui/views/download/download_item_view.h
@@ -192,6 +192,9 @@ class DownloadItemView : public views::ButtonListener,
return mode_ == DANGEROUS_MODE || mode_ == MALICIOUS_MODE;
}
+ // Clears or shows the warning dialog as per the state of |model_|.
+ void ToggleWarningDialog();
+
// Reverts from dangerous mode to normal download mode.
void ClearWarningDialog();
@@ -232,6 +235,9 @@ class DownloadItemView : public views::ButtonListener,
void AnimateStateTransition(State from, State to,
gfx::SlideAnimation* animation);
+ // Callback for |progress_timer_|.
+ void ProgressTimerFired();
+
// The different images used for the background.
BodyImageSet normal_body_image_set_;
BodyImageSet hot_body_image_set_;
« no previous file with comments | « no previous file | chrome/browser/ui/views/download/download_item_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698