OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_LINUX_FONT_DELEGATE_H_ | 5 #ifndef UI_GFX_LINUX_FONT_DELEGATE_H_ |
6 #define UI_GFX_LINUX_FONT_DELEGATE_H_ | 6 #define UI_GFX_LINUX_FONT_DELEGATE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 15 matching lines...) Expand all Loading... |
26 // Returns a LinuxFontDelegate instance for the toolkit used in | 26 // Returns a LinuxFontDelegate instance for the toolkit used in |
27 // the user's desktop environment. | 27 // the user's desktop environment. |
28 // | 28 // |
29 // Can return NULL, in case no toolkit has been set. (For example, if we're | 29 // Can return NULL, in case no toolkit has been set. (For example, if we're |
30 // running with the "--ash" flag.) | 30 // running with the "--ash" flag.) |
31 static const LinuxFontDelegate* instance(); | 31 static const LinuxFontDelegate* instance(); |
32 | 32 |
33 // Returns the default font rendering settings. | 33 // Returns the default font rendering settings. |
34 virtual FontRenderParams GetDefaultFontRenderParams() const = 0; | 34 virtual FontRenderParams GetDefaultFontRenderParams() const = 0; |
35 | 35 |
36 // Returns details about the default UI font. |style_out| holds a bitfield of | 36 // Returns details about the default UI font. |
37 // gfx::Font::Style values. | |
38 virtual void GetDefaultFontDescription( | 37 virtual void GetDefaultFontDescription( |
39 std::string* family_out, | 38 std::string* family_out, |
40 int* size_pixels_out, | 39 int* size_pixels_out, |
41 int* style_out, | 40 bool* italic_out, |
| 41 Font::Weight* weight_out, |
42 FontRenderParams* params_out) const = 0; | 42 FontRenderParams* params_out) const = 0; |
43 }; | 43 }; |
44 | 44 |
45 } // namespace gfx | 45 } // namespace gfx |
46 | 46 |
47 #endif // UI_GFX_LINUX_FONT_DELEGATE_H_ | 47 #endif // UI_GFX_LINUX_FONT_DELEGATE_H_ |
OLD | NEW |