| 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_Dev; |
| 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 FileChooser_Dev& operator=(const FileChooser_Dev& other); | 28 FileChooser_Dev& operator=(const FileChooser_Dev& other); |
| 29 void swap(FileChooser_Dev& other); | |
| 30 | 29 |
| 31 // PPB_FileChooser methods: | 30 // PPB_FileChooser methods: |
| 32 int32_t Show(const CompletionCallback& cc); | 31 int32_t Show(const CompletionCallback& cc); |
| 33 FileRef_Dev GetNextChosenFile() const; | 32 FileRef_Dev GetNextChosenFile() const; |
| 34 }; | 33 }; |
| 35 | 34 |
| 36 } // namespace pp | 35 } // namespace pp |
| 37 | 36 |
| 38 #endif // PPAPI_CPP_DEV_FILE_CHOOSER_DEV_H_ | 37 #endif // PPAPI_CPP_DEV_FILE_CHOOSER_DEV_H_ |
| OLD | NEW |