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

Unified Diff: webkit/glue/plugins/pepper_file_chooser.h

Issue 3052040: Chromium-side implemention of pepper's FileChooser. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 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: webkit/glue/plugins/pepper_file_chooser.h
===================================================================
--- webkit/glue/plugins/pepper_file_chooser.h (revision 54935)
+++ webkit/glue/plugins/pepper_file_chooser.h (working copy)
@@ -6,12 +6,16 @@
#define WEBKIT_GLUE_PLUGINS_PEPPER_FILE_CHOOSER_H_
#include <string>
+#include <vector>
+#include "base/scoped_ptr.h"
+#include "third_party/ppapi/c/pp_completion_callback.h"
#include "third_party/ppapi/c/ppb_file_chooser.h"
#include "webkit/glue/plugins/pepper_resource.h"
namespace pepper {
+class PluginDelegate;
class PluginInstance;
class FileChooser : public Resource {
@@ -26,13 +30,20 @@
// Resource overrides.
FileChooser* AsFileChooser() { return this; }
+ // Stores the list of selected files.
+ void StoreChosenFiles(const std::vector<std::string>& files);
+
// PPB_FileChooser implementation.
int32_t Show(PP_CompletionCallback callback);
scoped_refptr<FileRef> GetNextChosenFile();
private:
+ PluginDelegate* delegate_;
PP_FileChooserMode mode_;
std::string accept_mime_types_;
+ PP_CompletionCallback completion_callback_;
+ std::vector<scoped_refptr<FileRef> > chosen_files_;
+ size_t next_chosen_file_index_;
};
} // namespace pepper

Powered by Google App Engine
This is Rietveld 408576698