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.
5 #include "ppapi/c/dev/ppb_console_dev.h"
6 #include "ppapi/thunk/thunk.h"
7 #include "ppapi/thunk/enter.h"
8 #include "ppapi/thunk/ppb_instance_api.h"
15 void Log(PP_Instance instance
, PP_LogLevel_Dev level
, struct PP_Var value
) {
16 EnterInstance
enter(instance
);
17 if (enter
.succeeded())
18 return enter
.functions()->Log(instance
, level
, value
);
21 void LogWithSource(PP_Instance instance
,
22 PP_LogLevel_Dev level
,
25 EnterInstance
enter(instance
);
26 if (enter
.succeeded())
27 return enter
.functions()->LogWithSource(instance
, level
, source
, value
);
30 const PPB_Console_Dev g_ppb_console_thunk
= {
37 const PPB_Console_Dev_0_1
* GetPPB_Console_Dev_0_1_Thunk() {
38 return &g_ppb_console_thunk
;