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

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

Issue 1446623003: [Reland] Enable AutoResize for Constrained Web Dialogs for Mac. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 10 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_MEDIA_GALLERIES_DIALOG_COCOA_H_ 5 #ifndef CHROME_BROWSER_UI_COCOA_EXTENSIONS_MEDIA_GALLERIES_DIALOG_COCOA_H_
6 #define CHROME_BROWSER_UI_COCOA_EXTENSIONS_MEDIA_GALLERIES_DIALOG_COCOA_H_ 6 #define CHROME_BROWSER_UI_COCOA_EXTENSIONS_MEDIA_GALLERIES_DIALOG_COCOA_H_
7 7
8 #import <Cocoa/Cocoa.h> 8 #import <Cocoa/Cocoa.h>
9 9
10 #include "base/gtest_prod_util.h" 10 #include "base/gtest_prod_util.h"
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 // MediaGalleriesDialog implementation: 63 // MediaGalleriesDialog implementation:
64 void AcceptDialogForTesting() override; 64 void AcceptDialogForTesting() override;
65 65
66 void InitDialogControls(); 66 void InitDialogControls();
67 CGFloat CreateCheckboxes( 67 CGFloat CreateCheckboxes(
68 CGFloat y_pos, 68 CGFloat y_pos,
69 const MediaGalleriesDialogController::Entries& entries); 69 const MediaGalleriesDialogController::Entries& entries);
70 CGFloat CreateCheckboxSeparator(CGFloat y_pos, NSString* header); 70 CGFloat CreateCheckboxSeparator(CGFloat y_pos, NSString* header);
71 71
72 MediaGalleriesDialogController* controller_; // weak 72 MediaGalleriesDialogController* controller_; // weak
73 scoped_ptr<ConstrainedWindowMac> window_; 73 std::unique_ptr<ConstrainedWindowMac> window_;
74 74
75 // The alert that the dialog is being displayed as. 75 // The alert that the dialog is being displayed as.
76 base::scoped_nsobject<ConstrainedWindowAlert> alert_; 76 base::scoped_nsobject<ConstrainedWindowAlert> alert_;
77 77
78 // True if the user has pressed accept. 78 // True if the user has pressed accept.
79 bool accepted_; 79 bool accepted_;
80 80
81 // Container view for checkboxes. 81 // Container view for checkboxes.
82 base::scoped_nsobject<NSView> checkbox_container_; 82 base::scoped_nsobject<NSView> checkbox_container_;
83 83
84 // Container view for the main dialog contents. 84 // Container view for the main dialog contents.
85 base::scoped_nsobject<NSBox> main_container_; 85 base::scoped_nsobject<NSBox> main_container_;
86 86
87 // An Objective-C class to route callbacks from Cocoa code. 87 // An Objective-C class to route callbacks from Cocoa code.
88 base::scoped_nsobject<MediaGalleriesCocoaController> cocoa_controller_; 88 base::scoped_nsobject<MediaGalleriesCocoaController> cocoa_controller_;
89 89
90 DISALLOW_COPY_AND_ASSIGN(MediaGalleriesDialogCocoa); 90 DISALLOW_COPY_AND_ASSIGN(MediaGalleriesDialogCocoa);
91 }; 91 };
92 92
93 #endif // CHROME_BROWSER_UI_COCOA_EXTENSIONS_MEDIA_GALLERIES_DIALOG_COCOA_H_ 93 #endif // CHROME_BROWSER_UI_COCOA_EXTENSIONS_MEDIA_GALLERIES_DIALOG_COCOA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698