| OLD | NEW |
| (Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "ppapi/c/dev/ppb_printing_dev.h" |
| 6 #include "ppapi/thunk/enter.h" |
| 7 #include "ppapi/thunk/thunk.h" |
| 8 |
| 9 namespace ppapi { |
| 10 namespace thunk { |
| 11 |
| 12 namespace { |
| 13 |
| 14 PP_Bool GetDefaultPrintSettings(PP_Instance instance, |
| 15 PP_PrintSettings_Dev* print_settings) { |
| 16 EnterInstance enter(instance); |
| 17 if (enter.failed()) |
| 18 return PP_FALSE; |
| 19 return enter.functions()->GetDefaultPrintSettings(instance, print_settings); |
| 20 } |
| 21 |
| 22 const PPB_Printing_Dev g_ppb_printing_dev_thunk = { |
| 23 &GetDefaultPrintSettings, |
| 24 }; |
| 25 |
| 26 } // namespace |
| 27 |
| 28 const PPB_Printing_Dev_0_6* GetPPB_Printing_Dev_0_6_Thunk() { |
| 29 return &g_ppb_printing_dev_thunk; |
| 30 } |
| 31 |
| 32 } // namespace thunk |
| 33 } // namespace ppapi |
| OLD | NEW |