forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
webthemeengine_impl_mac.h
41 lines (31 loc) · 1.32 KB
/
webthemeengine_impl_mac.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
// 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 gfx::Rect& rect,
const blink::WebThemeEngine::ExtraParams* extra_params,
blink::ColorScheme color_scheme) override;
static bool IsScrollbarPart(WebThemeEngine::Part part);
static void PaintMacScrollBarParts(
cc::PaintCanvas* canvas,
WebThemeEngine::Part part,
WebThemeEngine::State state,
const gfx::Rect& rect,
const WebThemeEngine::ExtraParams* extra_params,
blink::ColorScheme color_scheme);
private:
blink::ForcedColors forced_colors_ = blink::ForcedColors::kNone;
};
} // namespace content
#endif // CONTENT_CHILD_WEBTHEMEENGINE_IMPL_MAC_H_