OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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 #include "ui/gfx/linux_font_delegate.h" | 5 #include "ui/gfx/linux_font_delegate.h" |
6 | 6 |
7 namespace { | 7 namespace { |
8 | 8 |
9 gfx::LinuxFontDelegate* g_linux_font_delegate = 0; | 9 gfx::LinuxFontDelegate* g_linux_font_delegate = 0; |
10 | 10 |
11 } // namespace | 11 } // namespace |
12 | 12 |
13 namespace gfx { | 13 namespace gfx { |
14 | 14 |
15 void LinuxFontDelegate::SetInstance(LinuxFontDelegate* instance) { | 15 void LinuxFontDelegate::SetInstance(LinuxFontDelegate* instance) { |
16 g_linux_font_delegate = instance; | 16 g_linux_font_delegate = instance; |
17 } | 17 } |
18 | 18 |
19 const LinuxFontDelegate* LinuxFontDelegate::instance() { | 19 LinuxFontDelegate* LinuxFontDelegate::instance() { |
20 return g_linux_font_delegate; | 20 return g_linux_font_delegate; |
21 } | 21 } |
22 | 22 |
23 } // namespace gfx | 23 } // namespace gfx |
OLD | NEW |