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

Side by Side Diff: chrome/browser/ui/cocoa/extensions/chooser_dialog_cocoa.h

Issue 2028823003: Mac: Make ScopedTypeRef require explicit constructors (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove dependency Created 4 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
OLDNEW
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698