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

Unified Diff: chrome/browser/media_galleries/media_galleries_dialog_controller.h

Issue 148093011: Abstract media galleries context menu code and use it in scan result dialog. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Header too Created 6 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/media_galleries/media_galleries_dialog_controller.h
diff --git a/chrome/browser/media_galleries/media_galleries_dialog_controller.h b/chrome/browser/media_galleries/media_galleries_dialog_controller.h
index a56731589ae071578e77b36c278d92ce1c5fa24c..54a5dfc35a2f051e5d69db10db444adbc8a84e03 100644
--- a/chrome/browser/media_galleries/media_galleries_dialog_controller.h
+++ b/chrome/browser/media_galleries/media_galleries_dialog_controller.h
@@ -28,8 +28,8 @@ namespace ui {
class MenuModel;
}
-class GalleryContextMenuModel;
class MediaGalleriesDialogController;
+class MediaGalleryContextMenu;
class Profile;
// The view.
@@ -105,7 +105,7 @@ class MediaGalleriesDialogController
virtual content::WebContents* web_contents();
- ui::MenuModel* GetContextMenuModel(MediaGalleryPrefId id);
+ ui::MenuModel* GetContextMenu(MediaGalleryPrefId id);
protected:
// For use with tests.
@@ -200,8 +200,7 @@ class MediaGalleriesDialogController
scoped_refptr<ui::SelectFileDialog> select_folder_dialog_;
- scoped_ptr<ui::MenuModel> context_menu_model_;
- scoped_ptr<GalleryContextMenuModel> gallery_menu_model_;
+ scoped_ptr<MediaGalleryContextMenu> context_menu_;
DISALLOW_COPY_AND_ASSIGN(MediaGalleriesDialogController);
};

Powered by Google App Engine
This is Rietveld 408576698