Chromium Code Reviews| Index: content/child/dwrite_font_proxy/dwrite_font_proxy_win.h |
| diff --git a/content/child/dwrite_font_proxy/dwrite_font_proxy_win.h b/content/child/dwrite_font_proxy/dwrite_font_proxy_win.h |
| index 63d1f54316b66a2da3c77e7acd7d6722acb77ea2..221281c9c49f6b5bd8cd8d65b49b9253b5d650a5 100644 |
| --- a/content/child/dwrite_font_proxy/dwrite_font_proxy_win.h |
| +++ b/content/child/dwrite_font_proxy/dwrite_font_proxy_win.h |
| @@ -71,6 +71,12 @@ class CONTENT_EXPORT DWriteFontCollectionProxy |
| bool LoadFamily(UINT32 family_index, |
| IDWriteFontCollection** containing_collection); |
| + // Gets the family at the specified index with the expected name. This can be |
| + // used to avoid an IPC call when both the index and family name are known. |
| + bool GetFontFamily(UINT32 family_index, |
| + const base::string16& family_name, |
| + IDWriteFontFamily** font_family); |
| + |
| bool LoadFamilyNames(UINT32 family_index, IDWriteLocalizedStrings** strings); |
| bool CreateFamily(UINT32 family_index); |
| @@ -124,6 +130,8 @@ class CONTENT_EXPORT DWriteFontFamilyProxy |
| void SetName(const base::string16& family_name); |
| + const base::string16& GetName() { return family_name_; } |
|
ananta
2016/04/12 23:44:39
function name if inline should be family_name()
Ilya Kulshin
2016/04/13 01:33:28
Moved definition into cc.
|
| + |
| bool IsLoaded(); |
| protected: |