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

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

Issue 2449243002: Gtk3 ui: Add libgtk3ui as a separate build component (Closed)
Patch Set: Add theme_properties dep to //chrome/browser/ui Created 4 years, 1 month 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
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_LIBGTK2UI_NATIVE_THEME_GTK2_H_ 5 #ifndef CHROME_BROWSER_UI_LIBGTKUI_NATIVE_THEME_GTK2_H_
6 #define CHROME_BROWSER_UI_LIBGTK2UI_NATIVE_THEME_GTK2_H_ 6 #define CHROME_BROWSER_UI_LIBGTKUI_NATIVE_THEME_GTK2_H_
7 7
8 #include <gtk/gtk.h> 8 #include <gtk/gtk.h>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "ui/native_theme/native_theme_base.h" 11 #include "ui/native_theme/native_theme_base.h"
12 12
13 13
14 namespace libgtk2ui { 14 namespace libgtkui {
15 15
16 // A version of NativeTheme that uses GTK2 supplied colours instead of the 16 // A version of NativeTheme that uses GTK2 supplied colours instead of the
17 // default aura colours. Analogue to NativeThemeWin, except that can't be 17 // default aura colours. Analogue to NativeThemeWin, except that can't be
18 // compiled into the main chrome binary like the Windows code can. 18 // compiled into the main chrome binary like the Windows code can.
19 class NativeThemeGtk2 : public ui::NativeThemeBase { 19 class NativeThemeGtk2 : public ui::NativeThemeBase {
20 public: 20 public:
21 static NativeThemeGtk2* instance(); 21 static NativeThemeGtk2* instance();
22 22
23 // Overridden from ui::NativeThemeBase: 23 // Overridden from ui::NativeThemeBase:
24 SkColor GetSystemColor(ColorId color_id) const override; 24 SkColor GetSystemColor(ColorId color_id) const override;
(...skipping 23 matching lines...) Expand all
48 GtkWidget* GetMenu() const; 48 GtkWidget* GetMenu() const;
49 GtkWidget* GetMenuItem() const; 49 GtkWidget* GetMenuItem() const;
50 50
51 private: 51 private:
52 NativeThemeGtk2(); 52 NativeThemeGtk2();
53 ~NativeThemeGtk2() override; 53 ~NativeThemeGtk2() override;
54 54
55 DISALLOW_COPY_AND_ASSIGN(NativeThemeGtk2); 55 DISALLOW_COPY_AND_ASSIGN(NativeThemeGtk2);
56 }; 56 };
57 57
58 } // namespace libgtk2ui 58 } // namespace libgtkui
59 59
60 #endif // CHROME_BROWSER_UI_LIBGTK2UI_NATIVE_THEME_GTK2_H_ 60 #endif // CHROME_BROWSER_UI_LIBGTKUI_NATIVE_THEME_GTK2_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/libgtkui/menu_util.cc ('k') | chrome/browser/ui/libgtkui/native_theme_gtk2.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698