Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(760)

Side by Side Diff: chrome/browser/ui/libgtkui/native_theme_gtk3.h

Issue 2579683002: LibGtkUi: Partition NativeThemeGtk into NativeThemeGtk2 and NativeThemeGtk3 (Closed)
Patch Set: Fix lsan error Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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_
OLDNEW
« no previous file with comments | « chrome/browser/ui/libgtkui/native_theme_gtk2.cc ('k') | chrome/browser/ui/libgtkui/native_theme_gtk3.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698