| OLD | NEW |
| 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 void OnAuxiliaryButtonClicked(); | 43 void OnAuxiliaryButtonClicked(); |
| 44 | 44 |
| 45 // MediaGalleriesDialog implementation: | 45 // MediaGalleriesDialog implementation: |
| 46 void UpdateGalleries() override; | 46 void UpdateGalleries() override; |
| 47 | 47 |
| 48 // ConstrainedWindowMacDelegate implementation. | 48 // ConstrainedWindowMacDelegate implementation. |
| 49 void OnConstrainedWindowClosed(ConstrainedWindowMac* window) override; | 49 void OnConstrainedWindowClosed(ConstrainedWindowMac* window) override; |
| 50 | 50 |
| 51 // MediaGalleryListEntryController implementation. | 51 // MediaGalleryListEntryController implementation. |
| 52 void OnCheckboxToggled(MediaGalleryPrefId pref_id, bool checked) override; | 52 void OnCheckboxToggled(MediaGalleryPrefId pref_id, bool checked) override; |
| 53 void OnFolderViewerClicked(MediaGalleryPrefId prefId) override; | |
| 54 ui::MenuModel* GetContextMenu(MediaGalleryPrefId pref_id) override; | 53 ui::MenuModel* GetContextMenu(MediaGalleryPrefId pref_id) override; |
| 55 | 54 |
| 56 private: | 55 private: |
| 57 FRIEND_TEST_ALL_PREFIXES(MediaGalleriesDialogBrowserTest, Close); | 56 FRIEND_TEST_ALL_PREFIXES(MediaGalleriesDialogBrowserTest, Close); |
| 58 FRIEND_TEST_ALL_PREFIXES(MediaGalleriesDialogTest, InitializeCheckboxes); | 57 FRIEND_TEST_ALL_PREFIXES(MediaGalleriesDialogTest, InitializeCheckboxes); |
| 59 FRIEND_TEST_ALL_PREFIXES(MediaGalleriesDialogTest, ToggleCheckboxes); | 58 FRIEND_TEST_ALL_PREFIXES(MediaGalleriesDialogTest, ToggleCheckboxes); |
| 60 FRIEND_TEST_ALL_PREFIXES(MediaGalleriesDialogTest, UpdateAdds); | 59 FRIEND_TEST_ALL_PREFIXES(MediaGalleriesDialogTest, UpdateAdds); |
| 61 FRIEND_TEST_ALL_PREFIXES(MediaGalleriesDialogTest, ForgetDeletes); | 60 FRIEND_TEST_ALL_PREFIXES(MediaGalleriesDialogTest, ForgetDeletes); |
| 62 | 61 |
| 63 // MediaGalleriesDialog implementation: | 62 // MediaGalleriesDialog implementation: |
| (...skipping 20 matching lines...) Expand all Loading... |
| 84 // Container view for the main dialog contents. | 83 // Container view for the main dialog contents. |
| 85 base::scoped_nsobject<NSBox> main_container_; | 84 base::scoped_nsobject<NSBox> main_container_; |
| 86 | 85 |
| 87 // An Objective-C class to route callbacks from Cocoa code. | 86 // An Objective-C class to route callbacks from Cocoa code. |
| 88 base::scoped_nsobject<MediaGalleriesCocoaController> cocoa_controller_; | 87 base::scoped_nsobject<MediaGalleriesCocoaController> cocoa_controller_; |
| 89 | 88 |
| 90 DISALLOW_COPY_AND_ASSIGN(MediaGalleriesDialogCocoa); | 89 DISALLOW_COPY_AND_ASSIGN(MediaGalleriesDialogCocoa); |
| 91 }; | 90 }; |
| 92 | 91 |
| 93 #endif // CHROME_BROWSER_UI_COCOA_EXTENSIONS_MEDIA_GALLERIES_DIALOG_COCOA_H_ | 92 #endif // CHROME_BROWSER_UI_COCOA_EXTENSIONS_MEDIA_GALLERIES_DIALOG_COCOA_H_ |
| OLD | NEW |