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

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

Issue 1367083002: Download bar MD overhaul, part 3 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: incl Created 5 years, 3 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/ui/views/download/download_shelf_view.h
diff --git a/chrome/browser/ui/views/download/download_shelf_view.h b/chrome/browser/ui/views/download/download_shelf_view.h
index d4b896956009e33e1df3ec99568bb7db1c277898..083f76a1f7ae1f7fadb921bdaa55192052f18fef 100644
--- a/chrome/browser/ui/views/download/download_shelf_view.h
+++ b/chrome/browser/ui/views/download/download_shelf_view.h
@@ -11,6 +11,7 @@
#include "base/compiler_specific.h"
#include "chrome/browser/download/download_shelf.h"
#include "ui/gfx/animation/animation_delegate.h"
+#include "ui/gfx/animation/slide_animation.h"
#include "ui/views/accessible_pane_view.h"
#include "ui/views/controls/button/button.h"
#include "ui/views/controls/link_listener.h"
@@ -24,10 +25,6 @@ class DownloadItem;
class PageNavigator;
}
-namespace gfx {
-class SlideAnimation;
-}
-
namespace views {
class ImageButton;
class ImageView;
@@ -131,21 +128,21 @@ class DownloadShelfView : public views::AccessiblePaneView,
Browser* browser_;
// The animation for adding new items to the shelf.
- scoped_ptr<gfx::SlideAnimation> new_item_animation_;
+ gfx::SlideAnimation new_item_animation_;
// The show/hide animation for the shelf itself.
- scoped_ptr<gfx::SlideAnimation> shelf_animation_;
+ gfx::SlideAnimation shelf_animation_;
// The download views. These are also child Views, and deleted when
// the DownloadShelfView is deleted.
std::vector<views::View*> download_views_;
// An image displayed on the right of the "Show all downloads..." link.
+ // TODO(estade): not shown in MD; remove.
views::ImageView* arrow_image_;
- // Link for showing all downloads. This is contained as a child, and deleted
- // by View.
- views::Link* show_all_view_;
+ // Link for showing all downloads. For MD this is a system style button.
+ views::View* show_all_view_;
// Button for closing the downloads. This is contained as a child, and
// deleted by View.
« no previous file with comments | « chrome/browser/ui/views/download/download_item_view_md.cc ('k') | chrome/browser/ui/views/download/download_shelf_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698