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

Unified 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: Addressing Nasko. 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/font_access/font_getter.h
diff --git a/content/browser/font_access/font_getter.h b/content/browser/font_access/font_getter.h
new file mode 100644
index 0000000000000000000000000000000000000000..2fd324f99af92cdcffe3a642bfec1c98b817a451
--- /dev/null
+++ b/content/browser/font_access/font_getter.h
@@ -0,0 +1,37 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CONTENT_BROWSER_FONT_ACCESS_FONT_GETTER_H_
+#define CONTENT_BROWSER_FONT_ACCESS_FONT_GETTER_H_
+
+#include <map>
+#include <string>
+
+#include "base/containers/hash_tables.h"
+#include "base/files/file_path.h"
+#include "base/macros.h"
+#include "base/memory/scoped_ptr.h"
+
+namespace content {
+
+struct FontInformation {
+ FontInformation(base::FilePath path, std::string full_name)
+ : path(path), full_name(full_name) {}
+
+ base::FilePath path;
+ std::string full_name;
+};
+
+typedef std::string FontFamily;
+typedef std::string FontStyle;
+typedef base::hash_map<FontStyle, const FontInformation> FontStyleMap;
+typedef base::hash_map<FontFamily, FontStyleMap> FontCacheMap;
+
+extern const char kFontAccessToken[];
+
+scoped_ptr<FontCacheMap> GetFontCacheMap();
+
+} // namespace content
+
+#endif // CONTENT_COMMON_FONT_LIST_H_
« no previous file with comments | « content/browser/font_access/font_access_service_unittest.cc ('k') | content/browser/font_access/font_getter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698