diff options
Diffstat (limited to 'chrome/browser/views/download_shelf_view.h')
-rw-r--r-- | chrome/browser/views/download_shelf_view.h | 28 |
1 files changed, 13 insertions, 15 deletions
diff --git a/chrome/browser/views/download_shelf_view.h b/chrome/browser/views/download_shelf_view.h index 35e5b2c..35213a8 100644 --- a/chrome/browser/views/download_shelf_view.h +++ b/chrome/browser/views/download_shelf_view.h @@ -9,8 +9,8 @@ #include "chrome/views/button.h" #include "chrome/views/link.h" -namespace ChromeViews { - class ImageView; +namespace views { +class ImageView; } class DownloadItem; @@ -26,9 +26,9 @@ class DownloadAnimation; // DownloadShelfView does not hold an infinite number of download views, rather // it'll automatically remove views once a certain point is reached. As such, // the remove method is private. -class DownloadShelfView : public ChromeViews::View, - public ChromeViews::BaseButton::ButtonListener, - public ChromeViews::LinkController, +class DownloadShelfView : public views::View, + public views::BaseButton::ButtonListener, + public views::LinkController, public AnimationDelegate { public: DownloadShelfView(TabContents* tab_contents); @@ -49,20 +49,20 @@ class DownloadShelfView : public ChromeViews::View, virtual void AnimationEnded(const Animation* animation); // Invoked when the user clicks the 'show all downloads' link button. - virtual void LinkActivated(ChromeViews::Link* source, int event_flags); + virtual void LinkActivated(views::Link* source, int event_flags); // Invoked when the user clicks the close button. Asks the browser to // hide the download shelf. - virtual void ButtonPressed(ChromeViews::BaseButton* button); + virtual void ButtonPressed(views::BaseButton* button); // Removes a specified download view. The supplied view is deleted after // it's removed. - void RemoveDownloadView(ChromeViews::View* view); + void RemoveDownloadView(views::View* view); // Adds a View representing a download to this DownloadShelfView. // DownloadShelfView takes ownership of the View, and will delete it as // necessary. - void AddDownloadView(ChromeViews::View* view); + void AddDownloadView(views::View* view); // Invoked when the download shelf is migrated from one tab contents to a new // one. @@ -79,9 +79,7 @@ class DownloadShelfView : public ChromeViews::View, void PaintSeparators(ChromeCanvas* canvas); // Paints the separator between the two views. - void PaintSeparator(ChromeCanvas* canvas, - ChromeViews::View* v1, - ChromeViews::View* v2); + void PaintSeparator(ChromeCanvas* canvas, views::View* v1, views::View* v2); TabContents* tab_contents_; @@ -96,15 +94,15 @@ class DownloadShelfView : public ChromeViews::View, std::vector<View*> download_views_; // An image displayed on the right of the "Show all downloads..." link. - ChromeViews::ImageView* arrow_image_; + views::ImageView* arrow_image_; // Link for showing all downloads. This is contained as a child, and deleted // by View. - ChromeViews::Link* show_all_view_; + views::Link* show_all_view_; // Button for closing the downloads. This is contained as a child, and // deleted by View. - ChromeViews::Button* close_button_; + views::Button* close_button_; DISALLOW_EVIL_CONSTRUCTORS(DownloadShelfView); }; |