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

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

Issue 10528002: TabContentsWrapper -> TabContents, part 1. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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_COCOA_TAB_MODAL_CONFIRM_DIALOG_MAC_H_ 5 #ifndef CHROME_BROWSER_UI_COCOA_TAB_MODAL_CONFIRM_DIALOG_MAC_H_
6 #define CHROME_BROWSER_UI_COCOA_TAB_MODAL_CONFIRM_DIALOG_MAC_H_ 6 #define CHROME_BROWSER_UI_COCOA_TAB_MODAL_CONFIRM_DIALOG_MAC_H_
7 #pragma once 7 #pragma once
8 8
9 #import <Cocoa/Cocoa.h> 9 #import <Cocoa/Cocoa.h>
10 10
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "chrome/browser/ui/cocoa/constrained_window_mac.h" 12 #include "chrome/browser/ui/cocoa/constrained_window_mac.h"
13 13
14 class TabContentsWrapper; 14 class TabContents;
15 typedef TabContents TabContentsWrapper;
15 class TabModalConfirmDialogDelegate; 16 class TabModalConfirmDialogDelegate;
16 17
17 // Displays a tab-modal dialog, i.e. a dialog that will block the current page 18 // Displays a tab-modal dialog, i.e. a dialog that will block the current page
18 // but still allow the user to switch to a different page. 19 // but still allow the user to switch to a different page.
19 // To display the dialog, allocate this object on the heap. It will open the 20 // To display the dialog, allocate this object on the heap. It will open the
20 // dialog from its constructor and then delete itself when the user dismisses 21 // dialog from its constructor and then delete itself when the user dismisses
21 // the dialog. 22 // the dialog.
22 class TabModalConfirmDialogMac 23 class TabModalConfirmDialogMac
23 : public ConstrainedWindowMacDelegateSystemSheet { 24 : public ConstrainedWindowMacDelegateSystemSheet {
24 public: 25 public:
25 TabModalConfirmDialogMac(TabModalConfirmDialogDelegate* delegate, 26 TabModalConfirmDialogMac(TabModalConfirmDialogDelegate* delegate,
26 TabContentsWrapper* wrapper); 27 TabContentsWrapper* wrapper);
27 28
28 // ConstrainedWindowDelegateMacSystemSheet methods: 29 // ConstrainedWindowDelegateMacSystemSheet methods:
29 virtual void DeleteDelegate() OVERRIDE; 30 virtual void DeleteDelegate() OVERRIDE;
30 31
31 private: 32 private:
32 virtual ~TabModalConfirmDialogMac(); 33 virtual ~TabModalConfirmDialogMac();
33 34
34 scoped_ptr<TabModalConfirmDialogDelegate> delegate_; 35 scoped_ptr<TabModalConfirmDialogDelegate> delegate_;
35 36
36 DISALLOW_COPY_AND_ASSIGN(TabModalConfirmDialogMac); 37 DISALLOW_COPY_AND_ASSIGN(TabModalConfirmDialogMac);
37 }; 38 };
38 39
39 #endif // CHROME_BROWSER_UI_COCOA_TAB_MODAL_CONFIRM_DIALOG_MAC_H_ 40 #endif // CHROME_BROWSER_UI_COCOA_TAB_MODAL_CONFIRM_DIALOG_MAC_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/tab_contents/favicon_util.h ('k') | chrome/browser/ui/cocoa/tabs/tab_strip_model_observer_bridge.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698