OLD | NEW |
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 | 7 |
8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
9 | 9 |
10 #import "base/mac/scoped_nsobject.h" | 10 #import "base/mac/scoped_nsobject.h" |
(...skipping 30 matching lines...) Expand all Loading... |
41 void CancelTabModalDialog() override; | 41 void CancelTabModalDialog() override; |
42 | 42 |
43 // TabModalConfirmDialogCloseDelegate: | 43 // TabModalConfirmDialogCloseDelegate: |
44 void CloseDialog() override; | 44 void CloseDialog() override; |
45 | 45 |
46 // ConstrainedWindowMacDelegate: | 46 // ConstrainedWindowMacDelegate: |
47 void OnConstrainedWindowClosed(ConstrainedWindowMac* window) override; | 47 void OnConstrainedWindowClosed(ConstrainedWindowMac* window) override; |
48 | 48 |
49 bool closing_; | 49 bool closing_; |
50 | 50 |
51 std::unique_ptr<ConstrainedWindowMac> window_; | 51 scoped_ptr<ConstrainedWindowMac> window_; |
52 scoped_ptr<TabModalConfirmDialogDelegate> delegate_; | 52 scoped_ptr<TabModalConfirmDialogDelegate> delegate_; |
53 base::scoped_nsobject<ConstrainedWindowAlert> alert_; | 53 base::scoped_nsobject<ConstrainedWindowAlert> alert_; |
54 base::scoped_nsobject<TabModalConfirmDialogMacBridge> bridge_; | 54 base::scoped_nsobject<TabModalConfirmDialogMacBridge> bridge_; |
55 | 55 |
56 DISALLOW_COPY_AND_ASSIGN(TabModalConfirmDialogMac); | 56 DISALLOW_COPY_AND_ASSIGN(TabModalConfirmDialogMac); |
57 }; | 57 }; |
58 | 58 |
59 #endif // CHROME_BROWSER_UI_COCOA_TAB_MODAL_CONFIRM_DIALOG_MAC_H_ | 59 #endif // CHROME_BROWSER_UI_COCOA_TAB_MODAL_CONFIRM_DIALOG_MAC_H_ |
OLD | NEW |