| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 UI_GFX_FONT_H_ | 5 #ifndef UI_GFX_FONT_H_ |
| 6 #define UI_GFX_FONT_H_ | 6 #define UI_GFX_FONT_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| 11 #include "base/strings/string16.h" | 11 #include "base/strings/string16.h" |
| 12 #include "build/build_config.h" |
| 12 #include "ui/gfx/gfx_export.h" | 13 #include "ui/gfx/gfx_export.h" |
| 13 #include "ui/gfx/native_widget_types.h" | 14 #include "ui/gfx/native_widget_types.h" |
| 14 | 15 |
| 15 namespace gfx { | 16 namespace gfx { |
| 16 | 17 |
| 17 struct FontRenderParams; | 18 struct FontRenderParams; |
| 18 class PlatformFont; | 19 class PlatformFont; |
| 19 | 20 |
| 20 // Font provides a wrapper around an underlying font. Copy and assignment | 21 // Font provides a wrapper around an underlying font. Copy and assignment |
| 21 // operators are explicitly allowed, and cheap. | 22 // operators are explicitly allowed, and cheap. |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 PlatformFont* platform_font() const { return platform_font_.get(); } | 114 PlatformFont* platform_font() const { return platform_font_.get(); } |
| 114 | 115 |
| 115 private: | 116 private: |
| 116 // Wrapped platform font implementation. | 117 // Wrapped platform font implementation. |
| 117 scoped_refptr<PlatformFont> platform_font_; | 118 scoped_refptr<PlatformFont> platform_font_; |
| 118 }; | 119 }; |
| 119 | 120 |
| 120 } // namespace gfx | 121 } // namespace gfx |
| 121 | 122 |
| 122 #endif // UI_GFX_FONT_H_ | 123 #endif // UI_GFX_FONT_H_ |
| OLD | NEW |