Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(159)

Side by Side Diff: ui/gfx/pango_util.h

Issue 23486010: Adds a gfx_export.h to ui/gfx and converts all code in ui/gfx to (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix find and replace error. Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ui/gfx/native_widget_types.h ('k') | ui/gfx/path.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « ui/gfx/native_widget_types.h ('k') | ui/gfx/path.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698