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

Side by Side Diff: webkit/glue/webkit_glue.h

Issue 2956002: Pepper v2 Font API browser implementation. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « webkit/glue/plugins/pepper_resource.h ('k') | webkit/glue/webkit_glue.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef WEBKIT_GLUE_WEBKIT_GLUE_H_ 5 #ifndef WEBKIT_GLUE_WEBKIT_GLUE_H_
6 #define WEBKIT_GLUE_WEBKIT_GLUE_H_ 6 #define WEBKIT_GLUE_WEBKIT_GLUE_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 9
10 #if defined(OS_WIN) 10 #if defined(OS_WIN)
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 258
259 // Clear the disk cache. Used for debugging. 259 // Clear the disk cache. Used for debugging.
260 void ClearCache(); 260 void ClearCache();
261 261
262 // Returns the product version. E.g., Chrome/4.1.333.0 262 // Returns the product version. E.g., Chrome/4.1.333.0
263 std::string GetProductVersion(); 263 std::string GetProductVersion();
264 264
265 // Returns true if the embedder is running in single process mode. 265 // Returns true if the embedder is running in single process mode.
266 bool IsSingleProcess(); 266 bool IsSingleProcess();
267 267
268 #if defined(OS_LINUX)
269 // Return a read-only file descriptor to the font which best matches the given
270 // properties or -1 on failure.
271 // charset: specifies the language(s) that the font must cover. See
272 // render_sandbox_host_linux.cc for more information.
273 int MatchFontWithFallback(const std::string& face, bool bold,
274 bool italic, int charset);
275
276 // GetFontTable loads a specified font table from an open SFNT file.
277 // fd: a file descriptor to the SFNT file. The position doesn't matter.
278 // table: the table in *big-endian* format, or 0 for the whole font file.
279 // output: a buffer of size output_length that gets the data. can be 0, in
280 // which case output_length will be set to the required size in bytes.
281 // output_length: size of output, if it's not 0.
282 //
283 // returns: true on success.
284 bool GetFontTable(int fd, uint32_t table, uint8_t* output,
285 size_t* output_length);
286 #endif
287
268 // ---- END FUNCTIONS IMPLEMENTED BY EMBEDDER --------------------------------- 288 // ---- END FUNCTIONS IMPLEMENTED BY EMBEDDER ---------------------------------
269 289
270 290
271 } // namespace webkit_glue 291 } // namespace webkit_glue
272 292
273 #endif // WEBKIT_GLUE_WEBKIT_GLUE_H_ 293 #endif // WEBKIT_GLUE_WEBKIT_GLUE_H_
OLDNEW
« no previous file with comments | « webkit/glue/plugins/pepper_resource.h ('k') | webkit/glue/webkit_glue.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698