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

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

Issue 23498059: Remove last dependencies on ui/base from ui/gfx (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: last rebase Created 7 years, 2 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/platform_font.h ('k') | ui/gfx/platform_font_win.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_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"
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "skia/ext/refptr.h" 12 #include "skia/ext/refptr.h"
13 #include "third_party/skia/include/core/SkRefCnt.h" 13 #include "third_party/skia/include/core/SkRefCnt.h"
14 #include "ui/gfx/platform_font.h" 14 #include "ui/gfx/platform_font.h"
15 15
16 class SkTypeface; 16 class SkTypeface;
17 class SkPaint; 17 class SkPaint;
18 18
19 namespace gfx { 19 namespace gfx {
20 20
21 class UI_EXPORT PlatformFontPango : public PlatformFont { 21 class GFX_EXPORT PlatformFontPango : public PlatformFont {
22 public: 22 public:
23 PlatformFontPango(); 23 PlatformFontPango();
24 explicit PlatformFontPango(NativeFont native_font); 24 explicit PlatformFontPango(NativeFont native_font);
25 PlatformFontPango(const std::string& font_name, int font_size); 25 PlatformFontPango(const std::string& font_name, int font_size);
26 26
27 // Converts |gfx_font| to a new pango font. Free the returned font with 27 // Converts |gfx_font| to a new pango font. Free the returned font with
28 // pango_font_description_free(). 28 // pango_font_description_free().
29 static PangoFontDescription* PangoFontFromGfxFont(const gfx::Font& gfx_font); 29 static PangoFontDescription* PangoFontFromGfxFont(const gfx::Font& gfx_font);
30 30
31 // Resets and reloads the cached system font used by the default constructor. 31 // Resets and reloads the cached system font used by the default constructor.
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 #if defined(OS_CHROMEOS) 116 #if defined(OS_CHROMEOS)
117 static std::string* default_font_description_; 117 static std::string* default_font_description_;
118 #endif 118 #endif
119 119
120 DISALLOW_COPY_AND_ASSIGN(PlatformFontPango); 120 DISALLOW_COPY_AND_ASSIGN(PlatformFontPango);
121 }; 121 };
122 122
123 } // namespace gfx 123 } // namespace gfx
124 124
125 #endif // UI_GFX_PLATFORM_FONT_PANGO_H_ 125 #endif // UI_GFX_PLATFORM_FONT_PANGO_H_
OLDNEW
« no previous file with comments | « ui/gfx/platform_font.h ('k') | ui/gfx/platform_font_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698