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

Side by Side 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, 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
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 /* From dev/ppb_font_dev.idl modified Tue Oct 11 10:01:39 2011. */ 6 /* From dev/ppb_font_dev.idl modified Mon Jun 25 14:54:48 2012. */
7 7
8 #ifndef PPAPI_C_DEV_PPB_FONT_DEV_H_ 8 #ifndef PPAPI_C_DEV_PPB_FONT_DEV_H_
9 #define PPAPI_C_DEV_PPB_FONT_DEV_H_ 9 #define PPAPI_C_DEV_PPB_FONT_DEV_H_
10 10
11 #include "ppapi/c/pp_bool.h" 11 #include "ppapi/c/pp_bool.h"
12 #include "ppapi/c/pp_instance.h" 12 #include "ppapi/c/pp_instance.h"
13 #include "ppapi/c/pp_macros.h" 13 #include "ppapi/c/pp_macros.h"
14 #include "ppapi/c/pp_point.h" 14 #include "ppapi/c/pp_point.h"
15 #include "ppapi/c/pp_rect.h" 15 #include "ppapi/c/pp_rect.h"
16 #include "ppapi/c/pp_resource.h" 16 #include "ppapi/c/pp_resource.h"
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_FontMetrics_Dev, 20); 134 PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_FontMetrics_Dev, 20);
135 135
136 struct PP_TextRun_Dev { 136 struct PP_TextRun_Dev {
137 /** 137 /**
138 * This var must either be a string or a null/undefined var (which will be 138 * This var must either be a string or a null/undefined var (which will be
139 * treated as a 0-length string). 139 * treated as a 0-length string).
140 */ 140 */
141 struct PP_Var text; 141 struct PP_Var text;
142 /** 142 /**
143 * Set to PP_TRUE if the text is right-to-left. 143 * Set to PP_TRUE if the text is right-to-left.
144 *
145 * When <code>override_direction</code> is false, the browser will perform
146 * the Unicode Bidirectional Algorithm (http://unicode.org/reports/tr9/) on
147 * the text. The value of the <code>rtl</code> flag specifies the
148 * direcionality of the surrounding environment. This means that Hebrew
149 * word will always display right to left, even if <code>rtl</code> is false.
150 *
151 * When <code>override_direction</code> is true, no autodetection will be done
152 * and <code>rtl</code> specifies the direction of the text.
153 *
154 * TODO(brettw) note that autodetection with rtl = true is currently
155 * unimplemented.
144 */ 156 */
145 PP_Bool rtl; 157 PP_Bool rtl;
146 /** 158 /**
147 * Set to PP_TRUE to force the directionality of the text regardless of 159 * Set to PP_TRUE to force the directionality of the text regardless of
148 * content 160 * content.
161 *
162 * If this flag is set, the browser will skip autodetection of the content
163 * and will display all text in the direction speficied by the
164 * <code>rtl</code> flag.
149 */ 165 */
150 PP_Bool override_direction; 166 PP_Bool override_direction;
151 }; 167 };
152 PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_TextRun_Dev, 24); 168 PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_TextRun_Dev, 24);
153 /** 169 /**
154 * @} 170 * @}
155 */ 171 */
156 172
157 /** 173 /**
158 * @addtogroup Interfaces 174 * @addtogroup Interfaces
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
253 uint32_t char_offset); 269 uint32_t char_offset);
254 }; 270 };
255 271
256 typedef struct PPB_Font_Dev_0_6 PPB_Font_Dev; 272 typedef struct PPB_Font_Dev_0_6 PPB_Font_Dev;
257 /** 273 /**
258 * @} 274 * @}
259 */ 275 */
260 276
261 #endif /* PPAPI_C_DEV_PPB_FONT_DEV_H_ */ 277 #endif /* PPAPI_C_DEV_PPB_FONT_DEV_H_ */
262 278
OLDNEW
« 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