| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 #include "chrome/browser/gtk/download_item_gtk.h" | 5 #include "chrome/browser/gtk/download_item_gtk.h" |
| 6 | 6 |
| 7 #include "app/l10n_util.h" | 7 #include "app/l10n_util.h" |
| 8 #include "app/gfx/canvas.h" | 8 #include "app/gfx/canvas_paint.h" |
| 9 #include "app/gfx/font.h" | 9 #include "app/gfx/font.h" |
| 10 #include "app/gfx/text_elider.h" | 10 #include "app/gfx/text_elider.h" |
| 11 #include "app/resource_bundle.h" | 11 #include "app/resource_bundle.h" |
| 12 #include "app/slide_animation.h" | 12 #include "app/slide_animation.h" |
| 13 #include "base/basictypes.h" | 13 #include "base/basictypes.h" |
| 14 #include "base/string_util.h" | 14 #include "base/string_util.h" |
| 15 #include "base/time.h" | 15 #include "base/time.h" |
| 16 #include "chrome/browser/browser_process.h" | 16 #include "chrome/browser/browser_process.h" |
| 17 #include "chrome/browser/download/download_item_model.h" | 17 #include "chrome/browser/download/download_item_model.h" |
| 18 #include "chrome/browser/download/download_manager.h" | 18 #include "chrome/browser/download/download_manager.h" |
| (...skipping 645 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 664 item->get_download()); | 664 item->get_download()); |
| 665 } | 665 } |
| 666 | 666 |
| 667 // static | 667 // static |
| 668 void DownloadItemGtk::OnDangerousDecline(GtkWidget* button, | 668 void DownloadItemGtk::OnDangerousDecline(GtkWidget* button, |
| 669 DownloadItemGtk* item) { | 669 DownloadItemGtk* item) { |
| 670 if (item->get_download()->state() == DownloadItem::IN_PROGRESS) | 670 if (item->get_download()->state() == DownloadItem::IN_PROGRESS) |
| 671 item->get_download()->Cancel(true); | 671 item->get_download()->Cancel(true); |
| 672 item->get_download()->Remove(true); | 672 item->get_download()->Remove(true); |
| 673 } | 673 } |
| OLD | NEW |