Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(164)

Side by Side Diff: content/browser/font_access/font_getter.h

Issue 1615133002: Implement API for accessing fonts installed locally on the system. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright (c) 2016 The Chromium Authors. All rights reserved.
nasko 2016/02/12 22:05:18 style: No "(c)".
Daniel Nishi 2016/02/12 22:49:40 Done.
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/macros.h"
13 #include "base/memory/scoped_ptr.h"
14
15 namespace content {
16
17 struct FontInformation {
18 FontInformation(std::string path, std::string full_name)
19 : path(path), full_name(full_name) {}
20
21 std::string path;
22 std::string full_name;
23 };
24
25 typedef std::string FontFamily;
26 typedef std::string FontStyle;
27 typedef base::hash_map<FontStyle, const FontInformation> FontStyleMap;
28 typedef base::hash_map<FontFamily, FontStyleMap> FontCacheMap;
29
30 extern const char kFontAccessToken[];
31
32 scoped_ptr<FontCacheMap> GetFontCacheMap();
33
34 } // namespace content
35
36 #endif // CONTENT_COMMON_FONT_LIST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698