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

Unified Diff: chrome/browser/gtk/js_modal_dialog_gtk.h

Issue 5999008: gtk: Cleanup JSModalDialogGtk implementation. (Closed)
Patch Set: Created 10 years 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
« no previous file with comments | « no previous file | chrome/browser/gtk/js_modal_dialog_gtk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/gtk/js_modal_dialog_gtk.h
diff --git a/chrome/browser/gtk/js_modal_dialog_gtk.h b/chrome/browser/gtk/js_modal_dialog_gtk.h
index 47ca0ca204ba3676cabdc5a9efafd6edccd08929..a6a132b9a7da2deab724d3d1de1f4ea3b6970479 100644
--- a/chrome/browser/gtk/js_modal_dialog_gtk.h
+++ b/chrome/browser/gtk/js_modal_dialog_gtk.h
@@ -6,14 +6,14 @@
#define CHROME_BROWSER_GTK_JS_MODAL_DIALOG_GTK_H_
#pragma once
-#include <gtk/gtk.h>
-
#include "app/gtk_signal.h"
-#include "base/logging.h"
+#include "base/basictypes.h"
#include "base/scoped_ptr.h"
#include "chrome/browser/ui/app_modal_dialogs/native_app_modal_dialog.h"
#include "gfx/native_widget_types.h"
+typedef struct _GtkWidget GtkWidget;
+
class JavaScriptAppModalDialog;
class JSModalDialogGtk : public NativeAppModalDialog {
@@ -31,9 +31,7 @@ class JSModalDialogGtk : public NativeAppModalDialog {
virtual void CancelAppModalDialog();
private:
- void HandleDialogResponse(GtkDialog* dialog, gint response_id);
- static void OnDialogResponse(GtkDialog* gtk_dialog, gint response_id,
- JSModalDialogGtk* dialog);
+ CHROMEGTK_CALLBACK_1(JSModalDialogGtk, void, OnDialogResponse, int);
scoped_ptr<JavaScriptAppModalDialog> dialog_;
GtkWidget* gtk_dialog_;
@@ -42,4 +40,3 @@ class JSModalDialogGtk : public NativeAppModalDialog {
};
#endif // CHROME_BROWSER_GTK_JS_MODAL_DIALOG_GTK_H_
-
« no previous file with comments | « no previous file | chrome/browser/gtk/js_modal_dialog_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698