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

Unified Diff: chrome/browser/extensions/api/media_galleries/media_galleries_api.h

Issue 10826129: Media galleries: configuration dialog controller and GTK impl. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: const Extension* -> const Extension& Created 8 years, 4 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/extensions/api/media_galleries/media_galleries_api.h
diff --git a/chrome/browser/extensions/api/media_galleries/media_galleries_api.h b/chrome/browser/extensions/api/media_galleries/media_galleries_api.h
index 45b7e6e1627df8f3180d8edae648c4a63c0c1094..6aa592191c3520dce8a15968f0bdf39b679d5b93 100644
--- a/chrome/browser/extensions/api/media_galleries/media_galleries_api.h
+++ b/chrome/browser/extensions/api/media_galleries/media_galleries_api.h
@@ -9,10 +9,13 @@
#define CHROME_BROWSER_EXTENSIONS_API_MEDIA_GALLERIES_MEDIA_GALLERIES_API_H_
#include "chrome/browser/extensions/extension_function.h"
+#include "chrome/browser/media_gallery/media_galleries_dialog_controller.h"
namespace extensions {
-class MediaGalleriesGetMediaFileSystemsFunction : public SyncExtensionFunction {
+class MediaGalleriesGetMediaFileSystemsFunction
+ : public AsyncExtensionFunction,
+ public chrome::MediaGalleriesDialogDelegate {
public:
DECLARE_EXTENSION_FUNCTION_NAME(
"experimental.mediaGalleries.getMediaFileSystems")
@@ -20,6 +23,16 @@ class MediaGalleriesGetMediaFileSystemsFunction : public SyncExtensionFunction {
protected:
virtual ~MediaGalleriesGetMediaFileSystemsFunction();
virtual bool RunImpl() OVERRIDE;
+
+ private:
+ // Grabs the galleries from the preferences system and returns them.
+ void ReturnGalleries();
+
+ // Shows the configuration dialog to edit gallery preferences.
+ void ShowDialog();
+
+ // MediaGalleriesDialogDelegate implementation:
+ virtual void MediaGalleriesDialogFinished() OVERRIDE;
};
class MediaGalleriesAssembleMediaFileFunction : public SyncExtensionFunction {

Powered by Google App Engine
This is Rietveld 408576698