| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 GFX_PLATFORM_FONT_WIN_ | 5 #ifndef UI_GFX_PLATFORM_FONT_WIN_ |
| 6 #define GFX_PLATFORM_FONT_WIN_ | 6 #define UI_GFX_PLATFORM_FONT_WIN_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/ref_counted.h" | 9 #include "base/ref_counted.h" |
| 10 #include "gfx/platform_font.h" | 10 #include "gfx/platform_font.h" |
| 11 | 11 |
| 12 namespace gfx { | 12 namespace gfx { |
| 13 | 13 |
| 14 class PlatformFontWin : public PlatformFont { | 14 class PlatformFontWin : public PlatformFont { |
| 15 public: | 15 public: |
| 16 PlatformFontWin(); | 16 PlatformFontWin(); |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 | 120 |
| 121 // Reference to the base font all fonts are derived from. | 121 // Reference to the base font all fonts are derived from. |
| 122 static HFontRef* base_font_ref_; | 122 static HFontRef* base_font_ref_; |
| 123 | 123 |
| 124 // Indirect reference to the HFontRef, which references the underlying HFONT. | 124 // Indirect reference to the HFontRef, which references the underlying HFONT. |
| 125 scoped_refptr<HFontRef> font_ref_; | 125 scoped_refptr<HFontRef> font_ref_; |
| 126 }; | 126 }; |
| 127 | 127 |
| 128 } // namespace gfx | 128 } // namespace gfx |
| 129 | 129 |
| 130 #endif // GFX_PLATFORM_FONT_WIN_ | 130 #endif // UI_GFX_PLATFORM_FONT_WIN_ |
| 131 | 131 |
| OLD | NEW |