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

Side by Side Diff: chrome/browser/ui/views/repost_form_warning_view.h

Issue 7189019: Fix even more crashes. To help identify remaining crashes now and in the future, I have made the ... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 6 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_VIEWS_REPOST_FORM_WARNING_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_REPOST_FORM_WARNING_VIEW_H_
6 #define CHROME_BROWSER_UI_VIEWS_REPOST_FORM_WARNING_VIEW_H_ 6 #define CHROME_BROWSER_UI_VIEWS_REPOST_FORM_WARNING_VIEW_H_
7 #pragma once 7 #pragma once
8 8
9 #include "content/browser/tab_contents/constrained_window.h" 9 #include "content/browser/tab_contents/constrained_window.h"
10 #include "ui/gfx/native_widget_types.h" 10 #include "ui/gfx/native_widget_types.h"
(...skipping 13 matching lines...) Expand all
24 // To display the dialog, allocate this object on the heap. It will open the 24 // To display the dialog, allocate this object on the heap. It will open the
25 // dialog from its constructor and then delete itself when the user dismisses 25 // dialog from its constructor and then delete itself when the user dismisses
26 // the dialog. 26 // the dialog.
27 class RepostFormWarningView : public ConstrainedDialogDelegate { 27 class RepostFormWarningView : public ConstrainedDialogDelegate {
28 public: 28 public:
29 // Use BrowserWindow::ShowRepostFormWarningDialog to use. 29 // Use BrowserWindow::ShowRepostFormWarningDialog to use.
30 RepostFormWarningView(gfx::NativeWindow parent_window, 30 RepostFormWarningView(gfx::NativeWindow parent_window,
31 TabContents* tab_contents); 31 TabContents* tab_contents);
32 32
33 // views::DialogDelegate Methods: 33 // views::DialogDelegate Methods:
34 virtual std::wstring GetWindowTitle() const; 34 virtual std::wstring GetWindowTitle() const OVERRIDE;
35 virtual std::wstring GetDialogButtonLabel( 35 virtual std::wstring GetDialogButtonLabel(
36 MessageBoxFlags::DialogButton button) const; 36 MessageBoxFlags::DialogButton button) const OVERRIDE;
37 virtual void DeleteDelegate(); 37 virtual void DeleteDelegate() OVERRIDE;
38 38
39 virtual bool Cancel(); 39 virtual bool Cancel() OVERRIDE;
40 virtual bool Accept(); 40 virtual bool Accept() OVERRIDE;
41 41
42 // views::WindowDelegate Methods: 42 // views::WidgetDelegate Methods:
43 virtual views::View* GetContentsView(); 43 virtual views::View* GetContentsView() OVERRIDE;
44 virtual views::Widget* GetWidget() OVERRIDE;
45 virtual const views::Widget* GetWidget() const OVERRIDE;
44 46
45 private: 47 private:
46 virtual ~RepostFormWarningView(); 48 virtual ~RepostFormWarningView();
47 49
48 // The message box view whose commands we handle. 50 // The message box view whose commands we handle.
49 views::MessageBoxView* message_box_view_; 51 views::MessageBoxView* message_box_view_;
50 52
51 scoped_ptr<RepostFormWarningController> controller_; 53 scoped_ptr<RepostFormWarningController> controller_;
52 54
53 DISALLOW_COPY_AND_ASSIGN(RepostFormWarningView); 55 DISALLOW_COPY_AND_ASSIGN(RepostFormWarningView);
54 }; 56 };
55 57
56 #endif // CHROME_BROWSER_UI_VIEWS_REPOST_FORM_WARNING_VIEW_H_ 58 #endif // CHROME_BROWSER_UI_VIEWS_REPOST_FORM_WARNING_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698