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_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" |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 // Returns the specified font name in UTF-8. | 57 // Returns the specified font name in UTF-8. |
58 virtual std::string GetFontName() const = 0; | 58 virtual std::string GetFontName() const = 0; |
59 | 59 |
60 // Returns the actually used font name in UTF-8. | 60 // Returns the actually used font name in UTF-8. |
61 virtual std::string GetActualFontNameForTesting() const = 0; | 61 virtual std::string GetActualFontNameForTesting() const = 0; |
62 | 62 |
63 // Returns the font size in pixels. | 63 // Returns the font size in pixels. |
64 virtual int GetFontSize() const = 0; | 64 virtual int GetFontSize() const = 0; |
65 | 65 |
66 // Returns an object describing how the font should be rendered. | 66 // Returns an object describing how the font should be rendered. |
67 virtual const FontRenderParams& GetFontRenderParams() const = 0; | 67 virtual const FontRenderParams& GetFontRenderParams() = 0; |
68 | 68 |
69 // Returns the native font handle. | 69 // Returns the native font handle. |
70 virtual NativeFont GetNativeFont() const = 0; | 70 virtual NativeFont GetNativeFont() const = 0; |
71 | 71 |
72 protected: | 72 protected: |
73 virtual ~PlatformFont() {} | 73 virtual ~PlatformFont() {} |
74 | 74 |
75 private: | 75 private: |
76 friend class base::RefCounted<PlatformFont>; | 76 friend class base::RefCounted<PlatformFont>; |
77 }; | 77 }; |
78 | 78 |
79 } // namespace gfx | 79 } // namespace gfx |
80 | 80 |
81 #endif // UI_GFX_PLATFORM_FONT_H_ | 81 #endif // UI_GFX_PLATFORM_FONT_H_ |
OLD | NEW |