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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
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 // Defines the Chrome Extensions Media Galleries API functions for accessing 5 // Defines the Chrome Extensions Media Galleries API functions for accessing
6 // user's media files, as specified in the extension API JSON. 6 // user's media files, as specified in the extension API JSON.
7 7
8 #ifndef CHROME_BROWSER_EXTENSIONS_API_MEDIA_GALLERIES_MEDIA_GALLERIES_API_H_ 8 #ifndef CHROME_BROWSER_EXTENSIONS_API_MEDIA_GALLERIES_MEDIA_GALLERIES_API_H_
9 #define CHROME_BROWSER_EXTENSIONS_API_MEDIA_GALLERIES_MEDIA_GALLERIES_API_H_ 9 #define CHROME_BROWSER_EXTENSIONS_API_MEDIA_GALLERIES_MEDIA_GALLERIES_API_H_
10 10
11 #include "chrome/browser/extensions/extension_function.h" 11 #include "chrome/browser/extensions/extension_function.h"
12 #include "chrome/browser/media_gallery/media_galleries_dialog_controller.h"
12 13
13 namespace extensions { 14 namespace extensions {
14 15
15 class MediaGalleriesGetMediaFileSystemsFunction : public SyncExtensionFunction { 16 class MediaGalleriesGetMediaFileSystemsFunction
17 : public AsyncExtensionFunction,
18 public chrome::MediaGalleriesDialogDelegate {
16 public: 19 public:
17 DECLARE_EXTENSION_FUNCTION_NAME( 20 DECLARE_EXTENSION_FUNCTION_NAME(
18 "experimental.mediaGalleries.getMediaFileSystems") 21 "experimental.mediaGalleries.getMediaFileSystems")
19 22
20 protected: 23 protected:
21 virtual ~MediaGalleriesGetMediaFileSystemsFunction(); 24 virtual ~MediaGalleriesGetMediaFileSystemsFunction();
22 virtual bool RunImpl() OVERRIDE; 25 virtual bool RunImpl() OVERRIDE;
26
27 private:
28 // Grabs the galleries from the preferences system and returns them.
29 void ReturnGalleries();
30
31 // Shows the configuration dialog to edit gallery preferences.
32 void ShowDialog();
33
34 // MediaGalleriesDialogDelegate implementation:
35 virtual void MediaGalleriesDialogFinished() OVERRIDE;
23 }; 36 };
24 37
25 class MediaGalleriesAssembleMediaFileFunction : public SyncExtensionFunction { 38 class MediaGalleriesAssembleMediaFileFunction : public SyncExtensionFunction {
26 public: 39 public:
27 DECLARE_EXTENSION_FUNCTION_NAME( 40 DECLARE_EXTENSION_FUNCTION_NAME(
28 "experimental.mediaGalleries.assembleMediaFile") 41 "experimental.mediaGalleries.assembleMediaFile")
29 42
30 protected: 43 protected:
31 virtual ~MediaGalleriesAssembleMediaFileFunction(); 44 virtual ~MediaGalleriesAssembleMediaFileFunction();
32 virtual bool RunImpl() OVERRIDE; 45 virtual bool RunImpl() OVERRIDE;
33 }; 46 };
34 47
35 } // namespace extensions 48 } // namespace extensions
36 49
37 #endif // CHROME_BROWSER_EXTENSIONS_API_MEDIA_GALLERIES_MEDIA_GALLERIES_API_H_ 50 #endif // CHROME_BROWSER_EXTENSIONS_API_MEDIA_GALLERIES_MEDIA_GALLERIES_API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698