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

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

Issue 10658037: Implement right-to-left text rendering in Pepper. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: <PATCH DESCRIPTION HERE> Created 8 years, 6 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 | « ppapi/api/trusted/ppb_browser_font_trusted.idl ('k') | ppapi/c/trusted/ppb_browser_font_trusted.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/c/dev/ppb_font_dev.h
diff --git a/ppapi/c/dev/ppb_font_dev.h b/ppapi/c/dev/ppb_font_dev.h
index 6ba36a611662a820506a2356a33cb95d8504f8b7..ad85a2479e0dc932f0b2344dee7fbcc1896f3b26 100644
--- a/ppapi/c/dev/ppb_font_dev.h
+++ b/ppapi/c/dev/ppb_font_dev.h
@@ -3,7 +3,7 @@
* found in the LICENSE file.
*/
-/* From dev/ppb_font_dev.idl modified Tue Oct 11 10:01:39 2011. */
+/* From dev/ppb_font_dev.idl modified Mon Jun 25 14:54:48 2012. */
#ifndef PPAPI_C_DEV_PPB_FONT_DEV_H_
#define PPAPI_C_DEV_PPB_FONT_DEV_H_
@@ -141,11 +141,27 @@ struct PP_TextRun_Dev {
struct PP_Var text;
/**
* Set to PP_TRUE if the text is right-to-left.
+ *
+ * When <code>override_direction</code> is false, the browser will perform
+ * the Unicode Bidirectional Algorithm (http://unicode.org/reports/tr9/) on
+ * the text. The value of the <code>rtl</code> flag specifies the
+ * direcionality of the surrounding environment. This means that Hebrew
+ * word will always display right to left, even if <code>rtl</code> is false.
+ *
+ * When <code>override_direction</code> is true, no autodetection will be done
+ * and <code>rtl</code> specifies the direction of the text.
+ *
+ * TODO(brettw) note that autodetection with rtl = true is currently
+ * unimplemented.
*/
PP_Bool rtl;
/**
* Set to PP_TRUE to force the directionality of the text regardless of
- * content
+ * content.
+ *
+ * If this flag is set, the browser will skip autodetection of the content
+ * and will display all text in the direction speficied by the
+ * <code>rtl</code> flag.
*/
PP_Bool override_direction;
};
« no previous file with comments | « ppapi/api/trusted/ppb_browser_font_trusted.idl ('k') | ppapi/c/trusted/ppb_browser_font_trusted.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698