Disable view source for Developer Tools.
[chromium-blink-merge.git] / chrome / browser / ui / gtk / protocol_dialog_gtk.h
blobd69b644c889598d5a759f09f793059ed01044a8e
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"
13 #include "url/gurl.h"
15 typedef struct _GtkWidget GtkWidget;
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();
23 private:
24 CHROMEGTK_CALLBACK_1(ProtocolDialogGtk, void, OnResponse, int);
26 const scoped_ptr<const ProtocolDialogDelegate> delegate_;
27 base::TimeTicks creation_time_;
29 GtkWidget* dialog_;
30 GtkWidget* checkbox_;
32 DISALLOW_COPY_AND_ASSIGN(ProtocolDialogGtk);
35 #endif // CHROME_BROWSER_UI_GTK_PROTOCOL_DIALOG_GTK_H_