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 namespace gfx { | 7 namespace gfx { |
8 | 8 |
9 // static | 9 // static |
10 const NativeTheme* NativeTheme::instance() { | 10 const NativeTheme* NativeTheme::instance() { |
11 return NativeThemeGtk::instance(); | 11 return NativeThemeGtk::instance(); |
12 } | 12 } |
13 | 13 |
14 // static | 14 // static |
15 const NativeThemeGtk* NativeThemeGtk::instance() { | 15 const NativeThemeGtk* NativeThemeGtk::instance() { |
16 static const NativeThemeGtk s_native_theme; | 16 CR_DEFINE_STATIC_LOCAL(NativeThemeGtk, s_native_theme, ()); |
17 return &s_native_theme; | 17 return &s_native_theme; |
18 } | 18 } |
19 | 19 |
20 NativeThemeGtk::NativeThemeGtk() { | 20 NativeThemeGtk::NativeThemeGtk() { |
21 } | 21 } |
22 | 22 |
23 NativeThemeGtk::~NativeThemeGtk() { | 23 NativeThemeGtk::~NativeThemeGtk() { |
24 } | 24 } |
25 | 25 |
26 } // namespace gfx | 26 } // namespace gfx |
OLD | NEW |