CEFInterfaceBrowserPopupFeatures.h 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. // Engine/Source/Runtime/WebBrowser/Private/CEF/CEFBrowserPopupFeatures.h
  2. #pragma once
  3. #include "CoreMinimal.h"
  4. #if WITH_CEF3
  5. #include "IWebInterfaceBrowserPopupFeatures.h"
  6. #if PLATFORM_WINDOWS
  7. #include "Windows/WindowsHWrapper.h"
  8. #include "Windows/AllowWindowsPlatformTypes.h"
  9. #include "Windows/AllowWindowsPlatformAtomics.h"
  10. #endif
  11. #pragma push_macro("OVERRIDE")
  12. #undef OVERRIDE // cef headers provide their own OVERRIDE macro
  13. THIRD_PARTY_INCLUDES_START
  14. #if PLATFORM_APPLE
  15. PRAGMA_DISABLE_DEPRECATION_WARNINGS
  16. #endif
  17. #include "include/cef_base.h"
  18. #if PLATFORM_APPLE
  19. PRAGMA_ENABLE_DEPRECATION_WARNINGS
  20. #endif
  21. THIRD_PARTY_INCLUDES_END
  22. #pragma pop_macro("OVERRIDE")
  23. #if PLATFORM_WINDOWS
  24. #include "Windows/HideWindowsPlatformAtomics.h"
  25. #include "Windows/HideWindowsPlatformTypes.h"
  26. #endif
  27. #endif
  28. class IWebInterfaceBrowserPopupFeatures;
  29. #if WITH_CEF3
  30. class FCEFInterfaceBrowserPopupFeatures
  31. : public IWebInterfaceBrowserPopupFeatures
  32. {
  33. public:
  34. FCEFInterfaceBrowserPopupFeatures();
  35. FCEFInterfaceBrowserPopupFeatures(const CefPopupFeatures& PopupFeatures);
  36. virtual ~FCEFInterfaceBrowserPopupFeatures();
  37. void SetResizable(const bool bResize);
  38. // IWebBrowserPopupFeatures Interface
  39. virtual int GetX() const override;
  40. virtual bool IsXSet() const override;
  41. virtual int GetY() const override;
  42. virtual bool IsYSet() const override;
  43. virtual int GetWidth() const override;
  44. virtual bool IsWidthSet() const override;
  45. virtual int GetHeight() const override;
  46. virtual bool IsHeightSet() const override;
  47. virtual bool IsMenuBarVisible() const override;
  48. virtual bool IsStatusBarVisible() const override;
  49. virtual bool IsToolBarVisible() const override;
  50. virtual bool IsLocationBarVisible() const override;
  51. virtual bool IsScrollbarsVisible() const override;
  52. virtual bool IsResizable() const override;
  53. virtual bool IsFullscreen() const override;
  54. virtual bool IsDialog() const override;
  55. virtual TArray<FString> GetAdditionalFeatures() const override;
  56. private:
  57. int X;
  58. bool bXSet;
  59. int Y;
  60. bool bYSet;
  61. int Width;
  62. bool bWidthSet;
  63. int Height;
  64. bool bHeightSet;
  65. bool bMenuBarVisible;
  66. bool bStatusBarVisible;
  67. bool bToolBarVisible;
  68. bool bLocationBarVisible;
  69. bool bScrollbarsVisible;
  70. bool bResizable;
  71. bool bIsFullscreen;
  72. bool bIsDialog;
  73. };
  74. #endif