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

Unified Diff: content/common/dwrite_font_proxy_messages.h

Issue 1378353006: Implementation of dwrite font proxy and removal of dwrite font cache (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge to head Created 5 years, 2 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/common/dwrite_font_proxy_messages.h
diff --git a/content/common/dwrite_font_proxy_messages.h b/content/common/dwrite_font_proxy_messages.h
new file mode 100644
index 0000000000000000000000000000000000000000..6b16c908ade2d6c4da9be4603950e02e0ab56eec
--- /dev/null
+++ b/content/common/dwrite_font_proxy_messages.h
@@ -0,0 +1,37 @@
+// Copyright 2015 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.
+
+#include <utility>
+#include <vector>
+
+#include "base/strings/string16.h"
+#include "content/common/content_export.h"
+#include "ipc/ipc_message_macros.h"
+
+#undef IPC_MESSAGE_EXPORT
+#define IPC_MESSAGE_EXPORT CONTENT_EXPORT
+#define IPC_MESSAGE_START DWriteFontProxyMsgStart
+
+// The macros can't handle a complex template declaration, so we typedef it.
+typedef std::pair<base::string16, base::string16> StringPair;
+
+// Locates the index of the specified font family within the system collection.
+IPC_SYNC_MESSAGE_CONTROL1_1(DWriteFontProxyMsg_FindFamily,
+ base::string16 /* familyName */,
+ uint32 /* out index */)
+
+// Returns the number of font families in the system collection.
+IPC_SYNC_MESSAGE_CONTROL0_1(DWriteFontProxyMsg_GetFamilyCount,
+ uint32 /* out count */)
+
+// Returns the list of family names for the font family at the specified index.
+IPC_SYNC_MESSAGE_CONTROL1_1(DWriteFontProxyMsg_GetFamilyNames,
+ uint32 /* familyIndex */,
+ std::vector<StringPair> /* out familyNames */)
+
+// Returns the list of font file paths in the system font directory that contain
+// font data for the font family at the specified index.
+IPC_SYNC_MESSAGE_CONTROL1_1(DWriteFontProxyMsg_GetFontFiles,
+ uint32 /* familyIndex */,
+ std::vector<base::string16> /* out filePaths */)

Powered by Google App Engine
This is Rietveld 408576698