1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_UI_GTK_PROTOCOL_DIALOG_GTK_H_
6 #define CHROME_BROWSER_UI_GTK_PROTOCOL_DIALOG_GTK_H_
8 #include "base/basictypes.h"
9 #include "base/memory/scoped_ptr.h"
10 #include "base/time/time.h"
11 #include "chrome/browser/ui/protocol_dialog_delegate.h"
12 #include "ui/base/gtk/gtk_signal.h"
15 typedef struct _GtkWidget GtkWidget;
17 // Gtk implementation of a dialog for handling special protocols.
18 class ProtocolDialogGtk {
20 explicit ProtocolDialogGtk(scoped_ptr<const ProtocolDialogDelegate> delegate);
21 virtual ~ProtocolDialogGtk();
24 CHROMEGTK_CALLBACK_1(ProtocolDialogGtk, void, OnResponse, int);
26 const scoped_ptr<const ProtocolDialogDelegate> delegate_;
27 base::TimeTicks creation_time_;
32 DISALLOW_COPY_AND_ASSIGN(ProtocolDialogGtk);
35 #endif // CHROME_BROWSER_UI_GTK_PROTOCOL_DIALOG_GTK_H_