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_REPOST_FORM_WARNING_GTK_H_ | 5 #ifndef CHROME_BROWSER_UI_GTK_REPOST_FORM_WARNING_GTK_H_ |
6 #define CHROME_BROWSER_UI_GTK_REPOST_FORM_WARNING_GTK_H_ | 6 #define CHROME_BROWSER_UI_GTK_REPOST_FORM_WARNING_GTK_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <gtk/gtk.h> | 9 #include <gtk/gtk.h> |
10 | 10 |
11 #include "app/gtk_signal.h" | |
12 #include "base/scoped_ptr.h" | 11 #include "base/scoped_ptr.h" |
13 #include "chrome/browser/ui/gtk/constrained_window_gtk.h" | 12 #include "chrome/browser/ui/gtk/constrained_window_gtk.h" |
| 13 #include "ui/base/gtk/gtk_signal.h" |
14 | 14 |
15 class RepostFormWarningController; | 15 class RepostFormWarningController; |
16 | 16 |
17 // Displays a dialog that warns the user that they are about to resubmit | 17 // Displays a dialog that warns the user that they are about to resubmit |
18 // a form. | 18 // a form. |
19 // To display the dialog, allocate this object on the heap. It will open the | 19 // To display the dialog, allocate this object on the heap. It will open the |
20 // dialog from its constructor and then delete itself when the user dismisses | 20 // dialog from its constructor and then delete itself when the user dismisses |
21 // the dialog. | 21 // the dialog. |
22 class RepostFormWarningGtk : public ConstrainedDialogDelegate { | 22 class RepostFormWarningGtk : public ConstrainedDialogDelegate { |
23 public: | 23 public: |
(...skipping 18 matching lines...) Expand all Loading... |
42 scoped_ptr<RepostFormWarningController> controller_; | 42 scoped_ptr<RepostFormWarningController> controller_; |
43 | 43 |
44 GtkWidget* dialog_; | 44 GtkWidget* dialog_; |
45 GtkWidget* ok_; | 45 GtkWidget* ok_; |
46 GtkWidget* cancel_; | 46 GtkWidget* cancel_; |
47 | 47 |
48 DISALLOW_COPY_AND_ASSIGN(RepostFormWarningGtk); | 48 DISALLOW_COPY_AND_ASSIGN(RepostFormWarningGtk); |
49 }; | 49 }; |
50 | 50 |
51 #endif // CHROME_BROWSER_UI_GTK_REPOST_FORM_WARNING_GTK_H_ | 51 #endif // CHROME_BROWSER_UI_GTK_REPOST_FORM_WARNING_GTK_H_ |
OLD | NEW |