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

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: 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
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 aa0e0a0a108b8004e94611aa771c288160efe23f..37005119ca94f143395f0562f925785ee3438c5b 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;
@@ -45,6 +48,8 @@ class FakeFont {
return *this;
}
+ const base::string16& FontName() { return font_name_; }
ananta 2016/04/12 23:44:39 Please change name to font_name()
Ilya Kulshin 2016/04/13 01:33:29 Done.
+
private:
friend FakeFontCollection;
base::string16 font_name_;
@@ -112,6 +117,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_;
@@ -146,6 +158,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:

Powered by Google App Engine
This is Rietveld 408576698