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

Unified Diff: chrome/browser/ui/gtk/hung_renderer_dialog_gtk.cc

Issue 6627038: gtk: Rename OnDialogResponse() to OnResponse() to standardize on a consistent naming scheme. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/gtk/hung_renderer_dialog_gtk.cc
diff --git a/chrome/browser/ui/gtk/hung_renderer_dialog_gtk.cc b/chrome/browser/ui/gtk/hung_renderer_dialog_gtk.cc
index d5a88871e5e5910e47f688e537145a82eb506371..4a4d0f7e1b00b900a986f52daf60dbcff2f05c1f 100644
--- a/chrome/browser/ui/gtk/hung_renderer_dialog_gtk.cc
+++ b/chrome/browser/ui/gtk/hung_renderer_dialog_gtk.cc
@@ -44,7 +44,7 @@ class HungRendererDialogGtk {
// Create the gtk dialog and add the widgets.
void Init();
- CHROMEGTK_CALLBACK_1(HungRendererDialogGtk, void, OnDialogResponse, gint);
+ CHROMEGTK_CALLBACK_1(HungRendererDialogGtk, void, OnResponse, int);
GtkDialog* dialog_;
GtkListStore* model_;
@@ -76,8 +76,7 @@ void HungRendererDialogGtk::Init() {
GTK_RESPONSE_OK,
NULL));
gtk_dialog_set_default_response(dialog_, GTK_RESPONSE_OK);
- g_signal_connect(dialog_, "response",
- G_CALLBACK(OnDialogResponseThunk), this);
+ g_signal_connect(dialog_, "response", G_CALLBACK(OnResponseThunk), this);
// We have an hbox with the frozen icon on the left. On the right,
// we have a vbox with the unresponsive text on top and a table of
@@ -182,8 +181,7 @@ void HungRendererDialogGtk::EndForTabContents(TabContents* contents) {
// When the user clicks a button on the dialog or closes the dialog, this
// callback is called.
-void HungRendererDialogGtk::OnDialogResponse(GtkWidget* widget,
- gint response_id) {
+void HungRendererDialogGtk::OnResponse(GtkWidget* dialog, int response_id) {
DCHECK(g_instance == this);
switch (response_id) {
case kKillPagesButtonResponse:
« no previous file with comments | « chrome/browser/ui/gtk/external_protocol_dialog_gtk.cc ('k') | chrome/browser/ui/gtk/importer/import_dialog_gtk.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698