| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/ui/gtk/download_in_progress_dialog_gtk.h" | 5 #include "chrome/browser/ui/gtk/download_in_progress_dialog_gtk.h" |
| 6 | 6 |
| 7 #include <gtk/gtk.h> | 7 #include <gtk/gtk.h> |
| 8 | 8 |
| 9 #include "base/string16.h" | 9 #include "base/string16.h" |
| 10 #include "base/string_number_conversions.h" | 10 #include "base/string_number_conversions.h" |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 | 69 |
| 70 gtk_message_dialog_format_secondary_text(GTK_MESSAGE_DIALOG(dialog), | 70 gtk_message_dialog_format_secondary_text(GTK_MESSAGE_DIALOG(dialog), |
| 71 "%s", | 71 "%s", |
| 72 explanation_text.c_str()); | 72 explanation_text.c_str()); |
| 73 | 73 |
| 74 g_signal_connect(dialog, "response", G_CALLBACK(OnResponseThunk), this); | 74 g_signal_connect(dialog, "response", G_CALLBACK(OnResponseThunk), this); |
| 75 | 75 |
| 76 gtk_widget_show_all(dialog); | 76 gtk_widget_show_all(dialog); |
| 77 } | 77 } |
| 78 | 78 |
| 79 void DownloadInProgressDialogGtk::OnResponse(GtkWidget* widget, | 79 void DownloadInProgressDialogGtk::OnResponse(GtkWidget* dialog, |
| 80 int response) { | 80 int response_id) { |
| 81 gtk_widget_destroy(widget); | 81 gtk_widget_destroy(dialog); |
| 82 browser_->InProgressDownloadResponse(response == GTK_RESPONSE_ACCEPT); | 82 browser_->InProgressDownloadResponse(response_id == GTK_RESPONSE_ACCEPT); |
| 83 delete this; | 83 delete this; |
| 84 } | 84 } |
| OLD | NEW |