| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_DEV_FILE_CHOOSER_DEV_H_ | 5 #ifndef PPAPI_CPP_DEV_FILE_CHOOSER_DEV_H_ |
| 6 #define PPAPI_CPP_DEV_FILE_CHOOSER_DEV_H_ | 6 #define PPAPI_CPP_DEV_FILE_CHOOSER_DEV_H_ |
| 7 | 7 |
| 8 #include "ppapi/cpp/resource.h" | 8 #include "ppapi/cpp/resource.h" |
| 9 | 9 |
| 10 struct PP_FileChooserOptions_Dev; | 10 struct PP_FileChooserOptions_Dev; |
| 11 | 11 |
| 12 namespace pp { | 12 namespace pp { |
| 13 | 13 |
| 14 class CompletionCallback; | 14 class CompletionCallback; |
| 15 class FileRef_Dev; | 15 class FileRef; |
| 16 class Instance; | 16 class Instance; |
| 17 | 17 |
| 18 class FileChooser_Dev : public Resource { | 18 class FileChooser_Dev : public Resource { |
| 19 public: | 19 public: |
| 20 // Creates an is_null() FileChooser object. | 20 // Creates an is_null() FileChooser object. |
| 21 FileChooser_Dev() {} | 21 FileChooser_Dev() {} |
| 22 | 22 |
| 23 FileChooser_Dev(const Instance& instance, | 23 FileChooser_Dev(const Instance& instance, |
| 24 const PP_FileChooserOptions_Dev& options); | 24 const PP_FileChooserOptions_Dev& options); |
| 25 | 25 |
| 26 FileChooser_Dev(const FileChooser_Dev& other); | 26 FileChooser_Dev(const FileChooser_Dev& other); |
| 27 | 27 |
| 28 // PPB_FileChooser methods: | 28 // PPB_FileChooser methods: |
| 29 int32_t Show(const CompletionCallback& cc); | 29 int32_t Show(const CompletionCallback& cc); |
| 30 FileRef_Dev GetNextChosenFile() const; | 30 FileRef GetNextChosenFile() const; |
| 31 }; | 31 }; |
| 32 | 32 |
| 33 } // namespace pp | 33 } // namespace pp |
| 34 | 34 |
| 35 #endif // PPAPI_CPP_DEV_FILE_CHOOSER_DEV_H_ | 35 #endif // PPAPI_CPP_DEV_FILE_CHOOSER_DEV_H_ |
| OLD | NEW |