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

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

Issue 17500003: Close web contents modal dialogs on content load start (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Compilation fixes, change "inhibit" variable names Created 7 years, 5 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;
61 62
62 // views::LinkListener: 63 // views::LinkListener:
63 virtual void LinkClicked(views::Link* source, int event_flags) OVERRIDE; 64 virtual void LinkClicked(views::Link* source, int event_flags) OVERRIDE;
64 65
66 content::WebContents* web_contents_;
67
65 scoped_ptr<TabModalConfirmDialogDelegate> delegate_; 68 scoped_ptr<TabModalConfirmDialogDelegate> delegate_;
66 69
67 // The message box view whose commands we handle. 70 // The message box view whose commands we handle.
68 views::MessageBoxView* message_box_view_; 71 views::MessageBoxView* message_box_view_;
69 72
70 views::Widget* dialog_; 73 views::Widget* dialog_;
71 content::BrowserContext* browser_context_; 74 content::BrowserContext* browser_context_;
72 75
73 DISALLOW_COPY_AND_ASSIGN(TabModalConfirmDialogViews); 76 DISALLOW_COPY_AND_ASSIGN(TabModalConfirmDialogViews);
74 }; 77 };
75 78
76 #endif // CHROME_BROWSER_UI_VIEWS_TAB_MODAL_CONFIRM_DIALOG_VIEWS_H_ 79 #endif // CHROME_BROWSER_UI_VIEWS_TAB_MODAL_CONFIRM_DIALOG_VIEWS_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/autofill/autofill_dialog_views.cc ('k') | chrome/browser/ui/views/tab_modal_confirm_dialog_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698