ifc_skinnedbrowser.h 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. #ifndef NULLSOFT_WINAMP_OMBROWSER_SKINNED_BROWSER_INTERFACE_HEADER
  2. #define NULLSOFT_WINAMP_OMBROWSER_SKINNED_BROWSER_INTERFACE_HEADER
  3. #if defined(_MSC_VER) && (_MSC_VER >= 1020)
  4. #pragma once
  5. #endif
  6. // {9E98C972-7C54-46e1-B265-21B343B2F226}
  7. static const GUID IFC_SkinnedBrowser =
  8. { 0x9e98c972, 0x7c54, 0x46e1, { 0xb2, 0x65, 0x21, 0xb3, 0x43, 0xb2, 0xf2, 0x26 } };
  9. #include <bfc/dispatch.h>
  10. class __declspec(novtable) ifc_skinnedbrowser : public Dispatchable
  11. {
  12. protected:
  13. ifc_skinnedbrowser() {}
  14. ~ifc_skinnedbrowser() {}
  15. public:
  16. HRESULT GetHostCss(wchar_t **ppchHostCss);
  17. COLORREF GetBackColor(void);
  18. COLORREF GetTextColor(void);
  19. COLORREF GetLinkColor(void);
  20. COLORREF GetActiveLinkColor(void);
  21. COLORREF GetVisitedLinkColor(void);
  22. COLORREF GetHoveredLinkColor(void);
  23. public:
  24. DISPATCH_CODES
  25. {
  26. API_GETHOSTCSS = 10,
  27. API_GETBACKCOLOR = 20,
  28. API_GETTEXTCOLOR = 30,
  29. API_GETLINKCOLOR = 40,
  30. API_GETACTIVELINKCOLOR = 50,
  31. API_GETVISITEDLINKCOLOR = 60,
  32. API_GETHOVEREDLINKCOLOR = 70,
  33. };
  34. };
  35. inline HRESULT ifc_skinnedbrowser::GetHostCss(wchar_t **ppchHostCss)
  36. {
  37. return _call(API_GETHOSTCSS, (HRESULT)E_NOTIMPL, ppchHostCss);
  38. }
  39. inline COLORREF ifc_skinnedbrowser::GetBackColor(void)
  40. {
  41. return _call(API_GETBACKCOLOR, (COLORREF)0x00FFFFFF);
  42. }
  43. inline COLORREF ifc_skinnedbrowser::GetTextColor(void)
  44. {
  45. return _call(API_GETTEXTCOLOR, (COLORREF)0x00000000);
  46. }
  47. inline COLORREF ifc_skinnedbrowser::GetLinkColor(void)
  48. {
  49. return _call(API_GETLINKCOLOR, (COLORREF)0x000000E0);
  50. }
  51. inline COLORREF ifc_skinnedbrowser::GetActiveLinkColor(void)
  52. {
  53. return _call(API_GETACTIVELINKCOLOR, (COLORREF)0x000000FF);
  54. }
  55. inline COLORREF ifc_skinnedbrowser::GetVisitedLinkColor(void)
  56. {
  57. return _call(API_GETVISITEDLINKCOLOR, (COLORREF)0x00FF00FF);
  58. }
  59. inline COLORREF ifc_skinnedbrowser::GetHoveredLinkColor(void)
  60. {
  61. return _call(API_GETHOVEREDLINKCOLOR, (COLORREF)0x000000F0);
  62. }
  63. #endif // NULLSOFT_WINAMP_OMBROWSER_SKINNED_BROWSER_INTERFACE_HEADER