diff options
Diffstat (limited to 'ppapi/thunk')
-rw-r--r-- | ppapi/thunk/interfaces_ppb_public_dev.h | 4 | ||||
-rw-r--r-- | ppapi/thunk/interfaces_ppb_public_stable.h | 1 | ||||
-rw-r--r-- | ppapi/thunk/ppb_console_thunk.cc | 12 | ||||
-rw-r--r-- | ppapi/thunk/ppb_instance_api.h | 6 |
4 files changed, 13 insertions, 10 deletions
diff --git a/ppapi/thunk/interfaces_ppb_public_dev.h b/ppapi/thunk/interfaces_ppb_public_dev.h index d380cad..24c1642 100644 --- a/ppapi/thunk/interfaces_ppb_public_dev.h +++ b/ppapi/thunk/interfaces_ppb_public_dev.h @@ -7,7 +7,9 @@ #include "ppapi/thunk/interfaces_preamble.h" -PROXIED_IFACE(PPB_Instance, PPB_CONSOLE_DEV_INTERFACE_0_1, PPB_Console_Dev_0_1) +// Map the old dev console interface to the stable one (which is the same) to +// keep Flash, etc. working. +PROXIED_IFACE(PPB_Instance, "PPB_Console(Dev);0.1", PPB_Console_1_0) PROXIED_IFACE(NoAPIName, PPB_CURSOR_CONTROL_DEV_INTERFACE_0_4, PPB_CursorControl_Dev_0_4) PROXIED_IFACE(NoAPIName, PPB_FILECHOOSER_DEV_INTERFACE_0_5, diff --git a/ppapi/thunk/interfaces_ppb_public_stable.h b/ppapi/thunk/interfaces_ppb_public_stable.h index 6698943..c7ae59b6 100644 --- a/ppapi/thunk/interfaces_ppb_public_stable.h +++ b/ppapi/thunk/interfaces_ppb_public_stable.h @@ -54,6 +54,7 @@ PROXIED_IFACE(PPB_FileRef, PPB_FILEREF_INTERFACE_1_0, PPB_FileRef_1_0) PROXIED_IFACE(PPB_FileSystem, PPB_FILESYSTEM_INTERFACE_1_0, PPB_FileSystem_1_0) PROXIED_IFACE(PPB_Graphics3D, PPB_GRAPHICS_3D_INTERFACE_1_0, PPB_Graphics3D_1_0) PROXIED_IFACE(PPB_ImageData, PPB_IMAGEDATA_INTERFACE_1_0, PPB_ImageData_1_0) +PROXIED_IFACE(PPB_Instance, PPB_CONSOLE_INTERFACE_1_0, PPB_Console_1_0) PROXIED_IFACE(PPB_Instance, PPB_GAMEPAD_INTERFACE_1_0, PPB_Gamepad_1_0) PROXIED_IFACE(PPB_Instance, PPB_INSTANCE_INTERFACE_1_0, PPB_Instance_1_0) PROXIED_IFACE(NoAPIName, PPB_GRAPHICS_2D_INTERFACE_1_0, PPB_Graphics2D_1_0) diff --git a/ppapi/thunk/ppb_console_thunk.cc b/ppapi/thunk/ppb_console_thunk.cc index a542e37..9ece35d 100644 --- a/ppapi/thunk/ppb_console_thunk.cc +++ b/ppapi/thunk/ppb_console_thunk.cc @@ -4,8 +4,8 @@ // From dev/ppb_console_dev.idl modified Mon Nov 19 09:22:44 2012. -#include "ppapi/c/dev/ppb_console_dev.h" #include "ppapi/c/pp_errors.h" +#include "ppapi/c/ppb_console.h" #include "ppapi/shared_impl/tracked_callback.h" #include "ppapi/thunk/enter.h" #include "ppapi/thunk/ppb_instance_api.h" @@ -17,14 +17,14 @@ namespace thunk { namespace { -void Log(PP_Instance instance, PP_LogLevel_Dev level, struct PP_Var value) { +void Log(PP_Instance instance, PP_LogLevel level, struct PP_Var value) { EnterInstance enter(instance); if (enter.succeeded()) enter.functions()->Log(instance, level, value); } void LogWithSource(PP_Instance instance, - PP_LogLevel_Dev level, + PP_LogLevel level, struct PP_Var source, struct PP_Var value) { EnterInstance enter(instance); @@ -32,15 +32,15 @@ void LogWithSource(PP_Instance instance, enter.functions()->LogWithSource(instance, level, source, value); } -const PPB_Console_Dev_0_1 g_ppb_console_dev_thunk_0_1 = { +const PPB_Console_1_0 g_ppb_console_thunk_1_0 = { &Log, &LogWithSource, }; } // namespace -const PPB_Console_Dev_0_1* GetPPB_Console_Dev_0_1_Thunk() { - return &g_ppb_console_dev_thunk_0_1; +const PPB_Console_1_0* GetPPB_Console_1_0_Thunk() { + return &g_ppb_console_thunk_1_0; } } // namespace thunk diff --git a/ppapi/thunk/ppb_instance_api.h b/ppapi/thunk/ppb_instance_api.h index 68f7a2b..0c53c8b 100644 --- a/ppapi/thunk/ppb_instance_api.h +++ b/ppapi/thunk/ppb_instance_api.h @@ -7,7 +7,6 @@ #include "base/memory/ref_counted.h" #include "base/memory/scoped_ptr.h" -#include "ppapi/c/dev/ppb_console_dev.h" #include "ppapi/c/dev/ppb_text_input_dev.h" #include "ppapi/c/dev/ppb_url_util_dev.h" #include "ppapi/c/pp_bool.h" @@ -15,6 +14,7 @@ #include "ppapi/c/pp_size.h" #include "ppapi/c/pp_time.h" #include "ppapi/c/ppb_audio_config.h" +#include "ppapi/c/ppb_console.h" #include "ppapi/c/ppb_gamepad.h" #include "ppapi/c/ppb_instance.h" #include "ppapi/c/ppb_mouse_cursor.h" @@ -71,10 +71,10 @@ class PPB_Instance_API { // Console. virtual void Log(PP_Instance instance, - PP_LogLevel_Dev log_level, + PP_LogLevel log_level, PP_Var value) = 0; virtual void LogWithSource(PP_Instance instance, - PP_LogLevel_Dev log_level, + PP_LogLevel log_level, PP_Var source, PP_Var value) = 0; |