| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_UI_GTK_EXTERNAL_PROTOCOL_DIALOG_GTK_H_ | 5 #ifndef CHROME_BROWSER_UI_GTK_EXTERNAL_PROTOCOL_DIALOG_GTK_H_ |
| 6 #define CHROME_BROWSER_UI_GTK_EXTERNAL_PROTOCOL_DIALOG_GTK_H_ | 6 #define CHROME_BROWSER_UI_GTK_EXTERNAL_PROTOCOL_DIALOG_GTK_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/basictypes.h" |
| 9 #include "base/time.h" | 10 #include "base/time.h" |
| 10 #include "googleurl/src/gurl.h" | 11 #include "googleurl/src/gurl.h" |
| 11 #include "ui/base/gtk/gtk_signal.h" | 12 #include "ui/base/gtk/gtk_signal.h" |
| 12 | 13 |
| 13 class TabContents; | |
| 14 | |
| 15 typedef struct _GtkWidget GtkWidget; | 14 typedef struct _GtkWidget GtkWidget; |
| 16 | 15 |
| 17 class ExternalProtocolDialogGtk { | 16 class ExternalProtocolDialogGtk { |
| 18 public: | 17 public: |
| 19 explicit ExternalProtocolDialogGtk(const GURL& url); | 18 explicit ExternalProtocolDialogGtk(const GURL& url); |
| 20 | 19 ~ExternalProtocolDialogGtk(); |
| 21 protected: | |
| 22 virtual ~ExternalProtocolDialogGtk() {} | |
| 23 | 20 |
| 24 private: | 21 private: |
| 25 CHROMEGTK_CALLBACK_1(ExternalProtocolDialogGtk, void, OnDialogResponse, int); | 22 CHROMEGTK_CALLBACK_1(ExternalProtocolDialogGtk, void, OnResponse, int); |
| 26 | 23 |
| 27 GtkWidget* dialog_; | 24 GtkWidget* dialog_; |
| 28 GtkWidget* checkbox_; | 25 GtkWidget* checkbox_; |
| 29 GURL url_; | 26 GURL url_; |
| 30 base::TimeTicks creation_time_; | 27 base::TimeTicks creation_time_; |
| 28 |
| 29 DISALLOW_COPY_AND_ASSIGN(ExternalProtocolDialogGtk); |
| 31 }; | 30 }; |
| 32 | 31 |
| 33 #endif // CHROME_BROWSER_UI_GTK_EXTERNAL_PROTOCOL_DIALOG_GTK_H_ | 32 #endif // CHROME_BROWSER_UI_GTK_EXTERNAL_PROTOCOL_DIALOG_GTK_H_ |
| OLD | NEW |