OLD | NEW |
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_LIBGTKUI_NATIVE_THEME_GTK2_H_ | 5 #ifndef CHROME_BROWSER_UI_LIBGTKUI_NATIVE_THEME_GTK_H_ |
6 #define CHROME_BROWSER_UI_LIBGTKUI_NATIVE_THEME_GTK2_H_ | 6 #define CHROME_BROWSER_UI_LIBGTKUI_NATIVE_THEME_GTK_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 | |
14 namespace libgtkui { | 13 namespace libgtkui { |
15 | 14 |
16 // A version of NativeTheme that uses GTK2 supplied colours instead of the | 15 // A version of NativeTheme that uses GTK2 supplied colours instead of the |
17 // default aura colours. Analogue to NativeThemeWin, except that can't be | 16 // default aura colours. Analogue to NativeThemeWin, except that can't be |
18 // compiled into the main chrome binary like the Windows code can. | 17 // compiled into the main chrome binary like the Windows code can. |
19 class NativeThemeGtk2 : public ui::NativeThemeBase { | 18 class NativeThemeGtk2 : public ui::NativeThemeBase { |
20 public: | 19 public: |
21 static NativeThemeGtk2* instance(); | 20 static NativeThemeGtk2* instance(); |
22 | 21 |
23 // Overridden from ui::NativeThemeBase: | 22 // Overridden from ui::NativeThemeBase: |
(...skipping 26 matching lines...) Expand all Loading... |
50 | 49 |
51 private: | 50 private: |
52 NativeThemeGtk2(); | 51 NativeThemeGtk2(); |
53 ~NativeThemeGtk2() override; | 52 ~NativeThemeGtk2() override; |
54 | 53 |
55 DISALLOW_COPY_AND_ASSIGN(NativeThemeGtk2); | 54 DISALLOW_COPY_AND_ASSIGN(NativeThemeGtk2); |
56 }; | 55 }; |
57 | 56 |
58 } // namespace libgtkui | 57 } // namespace libgtkui |
59 | 58 |
60 #endif // CHROME_BROWSER_UI_LIBGTKUI_NATIVE_THEME_GTK2_H_ | 59 #endif // CHROME_BROWSER_UI_LIBGTKUI_NATIVE_THEME_GTK_H_ |
OLD | NEW |