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

Unified Diff: chrome/renderer/pepper/pepper_flash_font_file_host.h

Issue 1416643002: Enable pp::flash::FontFile support on Windows (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Based generated thunk files 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: chrome/renderer/pepper/pepper_flash_font_file_host.h
diff --git a/chrome/renderer/pepper/pepper_flash_font_file_host.h b/chrome/renderer/pepper/pepper_flash_font_file_host.h
index 02bb30f315fd371f0e917726eb84b93b43010f30..3c29a222f588b51fe9ac43f7c4f8cb7f42227bf4 100644
--- a/chrome/renderer/pepper/pepper_flash_font_file_host.h
+++ b/chrome/renderer/pepper/pepper_flash_font_file_host.h
@@ -12,6 +12,9 @@
#if defined(OS_LINUX) || defined(OS_OPENBSD)
#include "base/files/scoped_file.h"
+#elif defined(OS_WIN)
+#include "skia/ext/refptr.h"
+#include "third_party/skia/include/core/SkTypeface.h"
#endif
namespace content {
@@ -41,9 +44,12 @@ class PepperFlashFontFileHost : public ppapi::host::ResourceHost {
private:
int32_t OnGetFontTable(ppapi::host::HostMessageContext* context,
uint32_t table);
+ bool GetFontData(uint32_t table, void* buffer, size_t* length);
#if defined(OS_LINUX) || defined(OS_OPENBSD)
base::ScopedFD fd_;
+#elif defined(OS_WIN)
+ skia::RefPtr<SkTypeface> typeface_;
#endif
DISALLOW_COPY_AND_ASSIGN(PepperFlashFontFileHost);

Powered by Google App Engine
This is Rietveld 408576698