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

Unified Diff: ppapi/c/dev/ppb_font_dev.h

Issue 6282007: First pass at making the proxy handle multiple renderers. This associates the... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 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
« no previous file with comments | « no previous file | ppapi/c/dev/ppb_testing_dev.h » ('j') | ppapi/c/dev/ppb_testing_dev.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/c/dev/ppb_font_dev.h
===================================================================
--- ppapi/c/dev/ppb_font_dev.h (revision 71670)
+++ ppapi/c/dev/ppb_font_dev.h (working copy)
@@ -155,19 +155,23 @@
// Note that this function handles complex scripts such as Arabic, combining
// accents, etc. so that adding the width of substrings won't necessarily
// produce the correct width of the entire string.
+ //
+ // Returns -1 on failure.
int32_t (*MeasureText)(PP_Resource font,
const struct PP_TextRun_Dev* text);
// Returns the character at the given pixel X position from the beginning of
// the string. This handles complex scripts such as Arabic, where characters
- // may be combined or replaced depending on the context.
+ // may be combined or replaced depending on the context. Returns (uint32)-1
+ // on failure.
uint32_t (*CharacterOffsetForPixel)(PP_Resource font,
const struct PP_TextRun_Dev* text,
int32_t pixel_position);
// Returns the horizontal advance to the given character if the string was
// placed at the given position. This handles complex scripts such as Arabic,
- // where characters may be combined or replaced depending on context.
+ // where characters may be combined or replaced depending on context. Returns
+ // -1 on error.
int32_t (*PixelOffsetForCharacter)(PP_Resource font,
const struct PP_TextRun_Dev* text,
uint32_t char_offset);
« no previous file with comments | « no previous file | ppapi/c/dev/ppb_testing_dev.h » ('j') | ppapi/c/dev/ppb_testing_dev.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698