| 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 #ifdef _MSC_VER | 5 #ifdef _MSC_VER |
| 6 // Do not warn about use of std::copy with raw pointers. | 6 // Do not warn about use of std::copy with raw pointers. |
| 7 #pragma warning(disable : 4996) | 7 #pragma warning(disable : 4996) |
| 8 #endif | 8 #endif |
| 9 | 9 |
| 10 #include "native_client/src/trusted/plugin/plugin.h" | 10 #include "native_client/src/trusted/plugin/plugin.h" |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 #include "native_client/src/trusted/plugin/json_manifest.h" | 36 #include "native_client/src/trusted/plugin/json_manifest.h" |
| 37 #include "native_client/src/trusted/plugin/nacl_entry_points.h" | 37 #include "native_client/src/trusted/plugin/nacl_entry_points.h" |
| 38 #include "native_client/src/trusted/plugin/nacl_subprocess.h" | 38 #include "native_client/src/trusted/plugin/nacl_subprocess.h" |
| 39 #include "native_client/src/trusted/plugin/nexe_arch.h" | 39 #include "native_client/src/trusted/plugin/nexe_arch.h" |
| 40 #include "native_client/src/trusted/plugin/plugin_error.h" | 40 #include "native_client/src/trusted/plugin/plugin_error.h" |
| 41 #include "native_client/src/trusted/plugin/scriptable_plugin.h" | 41 #include "native_client/src/trusted/plugin/scriptable_plugin.h" |
| 42 #include "native_client/src/trusted/plugin/service_runtime.h" | 42 #include "native_client/src/trusted/plugin/service_runtime.h" |
| 43 #include "native_client/src/trusted/plugin/utility.h" | 43 #include "native_client/src/trusted/plugin/utility.h" |
| 44 #include "native_client/src/trusted/service_runtime/nacl_error_code.h" | 44 #include "native_client/src/trusted/service_runtime/nacl_error_code.h" |
| 45 | 45 |
| 46 #include "ppapi/c/dev/ppb_console_dev.h" | |
| 47 #include "ppapi/c/dev/ppp_find_dev.h" | 46 #include "ppapi/c/dev/ppp_find_dev.h" |
| 48 #include "ppapi/c/dev/ppp_printing_dev.h" | 47 #include "ppapi/c/dev/ppp_printing_dev.h" |
| 49 #include "ppapi/c/dev/ppp_selection_dev.h" | 48 #include "ppapi/c/dev/ppp_selection_dev.h" |
| 50 #include "ppapi/c/dev/ppp_zoom_dev.h" | 49 #include "ppapi/c/dev/ppp_zoom_dev.h" |
| 51 #include "ppapi/c/pp_errors.h" | 50 #include "ppapi/c/pp_errors.h" |
| 51 #include "ppapi/c/ppb_console.h" |
| 52 #include "ppapi/c/ppb_var.h" | 52 #include "ppapi/c/ppb_var.h" |
| 53 #include "ppapi/c/ppp_input_event.h" | 53 #include "ppapi/c/ppp_input_event.h" |
| 54 #include "ppapi/c/ppp_instance.h" | 54 #include "ppapi/c/ppp_instance.h" |
| 55 #include "ppapi/c/ppp_mouse_lock.h" | 55 #include "ppapi/c/ppp_mouse_lock.h" |
| 56 #include "ppapi/c/private/ppb_nacl_private.h" | 56 #include "ppapi/c/private/ppb_nacl_private.h" |
| 57 #include "ppapi/c/private/ppb_uma_private.h" | 57 #include "ppapi/c/private/ppb_uma_private.h" |
| 58 #include "ppapi/cpp/dev/find_dev.h" | 58 #include "ppapi/cpp/dev/find_dev.h" |
| 59 #include "ppapi/cpp/dev/printing_dev.h" | 59 #include "ppapi/cpp/dev/printing_dev.h" |
| 60 #include "ppapi/cpp/dev/selection_dev.h" | 60 #include "ppapi/cpp/dev/selection_dev.h" |
| 61 #include "ppapi/cpp/dev/text_input_dev.h" | 61 #include "ppapi/cpp/dev/text_input_dev.h" |
| (...skipping 1845 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1907 pp::Module* module = pp::Module::Get(); | 1907 pp::Module* module = pp::Module::Get(); |
| 1908 const PPB_Var* var_interface = | 1908 const PPB_Var* var_interface = |
| 1909 static_cast<const PPB_Var*>( | 1909 static_cast<const PPB_Var*>( |
| 1910 module->GetBrowserInterface(PPB_VAR_INTERFACE)); | 1910 module->GetBrowserInterface(PPB_VAR_INTERFACE)); |
| 1911 nacl::string prefix_string("NativeClient"); | 1911 nacl::string prefix_string("NativeClient"); |
| 1912 PP_Var prefix = | 1912 PP_Var prefix = |
| 1913 var_interface->VarFromUtf8(prefix_string.c_str(), | 1913 var_interface->VarFromUtf8(prefix_string.c_str(), |
| 1914 static_cast<uint32_t>(prefix_string.size())); | 1914 static_cast<uint32_t>(prefix_string.size())); |
| 1915 PP_Var str = var_interface->VarFromUtf8(text.c_str(), | 1915 PP_Var str = var_interface->VarFromUtf8(text.c_str(), |
| 1916 static_cast<uint32_t>(text.size())); | 1916 static_cast<uint32_t>(text.size())); |
| 1917 const PPB_Console_Dev* console_interface = | 1917 const PPB_Console* console_interface = |
| 1918 static_cast<const PPB_Console_Dev*>( | 1918 static_cast<const PPB_Console*>( |
| 1919 module->GetBrowserInterface(PPB_CONSOLE_DEV_INTERFACE)); | 1919 module->GetBrowserInterface(PPB_CONSOLE_INTERFACE)); |
| 1920 console_interface->LogWithSource(pp_instance(), PP_LOGLEVEL_LOG, prefix, str); | 1920 console_interface->LogWithSource(pp_instance(), PP_LOGLEVEL_LOG, prefix, str); |
| 1921 var_interface->Release(prefix); | 1921 var_interface->Release(prefix); |
| 1922 var_interface->Release(str); | 1922 var_interface->Release(str); |
| 1923 } | 1923 } |
| 1924 | 1924 |
| 1925 } // namespace plugin | 1925 } // namespace plugin |
| OLD | NEW |