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

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

Issue 2033553003: Add MD ink drop ripple to shelf app items (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added tests 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 class Image; 46 class Image;
47 class ImageSkia; 47 class ImageSkia;
48 class SlideAnimation; 48 class SlideAnimation;
49 } 49 }
50 50
51 namespace ui { 51 namespace ui {
52 class ThemeProvider; 52 class ThemeProvider;
53 } 53 }
54 54
55 namespace views { 55 namespace views {
56 class ButtonInkDropDelegate;
57 class ImageButton; 56 class ImageButton;
58 class Label; 57 class Label;
59 class LabelButton; 58 class LabelButton;
60 } 59 }
61 60
62 // The DownloadItemView in MD style. This is copied from DownloadItemView, 61 // The DownloadItemView in MD style. This is copied from DownloadItemView,
63 // which it should eventually replace. 62 // which it should eventually replace.
64 class DownloadItemViewMd : public views::InkDropHostView, 63 class DownloadItemViewMd : public views::InkDropHostView,
65 public views::ButtonListener, 64 public views::ButtonListener,
66 public views::ContextMenuController, 65 public views::ContextMenuController,
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after
320 std::unique_ptr<extensions::ExperienceSamplingEvent> sampling_event_; 319 std::unique_ptr<extensions::ExperienceSamplingEvent> sampling_event_;
321 320
322 // Method factory used to delay reenabling of the item when opening the 321 // Method factory used to delay reenabling of the item when opening the
323 // downloaded file. 322 // downloaded file.
324 base::WeakPtrFactory<DownloadItemViewMd> weak_ptr_factory_; 323 base::WeakPtrFactory<DownloadItemViewMd> weak_ptr_factory_;
325 324
326 DISALLOW_COPY_AND_ASSIGN(DownloadItemViewMd); 325 DISALLOW_COPY_AND_ASSIGN(DownloadItemViewMd);
327 }; 326 };
328 327
329 #endif // CHROME_BROWSER_UI_VIEWS_DOWNLOAD_DOWNLOAD_ITEM_VIEW_MD_H_ 328 #endif // CHROME_BROWSER_UI_VIEWS_DOWNLOAD_DOWNLOAD_ITEM_VIEW_MD_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698