OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CONTENT_BROWSER_FONT_ACCESS_FONT_GETTER_H_ |
| 6 #define CONTENT_BROWSER_FONT_ACCESS_FONT_GETTER_H_ |
| 7 |
| 8 #include <map> |
| 9 #include <string> |
| 10 |
| 11 #include "base/containers/hash_tables.h" |
| 12 #include "base/files/file_path.h" |
| 13 #include "base/macros.h" |
| 14 #include "base/memory/scoped_ptr.h" |
| 15 |
| 16 namespace content { |
| 17 |
| 18 struct FontInformation { |
| 19 FontInformation(base::FilePath path, std::string full_name) |
| 20 : path(path), full_name(full_name) {} |
| 21 |
| 22 base::FilePath path; |
| 23 std::string full_name; |
| 24 }; |
| 25 |
| 26 typedef std::string FontFamily; |
| 27 typedef std::string FontStyle; |
| 28 typedef base::hash_map<FontStyle, const FontInformation> FontStyleMap; |
| 29 typedef base::hash_map<FontFamily, FontStyleMap> FontCacheMap; |
| 30 |
| 31 extern const char kFontAccessToken[]; |
| 32 |
| 33 scoped_ptr<FontCacheMap> GetFontCacheMap(); |
| 34 |
| 35 } // namespace content |
| 36 |
| 37 #endif // CONTENT_COMMON_FONT_LIST_H_ |
OLD | NEW |