Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(281)

Side by Side Diff: chrome/browser/ui/gtk/repost_form_warning_gtk.h

Issue 7880003: content: Move constrained window code from TabContents to TabContentsWrapper (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix mac regression now that shutdown timing was changed for views. Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #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" 13 #include "ui/base/gtk/gtk_signal.h"
14 14
15 class RepostFormWarningController; 15 class RepostFormWarningController;
16 class TabContents;
16 17
17 // Displays a dialog that warns the user that they are about to resubmit 18 // Displays a dialog that warns the user that they are about to resubmit
18 // a form. 19 // a form.
19 // To display the dialog, allocate this object on the heap. It will open the 20 // 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 21 // dialog from its constructor and then delete itself when the user dismisses
21 // the dialog. 22 // the dialog.
22 class RepostFormWarningGtk : public ConstrainedWindowGtkDelegate { 23 class RepostFormWarningGtk : public ConstrainedWindowGtkDelegate {
23 public: 24 public:
24 RepostFormWarningGtk(GtkWindow* parent, TabContents* tab_contents); 25 RepostFormWarningGtk(GtkWindow* parent, TabContents* tab_contents);
25 26
(...skipping 12 matching lines...) Expand all
38 scoped_ptr<RepostFormWarningController> controller_; 39 scoped_ptr<RepostFormWarningController> controller_;
39 40
40 GtkWidget* dialog_; 41 GtkWidget* dialog_;
41 GtkWidget* ok_; 42 GtkWidget* ok_;
42 GtkWidget* cancel_; 43 GtkWidget* cancel_;
43 44
44 DISALLOW_COPY_AND_ASSIGN(RepostFormWarningGtk); 45 DISALLOW_COPY_AND_ASSIGN(RepostFormWarningGtk);
45 }; 46 };
46 47
47 #endif // CHROME_BROWSER_UI_GTK_REPOST_FORM_WARNING_GTK_H_ 48 #endif // CHROME_BROWSER_UI_GTK_REPOST_FORM_WARNING_GTK_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698