| OLD | NEW |
| 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_ |
| OLD | NEW |