| OLD | NEW |
| 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 // From trusted/ppb_file_chooser_trusted.idl, | 5 // From trusted/ppb_file_chooser_trusted.idl, |
| 6 // modified Mon Apr 1 08:24:03 2013. | 6 // modified Tue Aug 20 08:13:36 2013. |
| 7 | 7 |
| 8 #include "ppapi/c/pp_completion_callback.h" | 8 #include "ppapi/c/pp_completion_callback.h" |
| 9 #include "ppapi/c/pp_errors.h" | 9 #include "ppapi/c/pp_errors.h" |
| 10 #include "ppapi/c/trusted/ppb_file_chooser_trusted.h" | 10 #include "ppapi/c/trusted/ppb_file_chooser_trusted.h" |
| 11 #include "ppapi/shared_impl/tracked_callback.h" | 11 #include "ppapi/shared_impl/tracked_callback.h" |
| 12 #include "ppapi/thunk/enter.h" | 12 #include "ppapi/thunk/enter.h" |
| 13 #include "ppapi/thunk/ppapi_thunk_export.h" |
| 13 #include "ppapi/thunk/ppb_file_chooser_api.h" | 14 #include "ppapi/thunk/ppb_file_chooser_api.h" |
| 14 #include "ppapi/thunk/ppb_instance_api.h" | |
| 15 #include "ppapi/thunk/resource_creation_api.h" | |
| 16 #include "ppapi/thunk/thunk.h" | |
| 17 | 15 |
| 18 namespace ppapi { | 16 namespace ppapi { |
| 19 namespace thunk { | 17 namespace thunk { |
| 20 | 18 |
| 21 namespace { | 19 namespace { |
| 22 | 20 |
| 23 int32_t ShowWithoutUserGesture_0_5(PP_Resource chooser, | 21 int32_t ShowWithoutUserGesture_0_5(PP_Resource chooser, |
| 24 PP_Bool save_as, | 22 PP_Bool save_as, |
| 25 struct PP_Var suggested_file_name, | 23 struct PP_Var suggested_file_name, |
| 26 struct PP_CompletionCallback callback) { | 24 struct PP_CompletionCallback callback) { |
| (...skipping 26 matching lines...) Expand all Loading... |
| 53 const PPB_FileChooserTrusted_0_5 g_ppb_filechoosertrusted_thunk_0_5 = { | 51 const PPB_FileChooserTrusted_0_5 g_ppb_filechoosertrusted_thunk_0_5 = { |
| 54 &ShowWithoutUserGesture_0_5 | 52 &ShowWithoutUserGesture_0_5 |
| 55 }; | 53 }; |
| 56 | 54 |
| 57 const PPB_FileChooserTrusted_0_6 g_ppb_filechoosertrusted_thunk_0_6 = { | 55 const PPB_FileChooserTrusted_0_6 g_ppb_filechoosertrusted_thunk_0_6 = { |
| 58 &ShowWithoutUserGesture | 56 &ShowWithoutUserGesture |
| 59 }; | 57 }; |
| 60 | 58 |
| 61 } // namespace | 59 } // namespace |
| 62 | 60 |
| 63 const PPB_FileChooserTrusted_0_5* GetPPB_FileChooserTrusted_0_5_Thunk() { | 61 PPAPI_THUNK_EXPORT const PPB_FileChooserTrusted_0_5* |
| 62 GetPPB_FileChooserTrusted_0_5_Thunk() { |
| 64 return &g_ppb_filechoosertrusted_thunk_0_5; | 63 return &g_ppb_filechoosertrusted_thunk_0_5; |
| 65 } | 64 } |
| 66 | 65 |
| 67 const PPB_FileChooserTrusted_0_6* GetPPB_FileChooserTrusted_0_6_Thunk() { | 66 PPAPI_THUNK_EXPORT const PPB_FileChooserTrusted_0_6* |
| 67 GetPPB_FileChooserTrusted_0_6_Thunk() { |
| 68 return &g_ppb_filechoosertrusted_thunk_0_6; | 68 return &g_ppb_filechoosertrusted_thunk_0_6; |
| 69 } | 69 } |
| 70 | 70 |
| 71 } // namespace thunk | 71 } // namespace thunk |
| 72 } // namespace ppapi | 72 } // namespace ppapi |
| OLD | NEW |