Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_UI_WEBUI_REPOST_FORM_WARNING_UI_H_ | |
| 6 #define CHROME_BROWSER_UI_WEBUI_REPOST_FORM_WARNING_UI_H_ | |
| 7 #pragma once | |
| 8 | |
| 9 #include "base/memory/scoped_ptr.h" | |
| 10 #include "ui/gfx/native_widget_types.h" | |
| 11 | |
| 12 class RepostFormWarningController; | |
| 13 class TabContents; | |
| 14 | |
| 15 // Displays a dialog that warns the user that they are about to resubmit | |
| 16 // a form. | |
| 17 // To display the dialog, allocate this object on the heap. It will open the | |
| 18 // dialog from its constructor and then delete itself when the user dismisses | |
| 19 // the dialog. | |
| 20 class RepostFormWarningUI { | |
| 21 public: | |
| 22 // Use BrowserWindow::ShowRepostFormWarningDialog to use. | |
| 23 RepostFormWarningUI(gfx::NativeWindow parent_window, | |
|
arv (Not doing code reviews)
2011/09/07 20:58:20
If you don't want this to be used can you make the
Daniel Erat
2011/09/08 01:46:56
Sounds reasonable to me. Done.
| |
| 24 TabContents* tab_contents); | |
| 25 | |
| 26 // Invoked when the dialog is closed. Notifies the controller of the user's | |
| 27 // response and deletes this object. | |
| 28 void OnDialogClosed(bool repost); | |
| 29 | |
| 30 private: | |
| 31 virtual ~RepostFormWarningUI(); | |
| 32 | |
| 33 scoped_ptr<RepostFormWarningController> controller_; | |
| 34 | |
| 35 DISALLOW_COPY_AND_ASSIGN(RepostFormWarningUI); | |
| 36 }; | |
| 37 | |
| 38 #endif // CHROME_BROWSER_UI_WEBUI_REPOST_FORM_WARNING_UI_H_ | |
| OLD | NEW |