| 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_PANGO_UTIL_H_ | 5 #ifndef UI_GFX_PANGO_UTIL_H_ |
| 6 #define UI_GFX_PANGO_UTIL_H_ | 6 #define UI_GFX_PANGO_UTIL_H_ |
| 7 | 7 |
| 8 #include <cairo/cairo.h> | 8 #include <cairo/cairo.h> |
| 9 #include <pango/pango.h> | 9 #include <pango/pango.h> |
| 10 #include <string> | 10 #include <string> |
| 11 | 11 |
| 12 #include "base/i18n/rtl.h" | 12 #include "base/i18n/rtl.h" |
| 13 #include "base/logging.h" | 13 #include "base/logging.h" |
| 14 #include "base/strings/string16.h" | 14 #include "base/strings/string16.h" |
| 15 #include "third_party/skia/include/core/SkColor.h" | 15 #include "third_party/skia/include/core/SkColor.h" |
| 16 #include "ui/base/ui_export.h" | 16 #include "ui/gfx/gfx_export.h" |
| 17 | 17 |
| 18 typedef struct _PangoContext PangoContext; | 18 typedef struct _PangoContext PangoContext; |
| 19 | 19 |
| 20 namespace gfx { | 20 namespace gfx { |
| 21 | 21 |
| 22 class Font; | 22 class Font; |
| 23 class PlatformFontPango; | 23 class PlatformFontPango; |
| 24 class Rect; | 24 class Rect; |
| 25 | 25 |
| 26 // Creates and returns a PangoContext. The caller owns the context. | 26 // Creates and returns a PangoContext. The caller owns the context. |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 size_t GetPangoFontSizeInPixels(PangoFontDescription* pango_font); | 107 size_t GetPangoFontSizeInPixels(PangoFontDescription* pango_font); |
| 108 | 108 |
| 109 // Retrieves the Pango metrics for a Pango font description. Caches the metrics | 109 // Retrieves the Pango metrics for a Pango font description. Caches the metrics |
| 110 // and never frees them. The metrics objects are relatively small and very | 110 // and never frees them. The metrics objects are relatively small and very |
| 111 // expensive to look up. | 111 // expensive to look up. |
| 112 PangoFontMetrics* GetPangoFontMetrics(PangoFontDescription* desc); | 112 PangoFontMetrics* GetPangoFontMetrics(PangoFontDescription* desc); |
| 113 | 113 |
| 114 } // namespace gfx | 114 } // namespace gfx |
| 115 | 115 |
| 116 #endif // UI_GFX_PANGO_UTIL_H_ | 116 #endif // UI_GFX_PANGO_UTIL_H_ |
| OLD | NEW |