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

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

Issue 374833005: Simplify PangoLayout configuration. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove unneeded PangoContext forward declaration Created 6 years, 5 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/pango_util.cc ('k') | ui/gfx/platform_font_pango.cc » ('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_PLATFORM_FONT_PANGO_H_ 5 #ifndef UI_GFX_PLATFORM_FONT_PANGO_H_
6 #define UI_GFX_PLATFORM_FONT_PANGO_H_ 6 #define UI_GFX_PLATFORM_FONT_PANGO_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 59
60 private: 60 private:
61 // Create a new instance of this object with the specified properties. Called 61 // Create a new instance of this object with the specified properties. Called
62 // from DeriveFont. 62 // from DeriveFont.
63 PlatformFontPango(const skia::RefPtr<SkTypeface>& typeface, 63 PlatformFontPango(const skia::RefPtr<SkTypeface>& typeface,
64 const std::string& name, 64 const std::string& name,
65 int size, 65 int size,
66 int style); 66 int style);
67 virtual ~PlatformFontPango(); 67 virtual ~PlatformFontPango();
68 68
69 // Returns a Pango font description (suitable for parsing by
70 // pango_font_description_from_string()) for the default UI font.
71 static std::string GetDefaultFont();
72
73 // Initializes this object based on the passed-in details. If |typeface| is 69 // Initializes this object based on the passed-in details. If |typeface| is
74 // empty, a new typeface will be loaded. 70 // empty, a new typeface will be loaded.
75 void InitFromDetails( 71 void InitFromDetails(
76 const skia::RefPtr<SkTypeface>& typeface, 72 const skia::RefPtr<SkTypeface>& typeface,
77 const std::string& font_family, 73 const std::string& font_family,
78 int font_size, 74 int font_size,
79 int style); 75 int style);
80 76
81 // Initializes this object as a copy of another PlatformFontPango. 77 // Initializes this object as a copy of another PlatformFontPango.
82 void InitFromPlatformFont(const PlatformFontPango* other); 78 void InitFromPlatformFont(const PlatformFontPango* other);
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 #if defined(OS_CHROMEOS) 115 #if defined(OS_CHROMEOS)
120 static std::string* default_font_description_; 116 static std::string* default_font_description_;
121 #endif 117 #endif
122 118
123 DISALLOW_COPY_AND_ASSIGN(PlatformFontPango); 119 DISALLOW_COPY_AND_ASSIGN(PlatformFontPango);
124 }; 120 };
125 121
126 } // namespace gfx 122 } // namespace gfx
127 123
128 #endif // UI_GFX_PLATFORM_FONT_PANGO_H_ 124 #endif // UI_GFX_PLATFORM_FONT_PANGO_H_
OLDNEW
« no previous file with comments | « ui/gfx/pango_util.cc ('k') | ui/gfx/platform_font_pango.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698