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

Unified Diff: content/browser/renderer_host/dwrite_font_proxy_message_filter_win.h

Issue 1846433005: Implement direct write fallback proxy (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add a missing SUCCEEDED call Created 4 years, 8 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
« no previous file with comments | « no previous file | content/browser/renderer_host/dwrite_font_proxy_message_filter_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/dwrite_font_proxy_message_filter_win.h
diff --git a/content/browser/renderer_host/dwrite_font_proxy_message_filter_win.h b/content/browser/renderer_host/dwrite_font_proxy_message_filter_win.h
index 25ef9b6015c867dc00c2a1f8e862203c78ac73c5..c105f4d07687812672c0981a298a2ec4c24c5a20 100644
--- a/content/browser/renderer_host/dwrite_font_proxy_message_filter_win.h
+++ b/content/browser/renderer_host/dwrite_font_proxy_message_filter_win.h
@@ -6,6 +6,7 @@
#define CONTENT_BROWSER_RENDERER_HOST_DWRITE_FONT_PROXY_MESSAGE_FILTER_WIN_H_
#include <dwrite.h>
+#include <dwrite_2.h>
#include <wrl.h>
#include <set>
#include <utility>
@@ -18,6 +19,9 @@
#include "content/public/browser/browser_message_filter.h"
#include "content/public/browser/browser_thread.h"
+struct DWriteFontStyle;
+struct MapCharactersResult;
+
namespace content {
// Implements a message filter that handles the dwrite font proxy messages.
@@ -43,6 +47,12 @@ class CONTENT_EXPORT DWriteFontProxyMessageFilter
std::vector<std::pair<base::string16, base::string16>>* family_names);
void OnGetFontFiles(UINT32 family_index,
std::vector<base::string16>* file_paths);
+ void OnMapCharacters(const base::string16& text,
+ const DWriteFontStyle& font_style,
+ const base::string16& locale_name,
+ uint32_t reading_direction,
+ const base::string16& base_family_name,
+ MapCharactersResult* result);
void InitializeDirectWrite();
@@ -55,6 +65,8 @@ class CONTENT_EXPORT DWriteFontProxyMessageFilter
private:
bool direct_write_initialized_ = false;
Microsoft::WRL::ComPtr<IDWriteFontCollection> collection_;
+ Microsoft::WRL::ComPtr<IDWriteFactory2> factory2_;
+ Microsoft::WRL::ComPtr<IDWriteFontFallback> font_fallback_;
base::string16 windows_fonts_path_;
DISALLOW_COPY_AND_ASSIGN(DWriteFontProxyMessageFilter);
« no previous file with comments | « no previous file | content/browser/renderer_host/dwrite_font_proxy_message_filter_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698