Linux: Depend on liberation-fonts package for RPMs.
[chromium-blink-merge.git] / ui / native_theme / native_theme_android.h
bloba83970295185a7cf36663e220d8410344302a3ed
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef UI_NATIVE_THEME_NATIVE_THEME_ANDROID_H_
6 #define UI_NATIVE_THEME_NATIVE_THEME_ANDROID_H_
8 #include "ui/native_theme/native_theme_base.h"
10 namespace ui {
12 // Android implementation of native theme support.
13 class NativeThemeAndroid : public NativeThemeBase {
14 public:
15 static NativeThemeAndroid* instance();
17 // NativeThemeBase:
18 gfx::Size GetPartSize(Part part,
19 State state,
20 const ExtraParams& extra) const override;
21 SkColor GetSystemColor(ColorId color_id) const override;
23 protected:
24 // NativeThemeBase:
25 void AdjustCheckboxRadioRectForPadding(SkRect* rect) const override;
27 private:
28 NativeThemeAndroid();
29 ~NativeThemeAndroid() override;
31 DISALLOW_COPY_AND_ASSIGN(NativeThemeAndroid);
34 } // namespace ui
36 #endif // UI_NATIVE_THEME_NATIVE_THEME_ANDROID_H_