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

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

Issue 8632022: Add OVERRIDE to chrome/browser/ui/gtk/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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/compiler_specific.h"
11 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
12 #include "chrome/browser/ui/gtk/constrained_window_gtk.h" 13 #include "chrome/browser/ui/gtk/constrained_window_gtk.h"
13 #include "ui/base/gtk/gtk_signal.h" 14 #include "ui/base/gtk/gtk_signal.h"
14 15
15 class RepostFormWarningController; 16 class RepostFormWarningController;
16 class TabContents; 17 class TabContents;
17 18
18 // Displays a dialog that warns the user that they are about to resubmit 19 // Displays a dialog that warns the user that they are about to resubmit
19 // a form. 20 // a form.
20 // To display the dialog, allocate this object on the heap. It will open the 21 // To display the dialog, allocate this object on the heap. It will open the
21 // dialog from its constructor and then delete itself when the user dismisses 22 // dialog from its constructor and then delete itself when the user dismisses
22 // the dialog. 23 // the dialog.
23 class RepostFormWarningGtk : public ConstrainedWindowGtkDelegate { 24 class RepostFormWarningGtk : public ConstrainedWindowGtkDelegate {
24 public: 25 public:
25 RepostFormWarningGtk(GtkWindow* parent, TabContents* tab_contents); 26 RepostFormWarningGtk(GtkWindow* parent, TabContents* tab_contents);
26 27
27 // ConstrainedWindowGtkDelegate methods 28 // ConstrainedWindowGtkDelegate methods
28 virtual GtkWidget* GetWidgetRoot(); 29 virtual GtkWidget* GetWidgetRoot() OVERRIDE;
29 virtual GtkWidget* GetFocusWidget(); 30 virtual GtkWidget* GetFocusWidget() OVERRIDE;
30 virtual void DeleteDelegate(); 31 virtual void DeleteDelegate() OVERRIDE;
31 32
32 private: 33 private:
33 virtual ~RepostFormWarningGtk(); 34 virtual ~RepostFormWarningGtk();
34 35
35 // Callbacks 36 // Callbacks
36 CHROMEGTK_CALLBACK_0(RepostFormWarningGtk, void, OnRefresh); 37 CHROMEGTK_CALLBACK_0(RepostFormWarningGtk, void, OnRefresh);
37 CHROMEGTK_CALLBACK_0(RepostFormWarningGtk, void, OnCancel); 38 CHROMEGTK_CALLBACK_0(RepostFormWarningGtk, void, OnCancel);
38 39
39 scoped_ptr<RepostFormWarningController> controller_; 40 scoped_ptr<RepostFormWarningController> controller_;
40 41
41 GtkWidget* dialog_; 42 GtkWidget* dialog_;
42 GtkWidget* ok_; 43 GtkWidget* ok_;
43 GtkWidget* cancel_; 44 GtkWidget* cancel_;
44 45
45 DISALLOW_COPY_AND_ASSIGN(RepostFormWarningGtk); 46 DISALLOW_COPY_AND_ASSIGN(RepostFormWarningGtk);
46 }; 47 };
47 48
48 #endif // CHROME_BROWSER_UI_GTK_REPOST_FORM_WARNING_GTK_H_ 49 #endif // CHROME_BROWSER_UI_GTK_REPOST_FORM_WARNING_GTK_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/gtk/reload_button_gtk.h ('k') | chrome/browser/ui/gtk/select_file_dialog_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698