| 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 #ifndef UI_GFX_LINUX_FONT_DELEGATE_H_ | 5 #ifndef UI_GFX_LINUX_FONT_DELEGATE_H_ |
| 6 #define UI_GFX_LINUX_FONT_DELEGATE_H_ | 6 #define UI_GFX_LINUX_FONT_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "ui/gfx/font_render_params_linux.h" | 10 #include "ui/gfx/font_render_params.h" |
| 11 #include "ui/gfx/gfx_export.h" | 11 #include "ui/gfx/gfx_export.h" |
| 12 | 12 |
| 13 namespace gfx { | 13 namespace gfx { |
| 14 | 14 |
| 15 // Allows a Linux platform specific overriding of font preferences. | 15 // Allows a Linux platform specific overriding of font preferences. |
| 16 class GFX_EXPORT LinuxFontDelegate { | 16 class GFX_EXPORT LinuxFontDelegate { |
| 17 public: | 17 public: |
| 18 virtual ~LinuxFontDelegate() {} | 18 virtual ~LinuxFontDelegate() {} |
| 19 | 19 |
| 20 // Sets the dynamically loaded singleton that provides font preferences. | 20 // Sets the dynamically loaded singleton that provides font preferences. |
| (...skipping 19 matching lines...) Expand all Loading... |
| 40 GetSubpixelRenderingStyle() const = 0; | 40 GetSubpixelRenderingStyle() const = 0; |
| 41 | 41 |
| 42 // Returns the Pango description for the default UI font. The format matches | 42 // Returns the Pango description for the default UI font. The format matches |
| 43 // that returned by pango_font_description_to_string(). | 43 // that returned by pango_font_description_to_string(). |
| 44 virtual std::string GetDefaultFontDescription() const = 0; | 44 virtual std::string GetDefaultFontDescription() const = 0; |
| 45 }; | 45 }; |
| 46 | 46 |
| 47 } // namespace gfx | 47 } // namespace gfx |
| 48 | 48 |
| 49 #endif // UI_GFX_LINUX_FONT_DELEGATE_H_ | 49 #endif // UI_GFX_LINUX_FONT_DELEGATE_H_ |
| OLD | NEW |