| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_SCAN_RESULT_DIALOG_CO
COA_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_EXTENSIONS_MEDIA_GALLERIES_SCAN_RESULT_DIALOG_CO
COA_H_ |
| 6 #define CHROME_BROWSER_UI_COCOA_EXTENSIONS_MEDIA_GALLERIES_SCAN_RESULT_DIALOG_CO
COA_H_ | 6 #define CHROME_BROWSER_UI_COCOA_EXTENSIONS_MEDIA_GALLERIES_SCAN_RESULT_DIALOG_CO
COA_H_ |
| 7 | 7 |
| 8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
| 9 | 9 |
| 10 #include "chrome/browser/media_galleries/media_galleries_scan_result_dialog_cont
roller.h" | 10 #include "chrome/browser/media_galleries/media_galleries_scan_result_dialog_cont
roller.h" |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 void UpdateScanResultCheckbox(const MediaGalleryPrefInfo& scan_result, | 53 void UpdateScanResultCheckbox(const MediaGalleryPrefInfo& scan_result, |
| 54 bool checked, | 54 bool checked, |
| 55 CGFloat y_pos); | 55 CGFloat y_pos); |
| 56 | 56 |
| 57 void InitDialogControls(); | 57 void InitDialogControls(); |
| 58 CGFloat CreateCheckboxes( | 58 CGFloat CreateCheckboxes( |
| 59 CGFloat y_pos, | 59 CGFloat y_pos, |
| 60 const MediaGalleriesScanResultDialogController::OrderedScanResults& | 60 const MediaGalleriesScanResultDialogController::OrderedScanResults& |
| 61 scan_results); | 61 scan_results); |
| 62 | 62 |
| 63 // MediaGalleriesScanResultDialog implementation: |
| 64 virtual void AcceptDialogForTesting() OVERRIDE; |
| 65 |
| 63 MediaGalleriesScanResultDialogController* controller_; // weak | 66 MediaGalleriesScanResultDialogController* controller_; // weak |
| 64 scoped_ptr<ConstrainedWindowMac> window_; | 67 scoped_ptr<ConstrainedWindowMac> window_; |
| 65 | 68 |
| 66 // The alert that the dialog is being displayed as. | 69 // The alert that the dialog is being displayed as. |
| 67 base::scoped_nsobject<ConstrainedWindowAlert> alert_; | 70 base::scoped_nsobject<ConstrainedWindowAlert> alert_; |
| 68 | 71 |
| 69 // True if the user has pressed accept. | 72 // True if the user has pressed accept. |
| 70 bool accepted_; | 73 bool accepted_; |
| 71 | 74 |
| 72 // List of checkboxes ordered from bottom to top. | 75 // List of checkboxes ordered from bottom to top. |
| 73 base::scoped_nsobject<NSMutableArray> checkboxes_; | 76 base::scoped_nsobject<NSMutableArray> checkboxes_; |
| 74 | 77 |
| 75 // Container view for checkboxes. | 78 // Container view for checkboxes. |
| 76 base::scoped_nsobject<NSView> checkbox_container_; | 79 base::scoped_nsobject<NSView> checkbox_container_; |
| 77 | 80 |
| 78 // Container view for the main dialog contents. | 81 // Container view for the main dialog contents. |
| 79 base::scoped_nsobject<NSBox> main_container_; | 82 base::scoped_nsobject<NSBox> main_container_; |
| 80 | 83 |
| 81 // An Objective-C class to route callbacks from Cocoa code. | 84 // An Objective-C class to route callbacks from Cocoa code. |
| 82 base::scoped_nsobject<MediaGalleriesScanResultCocoaController> | 85 base::scoped_nsobject<MediaGalleriesScanResultCocoaController> |
| 83 cocoa_controller_; | 86 cocoa_controller_; |
| 84 | 87 |
| 85 DISALLOW_COPY_AND_ASSIGN(MediaGalleriesScanResultDialogCocoa); | 88 DISALLOW_COPY_AND_ASSIGN(MediaGalleriesScanResultDialogCocoa); |
| 86 }; | 89 }; |
| 87 | 90 |
| 88 #endif // CHROME_BROWSER_UI_COCOA_EXTENSIONS_MEDIA_GALLERIES_SCAN_RESULT_DIALOG
_COCOA_H_ | 91 #endif // CHROME_BROWSER_UI_COCOA_EXTENSIONS_MEDIA_GALLERIES_SCAN_RESULT_DIALOG
_COCOA_H_ |
| OLD | NEW |