Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 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/memory/scoped_ptr.h" | |
| 12 | |
| 13 namespace content { | |
| 14 struct FontInformation { | |
|
mlamouri (slow - plz ping)
2016/01/26 17:17:11
nit: empty line
Daniel Nishi
2016/01/26 18:36:10
Done.
| |
| 15 FontInformation(std::string path, std::string fullName) | |
| 16 : path(path), fullName(fullName) {} | |
| 17 | |
| 18 std::string path; | |
| 19 std::string fullName; | |
| 20 }; | |
|
mlamouri (slow - plz ping)
2016/01/26 17:17:11
DISALLOW_COPY_AND_ASSIGN?
Daniel Nishi
2016/01/26 18:36:10
Done.
| |
| 21 typedef std::string FontFamily; | |
| 22 typedef std::string FontStyle; | |
| 23 typedef std::map<const FontStyle, const FontInformation> FontStyleMap; | |
| 24 typedef std::map<const FontFamily, FontStyleMap> FontCacheMap; | |
| 25 | |
| 26 extern const char kFontAccessToken[]; | |
| 27 | |
| 28 scoped_ptr<FontCacheMap> GetFontCacheMap(); | |
| 29 | |
| 30 } // namespace content | |
| 31 | |
| 32 #endif // CONTENT_COMMON_FONT_LIST_H_ | |
| OLD | NEW |