blob: f2f232388d5c63004065608cb67ece41679cc0d7 [file] [log] [blame]
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CONTENT_CHILD_WEBTHEMEENGINE_IMPL_MAC_H_
#define CONTENT_CHILD_WEBTHEMEENGINE_IMPL_MAC_H_
#include "content/child/webthemeengine_impl_default.h"
namespace content {
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;
};
} // namespace content
#endif // CONTENT_CHILD_WEBTHEMEENGINE_IMPL_MAC_H_