OLD | NEW |
---|---|
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #include "ui/gfx/font_render_params.h" | 5 #include "ui/gfx/font_render_params.h" |
6 | 6 |
7 #include "base/memory/scoped_ptr.h" | 7 #include "base/memory/scoped_ptr.h" |
8 #include "base/memory/singleton.h" | 8 #include "base/memory/singleton.h" |
9 #include "ui/gfx/win/singleton_hwnd.h" | 9 #include "ui/gfx/win/singleton_hwnd.h" |
10 | 10 |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
65 } | 65 } |
66 } | 66 } |
67 | 67 |
68 scoped_ptr<FontRenderParams> params_; | 68 scoped_ptr<FontRenderParams> params_; |
69 | 69 |
70 DISALLOW_COPY_AND_ASSIGN(CachedFontRenderParams); | 70 DISALLOW_COPY_AND_ASSIGN(CachedFontRenderParams); |
71 }; | 71 }; |
72 | 72 |
73 } // namespace | 73 } // namespace |
74 | 74 |
75 const FontRenderParams& GetDefaultFontRenderParams() { | 75 FontRenderParams GetFontRenderParams(const FontRenderParamsQuery& query, |
76 std::string* family_out) { | |
77 if (!query.is_empty() || family_out) | |
msw
2014/07/23 22:16:35
ditto (needs comment)
Daniel Erat
2014/07/23 22:47:18
Done.
| |
78 NOTIMPLEMENTED(); | |
76 return CachedFontRenderParams::GetInstance()->GetParams(); | 79 return CachedFontRenderParams::GetInstance()->GetParams(); |
77 } | 80 } |
78 | 81 |
79 const FontRenderParams& GetDefaultWebKitFontRenderParams() { | |
80 return GetDefaultFontRenderParams(); | |
81 } | |
82 | |
83 FontRenderParams GetCustomFontRenderParams( | |
84 bool for_web_contents, | |
85 const std::vector<std::string>* family_list, | |
86 const int* pixel_size, | |
87 const int* point_size, | |
88 const int* style, | |
89 std::string* family_out) { | |
90 NOTIMPLEMENTED(); | |
91 return GetDefaultFontRenderParams(); | |
92 } | |
93 | |
94 } // namespace gfx | 82 } // namespace gfx |
OLD | NEW |