diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2020-10-12 14:27:29 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2020-10-13 09:35:20 +0000 |
commit | c30a6232df03e1efbd9f3b226777b07e087a1122 (patch) | |
tree | e992f45784689f373bcc38d1b79a239ebe17ee23 /chromium/content/child/webthemeengine_impl_mac.h | |
parent | 7b5b123ac58f58ffde0f4f6e488bcd09aa4decd3 (diff) | |
download | qtwebengine-chromium-85-based.tar.gz |
BASELINE: Update Chromium to 85.0.4183.14085-based
Change-Id: Iaa42f4680837c57725b1344f108c0196741f6057
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'chromium/content/child/webthemeengine_impl_mac.h')
-rw-r--r-- | chromium/content/child/webthemeengine_impl_mac.h | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/chromium/content/child/webthemeengine_impl_mac.h b/chromium/content/child/webthemeengine_impl_mac.h index 81f1d06b1f7..f2f232388d5 100644 --- a/chromium/content/child/webthemeengine_impl_mac.h +++ b/chromium/content/child/webthemeengine_impl_mac.h @@ -5,17 +5,33 @@ #ifndef CONTENT_CHILD_WEBTHEMEENGINE_IMPL_MAC_H_ #define CONTENT_CHILD_WEBTHEMEENGINE_IMPL_MAC_H_ -#include "third_party/blink/public/platform/web_theme_engine.h" +#include "content/child/webthemeengine_impl_default.h" namespace content { -class WebThemeEngineMac : public blink::WebThemeEngine { +class WebThemeEngineMac : public WebThemeEngineDefault { public: ~WebThemeEngineMac() override {} blink::ForcedColors GetForcedColors() const override; void SetForcedColors(const blink::ForcedColors forced_colors) override; + void Paint(cc::PaintCanvas* canvas, + blink::WebThemeEngine::Part part, + blink::WebThemeEngine::State state, + const blink::WebRect& rect, + const blink::WebThemeEngine::ExtraParams* extra_params, + blink::WebColorScheme color_scheme) override; + + static bool IsScrollbarPart(WebThemeEngine::Part part); + static void PaintMacScrollBarParts( + cc::PaintCanvas* canvas, + WebThemeEngine::Part part, + WebThemeEngine::State state, + const blink::WebRect& rect, + const WebThemeEngine::ExtraParams* extra_params, + blink::WebColorScheme color_scheme); + private: blink::ForcedColors forced_colors_ = blink::ForcedColors::kNone; }; |