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

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

Issue 13220002: [PPAPI] Fix a bunch of spelling mistakes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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/dev/ppb_text_input_dev.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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 * 125 *
126 * When <code>override_direction</code> is false, the browser will perform 126 * When <code>override_direction</code> is false, the browser will perform
127 * the Unicode Bidirectional Algorithm (http://unicode.org/reports/tr9/) on 127 * the Unicode Bidirectional Algorithm (http://unicode.org/reports/tr9/) on
128 * the text. The value of the <code>rtl</code> flag specifies the 128 * the text. The value of the <code>rtl</code> flag specifies the
129 * direcionality of the surrounding environment. This means that Hebrew 129 * directionality of the surrounding environment. This means that Hebrew
130 * word will always display right to left, even if <code>rtl</code> is false. 130 * word will always display right to left, even if <code>rtl</code> is false.
131 * 131 *
132 * When <code>override_direction</code> is true, no autodetection will be done 132 * When <code>override_direction</code> is true, no autodetection will be done
133 * and <code>rtl</code> specifies the direction of the text. 133 * and <code>rtl</code> specifies the direction of the text.
134 * 134 *
135 * TODO(brettw) note that autodetection with rtl = true is currently 135 * TODO(brettw) note that autodetection with rtl = true is currently
136 * unimplemented. 136 * unimplemented.
137 */ 137 */
138 PP_Bool rtl; 138 PP_Bool rtl;
139 139
140 /** 140 /**
141 * 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
142 * content. 142 * content.
143 * 143 *
144 * If this flag is set, the browser will skip autodetection of the content 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 145 * and will display all text in the direction specified by the
146 * <code>rtl</code> flag. 146 * <code>rtl</code> flag.
147 */ 147 */
148 PP_Bool override_direction; 148 PP_Bool override_direction;
149 }; 149 };
150 150
151 interface PPB_Font_Dev { 151 interface PPB_Font_Dev {
152 /** 152 /**
153 * 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
154 * this list to decide whether to Create() a font. 154 * this list to decide whether to Create() a font.
155 * 155 *
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 * Draws the text to the image buffer. 199 * Draws the text to the image buffer.
200 * 200 *
201 * The given point represents the baseline of the left edge of the font, 201 * The given point represents the baseline of the left edge of the font,
202 * regardless of whether it is left-to-right or right-to-left (in the case of 202 * regardless of whether it is left-to-right or right-to-left (in the case of
203 * RTL text, this will actually represent the logical end of the text). 203 * RTL text, this will actually represent the logical end of the text).
204 * 204 *
205 * The clip is optional and may be NULL. In this case, the text will be 205 * The clip is optional and may be NULL. In this case, the text will be
206 * clipped to the image. 206 * clipped to the image.
207 * 207 *
208 * The image_data_is_opaque flag indicates whether subpixel antialiasing can 208 * The image_data_is_opaque flag indicates whether subpixel antialiasing can
209 * be performend, if it is supported. When the image below the text is 209 * be performed, if it is supported. When the image below the text is
210 * opaque, subpixel antialiasing is supported and you should set this to 210 * opaque, subpixel antialiasing is supported and you should set this to
211 * PP_TRUE to pick up the user's default preferences. If your plugin is 211 * PP_TRUE to pick up the user's default preferences. If your plugin is
212 * partially transparent, then subpixel antialiasing is not possible and 212 * partially transparent, then subpixel antialiasing is not possible and
213 * grayscale antialiasing will be used instead (assuming the user has 213 * grayscale antialiasing will be used instead (assuming the user has
214 * antialiasing enabled at all). 214 * antialiasing enabled at all).
215 */ 215 */
216 PP_Bool DrawTextAt( 216 PP_Bool DrawTextAt(
217 [in] PP_Resource font, 217 [in] PP_Resource font,
218 [in] PP_Resource image_data, 218 [in] PP_Resource image_data,
219 [in] PP_TextRun_Dev text, 219 [in] PP_TextRun_Dev text,
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
252 * 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,
253 * where characters may be combined or replaced depending on context. Returns 253 * where characters may be combined or replaced depending on context. Returns
254 * -1 on error. 254 * -1 on error.
255 */ 255 */
256 int32_t PixelOffsetForCharacter( 256 int32_t PixelOffsetForCharacter(
257 [in] PP_Resource font, 257 [in] PP_Resource font,
258 [in] PP_TextRun_Dev text, 258 [in] PP_TextRun_Dev text,
259 [in] uint32_t char_offset); 259 [in] uint32_t char_offset);
260 }; 260 };
261 261
OLDNEW
« no previous file with comments | « no previous file | ppapi/api/dev/ppb_text_input_dev.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698