CefWebPluginInfo.cs 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. namespace Xilium.CefGlue
  2. {
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Diagnostics;
  6. using System.Runtime.InteropServices;
  7. using Xilium.CefGlue.Interop;
  8. /// <summary>
  9. /// Information about a specific web plugin.
  10. /// </summary>
  11. public sealed unsafe partial class CefWebPluginInfo
  12. {
  13. /// <summary>
  14. /// Returns the plugin name.
  15. /// </summary>
  16. public string Name
  17. {
  18. get
  19. {
  20. var n_result = cef_web_plugin_info_t.get_name(_self);
  21. return cef_string_userfree.ToString(n_result);
  22. }
  23. }
  24. /// <summary>
  25. /// Returns the plugin file path (DLL/bundle/library).
  26. /// </summary>
  27. public string Path
  28. {
  29. get
  30. {
  31. var n_result = cef_web_plugin_info_t.get_path(_self);
  32. return cef_string_userfree.ToString(n_result);
  33. }
  34. }
  35. /// <summary>
  36. /// Returns the version of the plugin (may be OS-specific).
  37. /// </summary>
  38. public string Version
  39. {
  40. get
  41. {
  42. var n_result = cef_web_plugin_info_t.get_version(_self);
  43. return cef_string_userfree.ToString(n_result);
  44. }
  45. }
  46. /// <summary>
  47. /// Returns a description of the plugin from the version information.
  48. /// </summary>
  49. public string Description
  50. {
  51. get
  52. {
  53. var n_result = cef_web_plugin_info_t.get_description(_self);
  54. return cef_string_userfree.ToString(n_result);
  55. }
  56. }
  57. }
  58. }