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

Unified Diff: content/common/child_process_sandbox_support_impl_linux.h

Issue 8590028: Use new getFontFamilyForCharacters() API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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/common/child_process_sandbox_support_impl_linux.h
diff --git a/content/common/child_process_sandbox_support_impl_linux.h b/content/common/child_process_sandbox_support_impl_linux.h
index b26634a0d74d67ca609f3fe3e5526e7c146ee934..29b103ba75b8ac49cd4e923caf044ec9aaabf1d5 100644
--- a/content/common/child_process_sandbox_support_impl_linux.h
+++ b/content/common/child_process_sandbox_support_impl_linux.h
@@ -9,6 +9,7 @@
#include "content/public/common/child_process_sandbox_support_linux.h"
namespace WebKit {
+struct WebFontFamily;
struct WebFontRenderStyle;
}
@@ -20,11 +21,12 @@ namespace content {
// num_utf16: the number of 16-bit words in |utf16|
// preferred_locale: preferred locale identifier for the |utf16|
//
-// Returns: the font family or an empty string if the request could not be
-// satisfied.
-std::string GetFontFamilyForCharacters(const uint16_t* utf16,
- size_t num_utf16,
- const char* preferred_locale);
+// Returns: a font family instance.
+// The instance has an empty font name if the request could not be satisfied.
+void GetFontFamilyForCharacters(const uint16_t* utf16,
+ size_t num_utf16,
+ const char* preferred_locale,
+ WebKit::WebFontFamily* family);
void GetRenderStyleForStrike(const char* family, int sizeAndStyle,
WebKit::WebFontRenderStyle* out);
« no previous file with comments | « content/browser/renderer_host/render_sandbox_host_linux.cc ('k') | content/common/child_process_sandbox_support_impl_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698