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

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

Issue 2595083002: Change ChooserContentView[Cocoa] class name to be DeviceChooserContentView[Cocoa] (Closed)
Patch Set: merge master Created 3 years, 11 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_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_UI_COCOA_EXTENSIONS_CHOOSER_DIALOG_COCOA_CONTROLLER_H_
6 #define CHROME_BROWSER_UI_COCOA_EXTENSIONS_CHOOSER_DIALOG_COCOA_CONTROLLER_H_ 6 #define CHROME_BROWSER_UI_COCOA_EXTENSIONS_CHOOSER_DIALOG_COCOA_CONTROLLER_H_
7 7
8 #import <Cocoa/Cocoa.h> 8 #import <Cocoa/Cocoa.h>
9 9
10 #include <memory> 10 #include <memory>
11 11
12 #include "base/mac/scoped_nsobject.h" 12 #include "base/mac/scoped_nsobject.h"
13 13
14 @class ChooserContentViewCocoa;
15 class ChooserController; 14 class ChooserController;
16 class ChooserDialogCocoa; 15 class ChooserDialogCocoa;
16 @class DeviceChooserContentViewCocoa;
17 17
18 // Displays a chooser dialog, and notifies the ChooserController 18 // Displays a chooser dialog, and notifies the ChooserController
19 // of the selected option. 19 // of the selected option.
20 @interface ChooserDialogCocoaController 20 @interface ChooserDialogCocoaController
21 : NSViewController<NSTableViewDataSource, NSTableViewDelegate> { 21 : NSViewController<NSTableViewDataSource, NSTableViewDelegate> {
22 base::scoped_nsobject<ChooserContentViewCocoa> chooserContentView_; 22 base::scoped_nsobject<DeviceChooserContentViewCocoa>
23 deviceChooserContentView_;
23 NSTableView* tableView_; // Weak. 24 NSTableView* tableView_; // Weak.
24 NSButton* connectButton_; // Weak. 25 NSButton* connectButton_; // Weak.
25 NSButton* cancelButton_; // Weak. 26 NSButton* cancelButton_; // Weak.
26 27
27 ChooserDialogCocoa* chooserDialogCocoa_; // Weak. 28 ChooserDialogCocoa* chooserDialogCocoa_; // Weak.
28 } 29 }
29 30
30 // Designated initializer. |chooserDialogCocoa| and |chooserController| 31 // Designated initializer. |chooserDialogCocoa| and |chooserController|
31 // must both be non-nil. 32 // must both be non-nil.
32 - (instancetype) 33 - (instancetype)
33 initWithChooserDialogCocoa:(ChooserDialogCocoa*)chooserDialogCocoa 34 initWithChooserDialogCocoa:(ChooserDialogCocoa*)chooserDialogCocoa
34 chooserController: 35 chooserController:
35 (std::unique_ptr<ChooserController>)chooserController; 36 (std::unique_ptr<ChooserController>)chooserController;
36 37
37 // Called when the "Connect" button is pressed. 38 // Called when the "Connect" button is pressed.
38 - (void)onConnect:(id)sender; 39 - (void)onConnect:(id)sender;
39 40
40 // Called when the "Cancel" button is pressed. 41 // Called when the "Cancel" button is pressed.
41 - (void)onCancel:(id)sender; 42 - (void)onCancel:(id)sender;
42 43
43 // Gets the |chooserContentView_|. For testing only. 44 // Gets the |deviceChooserContentView_|. For testing only.
44 - (ChooserContentViewCocoa*)chooserContentView; 45 - (DeviceChooserContentViewCocoa*)deviceChooserContentView;
45 46
46 @end 47 @end
47 48
48 #endif // CHROME_BROWSER_UI_COCOA_EXTENSIONS_CHOOSER_DIALOG_COCOA_CONTROLLER_H_ 49 #endif // CHROME_BROWSER_UI_COCOA_EXTENSIONS_CHOOSER_DIALOG_COCOA_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698