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

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: rejigger dialog buttons 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("mediaGalleries.getMediaFileSystems") 20 DECLARE_EXTENSION_FUNCTION_NAME("mediaGalleries.getMediaFileSystems")
18 21
19 protected: 22 protected:
20 virtual ~MediaGalleriesGetMediaFileSystemsFunction(); 23 virtual ~MediaGalleriesGetMediaFileSystemsFunction();
21 virtual bool RunImpl() OVERRIDE; 24 virtual bool RunImpl() OVERRIDE;
25
26 private:
27 // Grabs the galleries from the preferences system and returns them.
28 void ReturnGalleries();
29
30 // Shows the configuration dialog to edit gallery preferences.
31 void ShowDialog();
32
33 // MediaGalleriesDialogDelegate implementation:
34 virtual void MediaGalleriesDialogFinished() OVERRIDE;
22 }; 35 };
23 36
24 class MediaGalleriesAssembleMediaFileFunction : public SyncExtensionFunction { 37 class MediaGalleriesAssembleMediaFileFunction : public SyncExtensionFunction {
25 public: 38 public:
26 DECLARE_EXTENSION_FUNCTION_NAME( 39 DECLARE_EXTENSION_FUNCTION_NAME(
27 "experimental.mediaGalleries.assembleMediaFile") 40 "experimental.mediaGalleries.assembleMediaFile")
28 41
29 protected: 42 protected:
30 virtual ~MediaGalleriesAssembleMediaFileFunction(); 43 virtual ~MediaGalleriesAssembleMediaFileFunction();
31 virtual bool RunImpl() OVERRIDE; 44 virtual bool RunImpl() OVERRIDE;
32 }; 45 };
33 46
34 } // namespace extensions 47 } // namespace extensions
35 48
36 #endif // CHROME_BROWSER_EXTENSIONS_API_MEDIA_GALLERIES_MEDIA_GALLERIES_API_H_ 49 #endif // CHROME_BROWSER_EXTENSIONS_API_MEDIA_GALLERIES_MEDIA_GALLERIES_API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698