Upstream version 7.35.144.0
[platform/framework/web/crosswalk.git] / src / chrome / browser / ui / gtk / protocol_dialog_gtk.h
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.
4
5 #ifndef CHROME_BROWSER_UI_GTK_PROTOCOL_DIALOG_GTK_H_
6 #define CHROME_BROWSER_UI_GTK_PROTOCOL_DIALOG_GTK_H_
7
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"
13 #include "url/gurl.h"
14
15 typedef struct _GtkWidget GtkWidget;
16
17 // Gtk implementation of a dialog for handling special protocols.
18 class ProtocolDialogGtk {
19  public:
20   explicit ProtocolDialogGtk(scoped_ptr<const ProtocolDialogDelegate> delegate);
21   virtual ~ProtocolDialogGtk();
22
23  private:
24   CHROMEGTK_CALLBACK_1(ProtocolDialogGtk, void, OnResponse, int);
25
26   const scoped_ptr<const ProtocolDialogDelegate> delegate_;
27   base::TimeTicks creation_time_;
28
29   GtkWidget* dialog_;
30   GtkWidget* checkbox_;
31
32   DISALLOW_COPY_AND_ASSIGN(ProtocolDialogGtk);
33 };
34
35 #endif  // CHROME_BROWSER_UI_GTK_PROTOCOL_DIALOG_GTK_H_