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

Side by Side Diff: ui/gfx/platform_font.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/path_x11.h ('k') | ui/gfx/platform_font_pango.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_H_ 5 #ifndef UI_GFX_PLATFORM_FONT_H_
6 #define UI_GFX_PLATFORM_FONT_H_ 6 #define UI_GFX_PLATFORM_FONT_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
11 #include "base/strings/string16.h" 11 #include "base/strings/string16.h"
12 #include "ui/gfx/gfx_export.h" 12 #include "ui/gfx/gfx_export.h"
13 #include "ui/gfx/native_widget_types.h" 13 #include "ui/gfx/native_widget_types.h"
14 14
15 namespace gfx { 15 namespace gfx {
16 16
17 class Font; 17 class Font;
18 18
19 class UI_EXPORT PlatformFont : public base::RefCounted<PlatformFont> { 19 class GFX_EXPORT PlatformFont : public base::RefCounted<PlatformFont> {
20 public: 20 public:
21 // Creates an appropriate PlatformFont implementation. 21 // Creates an appropriate PlatformFont implementation.
22 static PlatformFont* CreateDefault(); 22 static PlatformFont* CreateDefault();
23 static PlatformFont* CreateFromNativeFont(NativeFont native_font); 23 static PlatformFont* CreateFromNativeFont(NativeFont native_font);
24 // Creates a PlatformFont implementation with the specified |font_name| 24 // Creates a PlatformFont implementation with the specified |font_name|
25 // (encoded in UTF-8) and |font_size| in pixels. 25 // (encoded in UTF-8) and |font_size| in pixels.
26 static PlatformFont* CreateFromNameAndSize(const std::string& font_name, 26 static PlatformFont* CreateFromNameAndSize(const std::string& font_name,
27 int font_size); 27 int font_size);
28 28
29 // Returns a new Font derived from the existing font. 29 // Returns a new Font derived from the existing font.
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 virtual ~PlatformFont() {} 70 virtual ~PlatformFont() {}
71 71
72 private: 72 private:
73 friend class base::RefCounted<PlatformFont>; 73 friend class base::RefCounted<PlatformFont>;
74 }; 74 };
75 75
76 } // namespace gfx 76 } // namespace gfx
77 77
78 #endif // UI_GFX_PLATFORM_FONT_H_ 78 #endif // UI_GFX_PLATFORM_FONT_H_
79 79
OLDNEW
« no previous file with comments | « ui/gfx/path_x11.h ('k') | ui/gfx/platform_font_pango.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698