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

Unified Diff: content/test/dwrite_font_fake_sender_win.cc

Issue 2153343002: Implement support for loading font files from outside system directory (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add some more comments Created 4 years, 5 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/test/dwrite_font_fake_sender_win.cc
diff --git a/content/test/dwrite_font_fake_sender_win.cc b/content/test/dwrite_font_fake_sender_win.cc
index a525ee6a23618eb0c61777bbfcb657a9bd9070c0..97e8588d6498d5cf55cf7f0d6ac419ef33f1b023 100644
--- a/content/test/dwrite_font_fake_sender_win.cc
+++ b/content/test/dwrite_font_fake_sender_win.cc
@@ -109,8 +109,9 @@ void FakeFontCollection::ReplySender::OnGetFamilyNames(
void FakeFontCollection::ReplySender::OnGetFontFiles(
uint32_t family_index,
- std::vector<base::string16>* file_paths) {
- collection_->OnGetFontFiles(family_index, file_paths);
+ std::vector<base::string16>* file_paths,
+ std::vector<IPC::PlatformFileForTransit>* file_handles) {
+ collection_->OnGetFontFiles(family_index, file_paths, file_handles);
}
void FakeFontCollection::ReplySender::OnMapCharacters(
@@ -172,10 +173,12 @@ void FakeFontCollection::OnGetFamilyNames(
void FakeFontCollection::OnGetFontFiles(
uint32_t family_index,
- std::vector<base::string16>* file_paths) {
+ std::vector<base::string16>* file_paths,
+ std::vector<IPC::PlatformFileForTransit>* file_handles) {
if (family_index >= fonts_.size())
return;
*file_paths = fonts_[family_index].file_paths_;
+ *file_handles = fonts_[family_index].file_handles_;
}
void FakeFontCollection::OnMapCharacters(const base::string16& text,

Powered by Google App Engine
This is Rietveld 408576698