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/basictypes.h" |
10 #include "base/time.h" | 10 #include "base/time.h" |
11 #include "googleurl/src/gurl.h" | 11 #include "googleurl/src/gurl.h" |
12 #include "ui/base/gtk/gtk_signal.h" | 12 #include "ui/base/gtk/gtk_signal.h" |
13 | 13 |
14 typedef struct _GtkWidget GtkWidget; | 14 typedef struct _GtkWidget GtkWidget; |
15 | 15 |
16 class ExternalProtocolDialogGtk { | 16 class ExternalProtocolDialogGtk { |
17 public: | 17 public: |
18 explicit ExternalProtocolDialogGtk(const GURL& url); | 18 explicit ExternalProtocolDialogGtk(const GURL& url); |
19 ~ExternalProtocolDialogGtk(); | 19 virtual ~ExternalProtocolDialogGtk(); |
20 | 20 |
21 private: | 21 private: |
22 CHROMEGTK_CALLBACK_1(ExternalProtocolDialogGtk, void, OnResponse, int); | 22 CHROMEGTK_CALLBACK_1(ExternalProtocolDialogGtk, void, OnResponse, int); |
23 | 23 |
24 GtkWidget* dialog_; | 24 GtkWidget* dialog_; |
25 GtkWidget* checkbox_; | 25 GtkWidget* checkbox_; |
26 GURL url_; | 26 GURL url_; |
27 base::TimeTicks creation_time_; | 27 base::TimeTicks creation_time_; |
28 | 28 |
29 DISALLOW_COPY_AND_ASSIGN(ExternalProtocolDialogGtk); | 29 DISALLOW_COPY_AND_ASSIGN(ExternalProtocolDialogGtk); |
30 }; | 30 }; |
31 | 31 |
32 #endif // CHROME_BROWSER_UI_GTK_EXTERNAL_PROTOCOL_DIALOG_GTK_H_ | 32 #endif // CHROME_BROWSER_UI_GTK_EXTERNAL_PROTOCOL_DIALOG_GTK_H_ |
OLD | NEW |