OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 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. |
| 4 |
| 5 #ifndef CHROME_BROWSER_UI_LIBGTKUI_NATIVE_THEME_GTK3_H_ |
| 6 #define CHROME_BROWSER_UI_LIBGTKUI_NATIVE_THEME_GTK3_H_ |
| 7 |
| 8 #include "base/macros.h" |
| 9 #include "ui/native_theme/native_theme_base.h" |
| 10 |
| 11 typedef struct _GtkWidget GtkWidget; |
| 12 |
| 13 namespace libgtkui { |
| 14 |
| 15 // A version of NativeTheme that uses GTK3-rendered widgets. |
| 16 class NativeThemeGtk3 : public ui::NativeThemeBase { |
| 17 public: |
| 18 static NativeThemeGtk3* instance(); |
| 19 |
| 20 // Overridden from ui::NativeThemeBase: |
| 21 SkColor GetSystemColor(ColorId color_id) const override; |
| 22 |
| 23 private: |
| 24 NativeThemeGtk3(); |
| 25 ~NativeThemeGtk3() override; |
| 26 |
| 27 // Returns various widgets for theming use. |
| 28 // TODO(thomasanderson): Remove all of these. |
| 29 GtkWidget* GetWindow() const; |
| 30 GtkWidget* GetEntry() const; |
| 31 GtkWidget* GetLabel() const; |
| 32 GtkWidget* GetButton() const; |
| 33 GtkWidget* GetBlueButton() const; |
| 34 GtkWidget* GetTree() const; |
| 35 GtkWidget* GetTooltip() const; |
| 36 GtkWidget* GetMenu() const; |
| 37 GtkWidget* GetMenuItem() const; |
| 38 |
| 39 DISALLOW_COPY_AND_ASSIGN(NativeThemeGtk3); |
| 40 }; |
| 41 |
| 42 } // namespace libgtkui |
| 43 |
| 44 #endif // CHROME_BROWSER_UI_LIBGTKUI_NATIVE_THEME_GTK3_H_ |
OLD | NEW |