OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_EXTENSIONS_CHOOSER_DIALOG_COCOA_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_EXTENSIONS_CHOOSER_DIALOG_COCOA_H_ |
6 #define CHROME_BROWSER_UI_COCOA_EXTENSIONS_CHOOSER_DIALOG_COCOA_H_ | 6 #define CHROME_BROWSER_UI_COCOA_EXTENSIONS_CHOOSER_DIALOG_COCOA_H_ |
7 | 7 |
8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
9 | 9 |
10 #include "base/mac/scoped_nsobject.h" | 10 #include "base/mac/scoped_nsobject.h" |
(...skipping 27 matching lines...) Expand all Loading... |
38 void ShowDialog(); | 38 void ShowDialog(); |
39 | 39 |
40 // Call this to close the chooser dialog. | 40 // Call this to close the chooser dialog. |
41 void Dismissed(); | 41 void Dismissed(); |
42 | 42 |
43 content::WebContents* web_contents() const { return web_contents_; } | 43 content::WebContents* web_contents() const { return web_contents_; } |
44 | 44 |
45 private: | 45 private: |
46 friend class ChooserDialogCocoaControllerTest; | 46 friend class ChooserDialogCocoaControllerTest; |
47 base::scoped_nsobject<ChooserDialogCocoaController> | 47 base::scoped_nsobject<ChooserDialogCocoaController> |
48 chooser_dialog_cocoa_controller_ = nullptr; | 48 chooser_dialog_cocoa_controller_; |
49 std::unique_ptr<ConstrainedWindowMac> constrained_window_ = nullptr; | 49 std::unique_ptr<ConstrainedWindowMac> constrained_window_; |
50 content::WebContents* web_contents_; // Weak. | 50 content::WebContents* web_contents_; // Weak. |
51 ChooserController* chooser_controller_; // Weak. | 51 ChooserController* chooser_controller_; // Weak. |
52 }; | 52 }; |
53 | 53 |
54 #endif // CHROME_BROWSER_UI_COCOA_EXTENSIONS_CHOOSER_DIALOG_COCOA_H_ | 54 #endif // CHROME_BROWSER_UI_COCOA_EXTENSIONS_CHOOSER_DIALOG_COCOA_H_ |
OLD | NEW |