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

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

Issue 12276010: Factor out uses of the WebContentsModalDialog interface from platform-independent code (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove incorrect override Created 7 years, 10 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"
11 #include "ui/gfx/native_widget_types.h" 11 #include "ui/gfx/native_widget_types.h"
12 #include "ui/views/window/dialog_delegate.h" 12 #include "ui/views/window/dialog_delegate.h"
13 13
14 class ConstrainedWindowViews;
15
14 namespace content { 16 namespace content {
15 class WebContents; 17 class WebContents;
16 } 18 }
17 19
18 namespace views { 20 namespace views {
19 class MessageBoxView; 21 class MessageBoxView;
20 } 22 }
21 23
22 // Displays a tab-modal dialog, i.e. a dialog that will block the current page 24 // Displays a tab-modal dialog, i.e. a dialog that will block the current page
23 // but still allow the user to switch to a different page. 25 // but still allow the user to switch to a different page.
(...skipping 19 matching lines...) Expand all
43 virtual void DeleteDelegate() OVERRIDE; 45 virtual void DeleteDelegate() OVERRIDE;
44 virtual ui::ModalType GetModalType() const OVERRIDE; 46 virtual ui::ModalType GetModalType() const OVERRIDE;
45 47
46 private: 48 private:
47 virtual ~TabModalConfirmDialogViews(); 49 virtual ~TabModalConfirmDialogViews();
48 50
49 // TabModalConfirmDialog: 51 // TabModalConfirmDialog:
50 virtual void AcceptTabModalDialog() OVERRIDE; 52 virtual void AcceptTabModalDialog() OVERRIDE;
51 virtual void CancelTabModalDialog() OVERRIDE; 53 virtual void CancelTabModalDialog() OVERRIDE;
52 54
55 // TabModalConfirmDialogCloseDelegate:
56 virtual void CloseDialog() OVERRIDE;
57
53 scoped_ptr<TabModalConfirmDialogDelegate> delegate_; 58 scoped_ptr<TabModalConfirmDialogDelegate> delegate_;
54 59
55 // The message box view whose commands we handle. 60 // The message box view whose commands we handle.
56 views::MessageBoxView* message_box_view_; 61 views::MessageBoxView* message_box_view_;
57 62
63 ConstrainedWindowViews* dialog_;
64
58 DISALLOW_COPY_AND_ASSIGN(TabModalConfirmDialogViews); 65 DISALLOW_COPY_AND_ASSIGN(TabModalConfirmDialogViews);
59 }; 66 };
60 67
61 #endif // CHROME_BROWSER_UI_VIEWS_TAB_MODAL_CONFIRM_DIALOG_VIEWS_H_ 68 #endif // CHROME_BROWSER_UI_VIEWS_TAB_MODAL_CONFIRM_DIALOG_VIEWS_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/login_prompt_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