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

Side by Side Diff: trunk/src/chrome/browser/ui/views/tab_modal_confirm_dialog_views.h

Issue 21372006: Revert 212329 "Reland "Close web contents modal dialogs on conte..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 4 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_TAB_MODAL_CONFIRM_DIALOG_VIEWS_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_TAB_MODAL_CONFIRM_DIALOG_VIEWS_H_
6 #define CHROME_BROWSER_UI_VIEWS_TAB_MODAL_CONFIRM_DIALOG_VIEWS_H_ 6 #define CHROME_BROWSER_UI_VIEWS_TAB_MODAL_CONFIRM_DIALOG_VIEWS_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "chrome/browser/ui/tab_modal_confirm_dialog.h" 10 #include "chrome/browser/ui/tab_modal_confirm_dialog.h"
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 51
52 private: 52 private:
53 virtual ~TabModalConfirmDialogViews(); 53 virtual ~TabModalConfirmDialogViews();
54 54
55 // TabModalConfirmDialog: 55 // TabModalConfirmDialog:
56 virtual void AcceptTabModalDialog() OVERRIDE; 56 virtual void AcceptTabModalDialog() OVERRIDE;
57 virtual void CancelTabModalDialog() OVERRIDE; 57 virtual void CancelTabModalDialog() OVERRIDE;
58 58
59 // TabModalConfirmDialogCloseDelegate: 59 // TabModalConfirmDialogCloseDelegate:
60 virtual void CloseDialog() OVERRIDE; 60 virtual void CloseDialog() OVERRIDE;
61 virtual void SetPreventCloseOnLoadStart(bool prevent) OVERRIDE;
62 61
63 // views::LinkListener: 62 // views::LinkListener:
64 virtual void LinkClicked(views::Link* source, int event_flags) OVERRIDE; 63 virtual void LinkClicked(views::Link* source, int event_flags) OVERRIDE;
65 64
66 content::WebContents* web_contents_;
67
68 scoped_ptr<TabModalConfirmDialogDelegate> delegate_; 65 scoped_ptr<TabModalConfirmDialogDelegate> delegate_;
69 66
70 // The message box view whose commands we handle. 67 // The message box view whose commands we handle.
71 views::MessageBoxView* message_box_view_; 68 views::MessageBoxView* message_box_view_;
72 69
73 views::Widget* dialog_; 70 views::Widget* dialog_;
74 content::BrowserContext* browser_context_; 71 content::BrowserContext* browser_context_;
75 72
76 DISALLOW_COPY_AND_ASSIGN(TabModalConfirmDialogViews); 73 DISALLOW_COPY_AND_ASSIGN(TabModalConfirmDialogViews);
77 }; 74 };
78 75
79 #endif // CHROME_BROWSER_UI_VIEWS_TAB_MODAL_CONFIRM_DIALOG_VIEWS_H_ 76 #endif // CHROME_BROWSER_UI_VIEWS_TAB_MODAL_CONFIRM_DIALOG_VIEWS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698