| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "content/common/font_list.h" | 5 #include "content/common/font_list.h" |
| 6 | 6 |
| 7 #include <windows.h> | 7 #include <windows.h> |
| 8 #include <string.h> |
| 8 | 9 |
| 9 #include <set> | 10 #include <set> |
| 10 | 11 |
| 11 #include "base/strings/string16.h" | 12 #include "base/strings/string16.h" |
| 12 #include "base/values.h" | 13 #include "base/values.h" |
| 13 | 14 |
| 14 namespace content { | 15 namespace content { |
| 15 | 16 |
| 16 static int CALLBACK EnumFontFamExProc(ENUMLOGFONTEXW* logical_font, | 17 static int CALLBACK EnumFontFamExProc(ENUMLOGFONTEXW* logical_font, |
| 17 NEWTEXTMETRICEXW* physical_font, | 18 NEWTEXTMETRICEXW* physical_font, |
| (...skipping 28 matching lines...) Expand all Loading... |
| 46 for (iter = font_names.begin(); iter != font_names.end(); ++iter) { | 47 for (iter = font_names.begin(); iter != font_names.end(); ++iter) { |
| 47 base::ListValue* font_item = new base::ListValue(); | 48 base::ListValue* font_item = new base::ListValue(); |
| 48 font_item->Append(new base::StringValue(*iter)); | 49 font_item->Append(new base::StringValue(*iter)); |
| 49 font_item->Append(new base::StringValue(*iter)); | 50 font_item->Append(new base::StringValue(*iter)); |
| 50 font_list->Append(font_item); | 51 font_list->Append(font_item); |
| 51 } | 52 } |
| 52 return font_list.Pass(); | 53 return font_list.Pass(); |
| 53 } | 54 } |
| 54 | 55 |
| 55 } // namespace content | 56 } // namespace content |
| OLD | NEW |