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

Side by Side Diff: chrome/browser/ui/cocoa/repost_form_warning_mac.h

Issue 8851007: WIP / Do not commit (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years 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
(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_COCOA_REPOST_FORM_WARNING_MAC_H_
6 #define CHROME_BROWSER_UI_COCOA_REPOST_FORM_WARNING_MAC_H_
7 #pragma once
8
9 #import <Cocoa/Cocoa.h>
10
11 #include "base/memory/scoped_ptr.h"
12 #include "chrome/browser/ui/cocoa/constrained_window_mac.h"
13
14 class RepostFormWarningController;
15 class TabContents;
16
17 // Displays a dialog that warns the user that they are about to resubmit
18 // a form. To show the dialog, call the |Create| method. It will open the
19 // dialog and then delete itself when the user dismisses the dialog.
20 class RepostFormWarningMac : public ConstrainedWindowMacDelegateSystemSheet {
21 public:
22 // Convenience method that creates a new |RepostFormWarningController| and
23 // then a new |RepostFormWarningMac| from that.
24 static RepostFormWarningMac* Create(NSWindow* parent,
25 TabContents* tab_contents);
26
27 RepostFormWarningMac(NSWindow* parent,
28 RepostFormWarningController* controller,
29 TabContents* tab_contents);
30
31 // ConstrainedWindowDelegateMacSystemSheet methods:
32 virtual void DeleteDelegate() OVERRIDE;
33
34 private:
35 virtual ~RepostFormWarningMac();
36
37 scoped_ptr<RepostFormWarningController> controller_;
38 TabContents* tab_contents_;
39
40 DISALLOW_COPY_AND_ASSIGN(RepostFormWarningMac);
41 };
42
43 #endif // CHROME_BROWSER_UI_COCOA_REPOST_FORM_WARNING_MAC_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/browser_window_cocoa.mm ('k') | chrome/browser/ui/cocoa/repost_form_warning_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698