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

Unified Diff: content/test/dwrite_font_fake_sender_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 | « content/content_tests.gypi ('k') | content/test/dwrite_font_fake_sender_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/dwrite_font_fake_sender_win.h
diff --git a/content/test/dwrite_font_fake_sender_win.h b/content/test/dwrite_font_fake_sender_win.h
index d2929a23c567716d5b3416520bdca56c2a603f9a..84363cb1ca863f59ba6083d0c1eeff0c4eb0196f 100644
--- a/content/test/dwrite_font_fake_sender_win.h
+++ b/content/test/dwrite_font_fake_sender_win.h
@@ -19,6 +19,9 @@
#include "ipc/ipc_message.h"
#include "ipc/ipc_sender.h"
+struct DWriteFontStyle;
+struct MapCharactersResult;
+
namespace content {
class FakeFontCollection;
@@ -47,6 +50,8 @@ class FakeFont {
return *this;
}
+ const base::string16& font_name() { return font_name_; }
+
private:
friend FakeFontCollection;
base::string16 font_name_;
@@ -114,6 +119,13 @@ class FakeFontCollection : public base::RefCounted<FakeFontCollection> {
void OnGetFontFiles(uint32_t 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);
+
private:
scoped_refptr<FakeFontCollection> collection_;
std::unique_ptr<IPC::Message> reply_;
@@ -148,6 +160,13 @@ class FakeFontCollection : public base::RefCounted<FakeFontCollection> {
void OnGetFontFiles(uint32_t 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);
+
std::unique_ptr<ReplySender> GetReplySender();
private:
« no previous file with comments | « content/content_tests.gypi ('k') | content/test/dwrite_font_fake_sender_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698