Chromium Code Reviews| 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. |italic| should be true if the |
|
msw
2016/03/25 01:33:10
nit: |italic_out|, but you can probably just remov
Mikus
2016/03/25 11:49:00
Done.
| |
| 37 // gfx::Font::Style values. | 37 // italic styling is desired. |
| 38 virtual void GetDefaultFontDescription( | 38 virtual void GetDefaultFontDescription( |
| 39 std::string* family_out, | 39 std::string* family_out, |
| 40 int* size_pixels_out, | 40 int* size_pixels_out, |
| 41 int* style_out, | 41 bool* italic_out, |
| 42 Font::Weight* weight_out, | |
| 42 FontRenderParams* params_out) const = 0; | 43 FontRenderParams* params_out) const = 0; |
| 43 }; | 44 }; |
| 44 | 45 |
| 45 } // namespace gfx | 46 } // namespace gfx |
| 46 | 47 |
| 47 #endif // UI_GFX_LINUX_FONT_DELEGATE_H_ | 48 #endif // UI_GFX_LINUX_FONT_DELEGATE_H_ |
| OLD | NEW |