diff options
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; }; |