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

Side by Side Diff: chrome/browser/ui/views/download/download_item_view_md.h

Issue 2042073002: Centered flood fill style ink drop ripples on mouse/touch points. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Polished for review. Created 4 years, 6 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 // A view that implements one download on the Download shelf. 5 // A view that implements one download on the Download shelf.
6 // Each DownloadItemViewMd contains an application icon, a text label 6 // Each DownloadItemViewMd contains an application icon, a text label
7 // indicating the download's file name, a text label indicating the 7 // indicating the download's file name, a text label indicating the
8 // download's status (such as the number of bytes downloaded so far) 8 // download's status (such as the number of bytes downloaded so far)
9 // and a button for canceling an in progress download, or opening 9 // and a button for canceling an in progress download, or opening
10 // the completed download. 10 // the completed download.
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 private: 132 private:
133 enum State { NORMAL = 0, HOT, PUSHED }; 133 enum State { NORMAL = 0, HOT, PUSHED };
134 class DropDownButton; 134 class DropDownButton;
135 135
136 enum Mode { 136 enum Mode {
137 NORMAL_MODE = 0, // Showing download item. 137 NORMAL_MODE = 0, // Showing download item.
138 DANGEROUS_MODE, // Displaying the dangerous download warning. 138 DANGEROUS_MODE, // Displaying the dangerous download warning.
139 MALICIOUS_MODE // Displaying the malicious download warning. 139 MALICIOUS_MODE // Displaying the malicious download warning.
140 }; 140 };
141 141
142 void OpenDownload(); 142 void OpenDownload(const ui::Event& event);
143 143
144 // Submits the downloaded file to the safebrowsing download feedback service. 144 // Submits the downloaded file to the safebrowsing download feedback service.
145 // Returns whether submission was successful. On successful submission, 145 // Returns whether submission was successful. On successful submission,
146 // |this| and the DownloadItem will have been deleted. 146 // |this| and the DownloadItem will have been deleted.
147 bool SubmitDownloadToFeedbackService(); 147 bool SubmitDownloadToFeedbackService();
148 148
149 // If the user has |enabled| uploading, calls SubmitDownloadToFeedbackService. 149 // If the user has |enabled| uploading, calls SubmitDownloadToFeedbackService.
150 // Otherwise, it simply removes the DownloadItem without uploading. 150 // Otherwise, it simply removes the DownloadItem without uploading.
151 void PossiblySubmitDownloadToFeedbackService(bool enabled); 151 void PossiblySubmitDownloadToFeedbackService(bool enabled);
152 152
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
320 std::unique_ptr<extensions::ExperienceSamplingEvent> sampling_event_; 320 std::unique_ptr<extensions::ExperienceSamplingEvent> sampling_event_;
321 321
322 // Method factory used to delay reenabling of the item when opening the 322 // Method factory used to delay reenabling of the item when opening the
323 // downloaded file. 323 // downloaded file.
324 base::WeakPtrFactory<DownloadItemViewMd> weak_ptr_factory_; 324 base::WeakPtrFactory<DownloadItemViewMd> weak_ptr_factory_;
325 325
326 DISALLOW_COPY_AND_ASSIGN(DownloadItemViewMd); 326 DISALLOW_COPY_AND_ASSIGN(DownloadItemViewMd);
327 }; 327 };
328 328
329 #endif // CHROME_BROWSER_UI_VIEWS_DOWNLOAD_DOWNLOAD_ITEM_VIEW_MD_H_ 329 #endif // CHROME_BROWSER_UI_VIEWS_DOWNLOAD_DOWNLOAD_ITEM_VIEW_MD_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698