blob: 6d5c3811a0fa51632bcdaa618d5e8baa616b13f4 [file] [log] [blame]
// Copyright (c) 2012 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 UI_NATIVE_THEME_NATIVE_THEME_ANDROID_H_
#define UI_NATIVE_THEME_NATIVE_THEME_ANDROID_H_
#include "base/macros.h"
#include "base/no_destructor.h"
#include "ui/native_theme/native_theme_base.h"
namespace ui {
// Android implementation of native theme support.
class NativeThemeAndroid : public NativeThemeBase {
public:
// NativeThemeBase:
gfx::Size GetPartSize(Part part,
State state,
const ExtraParams& extra) const override;
SkColor GetSystemColor(ColorId color_id,
ColorScheme color_scheme) const override;
protected:
friend class NativeTheme;
friend class base::NoDestructor<NativeThemeAndroid>;
static NativeThemeAndroid* instance();
// NativeThemeBase:
void AdjustCheckboxRadioRectForPadding(SkRect* rect) const override;
private:
NativeThemeAndroid();
~NativeThemeAndroid() override;
DISALLOW_COPY_AND_ASSIGN(NativeThemeAndroid);
};
} // namespace ui
#endif // UI_NATIVE_THEME_NATIVE_THEME_ANDROID_H_