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

Side by Side Diff: ppapi/api/dev/ppb_font_dev.idl

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, 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 | « no previous file | ppapi/api/trusted/ppb_browser_font_trusted.idl » ('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) 2012 The Chromium Authors. All rights reserved. 1 /* Copyright (c) 2012 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 5
6 /** 6 /**
7 * This file defines the <code>PPB_Font_Dev</code> interface. 7 * This file defines the <code>PPB_Font_Dev</code> interface.
8 */ 8 */
9 label Chrome { 9 label Chrome {
10 M14 = 0.6 10 M14 = 0.6
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 [assert_size(24)] 115 [assert_size(24)]
116 struct PP_TextRun_Dev { 116 struct PP_TextRun_Dev {
117 /** 117 /**
118 * This var must either be a string or a null/undefined var (which will be 118 * This var must either be a string or a null/undefined var (which will be
119 * treated as a 0-length string). 119 * treated as a 0-length string).
120 */ 120 */
121 PP_Var text; 121 PP_Var text;
122 122
123 /** 123 /**
124 * Set to PP_TRUE if the text is right-to-left. 124 * Set to PP_TRUE if the text is right-to-left.
125 *
126 * When <code>override_direction</code> is false, the browser will perform
127 * the Unicode Bidirectional Algorithm (http://unicode.org/reports/tr9/) on
128 * the text. The value of the <code>rtl</code> flag specifies the
129 * direcionality of the surrounding environment. This means that Hebrew
130 * word will always display right to left, even if <code>rtl</code> is false.
131 *
132 * When <code>override_direction</code> is true, no autodetection will be done
133 * and <code>rtl</code> specifies the direction of the text.
134 *
135 * TODO(brettw) note that autodetection with rtl = true is currently
136 * unimplemented.
125 */ 137 */
126 PP_Bool rtl; 138 PP_Bool rtl;
127 139
128 /** 140 /**
129 * Set to PP_TRUE to force the directionality of the text regardless of 141 * Set to PP_TRUE to force the directionality of the text regardless of
130 * content 142 * content.
143 *
144 * If this flag is set, the browser will skip autodetection of the content
145 * and will display all text in the direction speficied by the
146 * <code>rtl</code> flag.
131 */ 147 */
132 PP_Bool override_direction; 148 PP_Bool override_direction;
133 }; 149 };
134 150
135 interface PPB_Font_Dev { 151 interface PPB_Font_Dev {
136 /** 152 /**
137 * Returns a list of all available font families on the system. You can use 153 * Returns a list of all available font families on the system. You can use
138 * this list to decide whether to Create() a font. 154 * this list to decide whether to Create() a font.
139 * 155 *
140 * The return value will be a single string with null characters delimiting 156 * The return value will be a single string with null characters delimiting
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
236 * placed at the given position. This handles complex scripts such as Arabic, 252 * placed at the given position. This handles complex scripts such as Arabic,
237 * where characters may be combined or replaced depending on context. Returns 253 * where characters may be combined or replaced depending on context. Returns
238 * -1 on error. 254 * -1 on error.
239 */ 255 */
240 int32_t PixelOffsetForCharacter( 256 int32_t PixelOffsetForCharacter(
241 [in] PP_Resource font, 257 [in] PP_Resource font,
242 [in] PP_TextRun_Dev text, 258 [in] PP_TextRun_Dev text,
243 [in] uint32_t char_offset); 259 [in] uint32_t char_offset);
244 }; 260 };
245 261
OLDNEW
« no previous file with comments | « no previous file | ppapi/api/trusted/ppb_browser_font_trusted.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698