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

Side by Side Diff: ppapi/cpp/trusted/file_chooser_trusted.h

Issue 10414085: Modified the pepper file chooser API to support filtering files by extensions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 6 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
« no previous file with comments | « ppapi/cpp/dev/file_chooser_dev.cc ('k') | ppapi/cpp/trusted/file_chooser_trusted.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef PPAPI_CPP_TRUSTED_FILE_CHOOSER_TRUSTED_H_ 5 #ifndef PPAPI_CPP_TRUSTED_FILE_CHOOSER_TRUSTED_H_
6 #define PPAPI_CPP_TRUSTED_FILE_CHOOSER_TRUSTED_H_ 6 #define PPAPI_CPP_TRUSTED_FILE_CHOOSER_TRUSTED_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "ppapi/cpp/dev/file_chooser_dev.h" 10 #include "ppapi/cpp/dev/file_chooser_dev.h"
11 11
12 namespace pp { 12 namespace pp {
13 13
14 class FileChooser_Trusted : public FileChooser_Dev { 14 class FileChooser_Trusted : public FileChooser_Dev {
15 public: 15 public:
16 /// Creates an is_null() FileChooser_Trusted object. 16 /// Creates an is_null() FileChooser_Trusted object.
17 FileChooser_Trusted(); 17 FileChooser_Trusted();
18 18
19 FileChooser_Trusted(const InstanceHandle& instance, 19 FileChooser_Trusted(const InstanceHandle& instance,
20 PP_FileChooserMode_Dev mode, 20 PP_FileChooserMode_Dev mode,
21 const Var& accept_mime_types, 21 const Var& accept_types,
22 bool save_as, 22 bool save_as,
23 const std::string& suggested_file_name); 23 const std::string& suggested_file_name);
24 24
25 FileChooser_Trusted(const FileChooser_Trusted& other); 25 FileChooser_Trusted(const FileChooser_Trusted& other);
26 26
27 FileChooser_Trusted& operator=(const FileChooser_Trusted& other); 27 FileChooser_Trusted& operator=(const FileChooser_Trusted& other);
28 28
29 // Overrides of method in superclass. This shows without requiring a user 29 // Overrides of method in superclass. This shows without requiring a user
30 // gesture (and can also show save dialogs). 30 // gesture (and can also show save dialogs).
31 virtual int32_t Show( 31 virtual int32_t Show(
32 const CompletionCallbackWithOutput< std::vector<FileRef> >& callback); 32 const CompletionCallbackWithOutput< std::vector<FileRef> >& callback);
33 33
34 private: 34 private:
35 bool save_as_; 35 bool save_as_;
36 std::string suggested_file_name_; 36 std::string suggested_file_name_;
37 }; 37 };
38 38
39 } // namespace pp 39 } // namespace pp
40 40
41 #endif // PPAPI_CPP_TRUSTED_FILE_CHOOSER_TRUSTED_H_ 41 #endif // PPAPI_CPP_TRUSTED_FILE_CHOOSER_TRUSTED_H_
OLDNEW
« no previous file with comments | « ppapi/cpp/dev/file_chooser_dev.cc ('k') | ppapi/cpp/trusted/file_chooser_trusted.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698