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

Side by Side Diff: chrome/browser/gtk/external_protocol_dialog_gtk.h

Issue 1118005: GTK: More transitions to thunk definition macros. (Closed)
Patch Set: Created 10 years, 9 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
OLDNEW
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 #ifndef CHROME_BROWSER_GTK_EXTERNAL_PROTOCOL_DIALOG_GTK_H_ 5 #ifndef CHROME_BROWSER_GTK_EXTERNAL_PROTOCOL_DIALOG_GTK_H_
6 #define CHROME_BROWSER_GTK_EXTERNAL_PROTOCOL_DIALOG_GTK_H_ 6 #define CHROME_BROWSER_GTK_EXTERNAL_PROTOCOL_DIALOG_GTK_H_
7 7
8 #include "app/gtk_signal.h"
8 #include "base/time.h" 9 #include "base/time.h"
9 #include "googleurl/src/gurl.h" 10 #include "googleurl/src/gurl.h"
10 11
11 class TabContents; 12 class TabContents;
12 13
13 typedef struct _GtkWidget GtkWidget; 14 typedef struct _GtkWidget GtkWidget;
14 15
15 class ExternalProtocolDialogGtk { 16 class ExternalProtocolDialogGtk {
16 public: 17 public:
17 explicit ExternalProtocolDialogGtk(const GURL& url); 18 explicit ExternalProtocolDialogGtk(const GURL& url);
18 19
19 private: 20 private:
20 static void OnDialogResponseThunk(GtkWidget* widget, 21 CHROMEGTK_CALLBACK_1(ExternalProtocolDialogGtk, void, OnDialogResponse, int);
21 int response,
22 ExternalProtocolDialogGtk* dialog) {
23 dialog->OnDialogResponse(response);
24 }
25 void OnDialogResponse(int response);
26 22
27 GtkWidget* dialog_; 23 GtkWidget* dialog_;
28 GtkWidget* checkbox_; 24 GtkWidget* checkbox_;
29 GURL url_; 25 GURL url_;
30 base::Time creation_time_; 26 base::Time creation_time_;
31 }; 27 };
32 28
33 #endif // CHROME_BROWSER_GTK_EXTERNAL_PROTOCOL_DIALOG_GTK_H_ 29 #endif // CHROME_BROWSER_GTK_EXTERNAL_PROTOCOL_DIALOG_GTK_H_
OLDNEW
« no previous file with comments | « chrome/browser/gtk/bookmark_menu_controller_gtk.cc ('k') | chrome/browser/gtk/external_protocol_dialog_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698