OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #include "ui/gfx/native_theme_gtk.h" | 5 #include "ui/gfx/native_theme_gtk.h" |
6 | 6 |
| 7 #include "base/basictypes.h" |
| 8 |
7 namespace gfx { | 9 namespace gfx { |
8 | 10 |
9 // static | 11 // static |
10 const NativeTheme* NativeTheme::instance() { | 12 const NativeTheme* NativeTheme::instance() { |
11 return NativeThemeGtk::instance(); | 13 return NativeThemeGtk::instance(); |
12 } | 14 } |
13 | 15 |
14 // static | 16 // static |
15 const NativeThemeGtk* NativeThemeGtk::instance() { | 17 const NativeThemeGtk* NativeThemeGtk::instance() { |
16 CR_DEFINE_STATIC_LOCAL(NativeThemeGtk, s_native_theme, ()); | 18 CR_DEFINE_STATIC_LOCAL(NativeThemeGtk, s_native_theme, ()); |
17 return &s_native_theme; | 19 return &s_native_theme; |
18 } | 20 } |
19 | 21 |
20 NativeThemeGtk::NativeThemeGtk() { | 22 NativeThemeGtk::NativeThemeGtk() { |
21 } | 23 } |
22 | 24 |
23 NativeThemeGtk::~NativeThemeGtk() { | 25 NativeThemeGtk::~NativeThemeGtk() { |
24 } | 26 } |
25 | 27 |
26 } // namespace gfx | 28 } // namespace gfx |
OLD | NEW |