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

Side by Side Diff: Source/WebCore/platform/chromium/PlatformBridge.h

Issue 7618010: Merge 92269 - [Chromium] Fix OOP font loading to work on 10.6.6 and above. (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/835/
Patch Set: Created 9 years, 4 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 unified diff | Download patch
« no previous file with comments | « no previous file | Source/WebCore/platform/graphics/chromium/CrossProcessFontLoading.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2010, Google Inc. All rights reserved. 2 * Copyright (c) 2010, Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 static long long seekFile(PlatformFileHandle, long long offset, FileSeekOrig in); 144 static long long seekFile(PlatformFileHandle, long long offset, FileSeekOrig in);
145 static bool truncateFile(PlatformFileHandle, long long offset); 145 static bool truncateFile(PlatformFileHandle, long long offset);
146 static int readFromFile(PlatformFileHandle, char* data, int length); 146 static int readFromFile(PlatformFileHandle, char* data, int length);
147 static int writeToFile(PlatformFileHandle, const char* data, int length); 147 static int writeToFile(PlatformFileHandle, const char* data, int length);
148 148
149 // Font --------------------------------------------------------------- 149 // Font ---------------------------------------------------------------
150 #if OS(WINDOWS) 150 #if OS(WINDOWS)
151 static bool ensureFontLoaded(HFONT); 151 static bool ensureFontLoaded(HFONT);
152 #endif 152 #endif
153 #if OS(DARWIN) 153 #if OS(DARWIN)
154 static bool loadFont(NSFont* srcFont, ATSFontContainerRef* out); 154 static bool loadFont(NSFont* srcFont, ATSFontContainerRef*, uint32_t* fontID );
155 #elif OS(UNIX) 155 #elif OS(UNIX)
156 static void getRenderStyleForStrike(const char* family, int sizeAndStyle, Fo ntRenderStyle* result); 156 static void getRenderStyleForStrike(const char* family, int sizeAndStyle, Fo ntRenderStyle* result);
157 static String getFontFamilyForCharacters(const UChar*, size_t numCharacters, const char* preferredLocale); 157 static String getFontFamilyForCharacters(const UChar*, size_t numCharacters, const char* preferredLocale);
158 #endif 158 #endif
159 159
160 // Forms -------------------------------------------------------------- 160 // Forms --------------------------------------------------------------
161 static void notifyFormStateChanged(const Document*); 161 static void notifyFormStateChanged(const Document*);
162 162
163 // Databases ---------------------------------------------------------- 163 // Databases ----------------------------------------------------------
164 // Returns a handle to the DB file and ooptionally a handle to its containin g directory 164 // Returns a handle to the DB file and ooptionally a handle to its containin g directory
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
404 404
405 // Visited links ------------------------------------------------------ 405 // Visited links ------------------------------------------------------
406 static LinkHash visitedLinkHash(const UChar* url, unsigned length); 406 static LinkHash visitedLinkHash(const UChar* url, unsigned length);
407 static LinkHash visitedLinkHash(const KURL& base, const AtomicString& attrib uteURL); 407 static LinkHash visitedLinkHash(const KURL& base, const AtomicString& attrib uteURL);
408 static bool isLinkVisited(LinkHash); 408 static bool isLinkVisited(LinkHash);
409 }; 409 };
410 410
411 } // namespace WebCore 411 } // namespace WebCore
412 412
413 #endif 413 #endif
OLDNEW
« no previous file with comments | « no previous file | Source/WebCore/platform/graphics/chromium/CrossProcessFontLoading.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698