OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef PPAPI_CPP_TRUSTED_FILE_CHOOSER_TRUSTED_H_ |
| 6 #define PPAPI_CPP_TRUSTED_FILE_CHOOSER_TRUSTED_H_ |
| 7 |
| 8 #include <string> |
| 9 |
| 10 #include "ppapi/cpp/dev/file_chooser_dev.h" |
| 11 |
| 12 namespace pp { |
| 13 |
| 14 class FileChooser_Trusted : public FileChooser_Dev { |
| 15 public: |
| 16 /// Creates an is_null() FileChooser_Trusted object. |
| 17 FileChooser_Trusted(); |
| 18 |
| 19 FileChooser_Trusted(const Instance* instance, |
| 20 PP_FileChooserMode_Dev mode, |
| 21 const Var& accept_mime_types, |
| 22 bool save_as, |
| 23 const std::string& suggested_file_name); |
| 24 |
| 25 FileChooser_Trusted(const FileChooser_Trusted& other); |
| 26 |
| 27 // Overrides of method in superclass. This shows without requiring a user |
| 28 // gesture (and can also show save dialogs). |
| 29 virtual int32_t Show(const CompletionCallback& cc); |
| 30 |
| 31 private: |
| 32 const bool save_as_; |
| 33 const std::string suggested_file_name_; |
| 34 }; |
| 35 |
| 36 } // namespace pp |
| 37 |
| 38 #endif // PPAPI_CPP_TRUSTED_FILE_CHOOSER_TRUSTED_H_ |
OLD | NEW |