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

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

Issue 13584010: views: Migrate the cases of "new .*NativeTextButton(" to LabelButton. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: back out the changes to one_click_signin_bubble_view.* Created 7 years, 8 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 ChromeView that implements one download on the Download shelf. 5 // A ChromeView that implements one download on the Download shelf.
6 // Each DownloadItemView contains an application icon, a text label 6 // Each DownloadItemView 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 class Image; 42 class Image;
43 class ImageSkia; 43 class ImageSkia;
44 } 44 }
45 45
46 namespace ui { 46 namespace ui {
47 class SlideAnimation; 47 class SlideAnimation;
48 } 48 }
49 49
50 namespace views { 50 namespace views {
51 class Label; 51 class Label;
52 class TextButton; 52 class LabelButton;
53 } 53 }
54 54
55 class DownloadItemView : public views::ButtonListener, 55 class DownloadItemView : public views::ButtonListener,
56 public views::View, 56 public views::View,
57 public views::ContextMenuController, 57 public views::ContextMenuController,
58 public content::DownloadItem::Observer, 58 public content::DownloadItem::Observer,
59 public ui::AnimationDelegate { 59 public ui::AnimationDelegate {
60 public: 60 public:
61 DownloadItemView(content::DownloadItem* download, 61 DownloadItemView(content::DownloadItem* download,
62 DownloadShelfView* parent); 62 DownloadShelfView* parent);
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
286 scoped_ptr<ui::SlideAnimation> body_hover_animation_; 286 scoped_ptr<ui::SlideAnimation> body_hover_animation_;
287 scoped_ptr<ui::SlideAnimation> drop_hover_animation_; 287 scoped_ptr<ui::SlideAnimation> drop_hover_animation_;
288 288
289 // Animation for download complete. 289 // Animation for download complete.
290 scoped_ptr<ui::SlideAnimation> complete_animation_; 290 scoped_ptr<ui::SlideAnimation> complete_animation_;
291 291
292 // Progress animation 292 // Progress animation
293 base::RepeatingTimer<DownloadItemView> progress_timer_; 293 base::RepeatingTimer<DownloadItemView> progress_timer_;
294 294
295 // Dangerous mode buttons. 295 // Dangerous mode buttons.
296 views::TextButton* save_button_; 296 views::LabelButton* save_button_;
297 views::TextButton* discard_button_; 297 views::LabelButton* discard_button_;
298 298
299 // Dangerous mode label. 299 // Dangerous mode label.
300 views::Label* dangerous_download_label_; 300 views::Label* dangerous_download_label_;
301 301
302 // Whether the dangerous mode label has been sized yet. 302 // Whether the dangerous mode label has been sized yet.
303 bool dangerous_download_label_sized_; 303 bool dangerous_download_label_sized_;
304 304
305 // The size of the buttons. Cached so animation works when hidden. 305 // The size of the buttons. Cached so animation works when hidden.
306 gfx::Size cached_button_size_; 306 gfx::Size cached_button_size_;
307 307
(...skipping 15 matching lines...) Expand all
323 323
324 // The icon loaded in the download shelf is based on the file path of the 324 // The icon loaded in the download shelf is based on the file path of the
325 // item. Store the path used, so that we can detect a change in the path 325 // item. Store the path used, so that we can detect a change in the path
326 // and reload the icon. 326 // and reload the icon.
327 base::FilePath last_download_item_path_; 327 base::FilePath last_download_item_path_;
328 328
329 DISALLOW_COPY_AND_ASSIGN(DownloadItemView); 329 DISALLOW_COPY_AND_ASSIGN(DownloadItemView);
330 }; 330 };
331 331
332 #endif // CHROME_BROWSER_UI_VIEWS_DOWNLOAD_DOWNLOAD_ITEM_VIEW_H__ 332 #endif // CHROME_BROWSER_UI_VIEWS_DOWNLOAD_DOWNLOAD_ITEM_VIEW_H__
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/critical_notification_bubble_view.cc ('k') | chrome/browser/ui/views/download/download_item_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698