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

Side by Side Diff: chrome/browser/gtk/download_in_progress_dialog_gtk.cc

Issue 3056029: Move the number conversions from string_util to a new file.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 4 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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_in_progress_dialog_gtk.h" 5 #include "chrome/browser/gtk/download_in_progress_dialog_gtk.h"
6 6
7 #include <gtk/gtk.h> 7 #include <gtk/gtk.h>
8 8
9 #include "app/l10n_util.h" 9 #include "app/l10n_util.h"
10 #include "base/string_number_conversions.h"
10 #include "base/string16.h" 11 #include "base/string16.h"
11 #include "chrome/browser/browser.h" 12 #include "chrome/browser/browser.h"
12 #include "chrome/browser/browser_window.h" 13 #include "chrome/browser/browser_window.h"
13 #include "chrome/browser/download/download_manager.h" 14 #include "chrome/browser/download/download_manager.h"
14 #include "chrome/browser/gtk/gtk_util.h" 15 #include "chrome/browser/gtk/gtk_util.h"
15 #include "chrome/browser/profile.h" 16 #include "chrome/browser/profile.h"
16 #include "grit/chromium_strings.h" 17 #include "grit/chromium_strings.h"
17 #include "grit/generated_resources.h" 18 #include "grit/generated_resources.h"
18 19
19 DownloadInProgressDialogGtk::DownloadInProgressDialogGtk(Browser* browser) 20 DownloadInProgressDialogGtk::DownloadInProgressDialogGtk(Browser* browser)
(...skipping 14 matching lines...) Expand all
34 l10n_util::GetStringFUTF8( 35 l10n_util::GetStringFUTF8(
35 IDS_SINGLE_DOWNLOAD_REMOVE_CONFIRM_EXPLANATION, 36 IDS_SINGLE_DOWNLOAD_REMOVE_CONFIRM_EXPLANATION,
36 product_name); 37 product_name);
37 ok_button_text = l10n_util::GetStringUTF8( 38 ok_button_text = l10n_util::GetStringUTF8(
38 IDS_SINGLE_DOWNLOAD_REMOVE_CONFIRM_OK_BUTTON_LABEL); 39 IDS_SINGLE_DOWNLOAD_REMOVE_CONFIRM_OK_BUTTON_LABEL);
39 cancel_button_text = l10n_util::GetStringUTF8( 40 cancel_button_text = l10n_util::GetStringUTF8(
40 IDS_SINGLE_DOWNLOAD_REMOVE_CONFIRM_CANCEL_BUTTON_LABEL); 41 IDS_SINGLE_DOWNLOAD_REMOVE_CONFIRM_CANCEL_BUTTON_LABEL);
41 } else { 42 } else {
42 warning_text = 43 warning_text =
43 l10n_util::GetStringFUTF8(IDS_MULTIPLE_DOWNLOADS_REMOVE_CONFIRM_WARNING, 44 l10n_util::GetStringFUTF8(IDS_MULTIPLE_DOWNLOADS_REMOVE_CONFIRM_WARNING,
44 product_name, IntToString16(download_count)); 45 product_name,
46 base::IntToString16(download_count));
45 explanation_text = 47 explanation_text =
46 l10n_util::GetStringFUTF8( 48 l10n_util::GetStringFUTF8(
47 IDS_MULTIPLE_DOWNLOADS_REMOVE_CONFIRM_EXPLANATION, product_name); 49 IDS_MULTIPLE_DOWNLOADS_REMOVE_CONFIRM_EXPLANATION, product_name);
48 ok_button_text = l10n_util::GetStringUTF8( 50 ok_button_text = l10n_util::GetStringUTF8(
49 IDS_MULTIPLE_DOWNLOADS_REMOVE_CONFIRM_OK_BUTTON_LABEL); 51 IDS_MULTIPLE_DOWNLOADS_REMOVE_CONFIRM_OK_BUTTON_LABEL);
50 cancel_button_text = l10n_util::GetStringUTF8( 52 cancel_button_text = l10n_util::GetStringUTF8(
51 IDS_MULTIPLE_DOWNLOADS_REMOVE_CONFIRM_CANCEL_BUTTON_LABEL); 53 IDS_MULTIPLE_DOWNLOADS_REMOVE_CONFIRM_CANCEL_BUTTON_LABEL);
52 } 54 }
53 55
54 GtkWidget* dialog = gtk_message_dialog_new( 56 GtkWidget* dialog = gtk_message_dialog_new(
(...skipping 18 matching lines...) Expand all
73 75
74 gtk_widget_show_all(dialog); 76 gtk_widget_show_all(dialog);
75 } 77 }
76 78
77 void DownloadInProgressDialogGtk::OnResponse(GtkWidget* widget, 79 void DownloadInProgressDialogGtk::OnResponse(GtkWidget* widget,
78 int response) { 80 int response) {
79 gtk_widget_destroy(widget); 81 gtk_widget_destroy(widget);
80 browser_->InProgressDownloadResponse(response == GTK_RESPONSE_ACCEPT); 82 browser_->InProgressDownloadResponse(response == GTK_RESPONSE_ACCEPT);
81 delete this; 83 delete this;
82 } 84 }
OLDNEW
« no previous file with comments | « chrome/browser/geolocation/network_location_request.cc ('k') | chrome/browser/gtk/find_bar_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698