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

Side by Side Diff: ui/accessibility/ax_enums.idl

Issue 273323002: Convert snakecase enum names to camelcase when stringified. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: final changes Created 6 years, 7 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 | « tools/json_schema_compiler/model_test.py ('k') | ui/accessibility/ax_tree_unittest.cc » ('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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 // These should be kept in sync with third_party/WebKit/public/web/WebAXEnums.h 5 // These should be kept in sync with third_party/WebKit/public/web/WebAXEnums.h
6 // until the Chromium and Blink trees are merged. 6 // until the Chromium and Blink trees are merged.
7 namespace ui { 7 [camel_case_enum_to_string=true] namespace ui {
8 enum AXEvent { 8 enum AXEvent {
9 activedescendantchanged, 9 activedescendantchanged,
10 alert, 10 alert,
11 aria_attribute_changed, 11 aria_attribute_changed,
12 autocorrection_occured, 12 autocorrection_occured,
13 blur, 13 blur,
14 checked_state_changed, 14 checked_state_changed,
15 children_changed, 15 children_changed,
16 focus, 16 focus,
17 hide, 17 hide,
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 pressed, 185 pressed,
186 protected, 186 protected,
187 read_only, 187 read_only,
188 required, 188 required,
189 selectable, 189 selectable,
190 selected, 190 selected,
191 vertical, 191 vertical,
192 visited 192 visited
193 }; 193 };
194 194
195 [cpp_omit_enum_type] enum AXStringAttribute { 195 [cpp_enum_prefix_override="ax_attr"] enum AXStringAttribute {
196 // Document attributes. 196 // Document attributes.
197 ax_attr_doc_url, 197 doc_url,
198 ax_attr_doc_title, 198 doc_title,
199 ax_attr_doc_mimetype, 199 doc_mimetype,
200 ax_attr_doc_doctype, 200 doc_doctype,
201 201
202 // Attributes that could apply to any node. 202 // Attributes that could apply to any node.
203 ax_attr_access_key, 203 access_key,
204 ax_attr_action, 204 action,
205 ax_attr_container_live_relevant, 205 container_live_relevant,
206 ax_attr_container_live_status, 206 container_live_status,
207 ax_attr_description, 207 description,
208 ax_attr_display, 208 display,
209 ax_attr_help, 209 help,
210 ax_attr_html_tag, 210 html_tag,
211 ax_attr_name, 211 name,
212 ax_attr_live_relevant, 212 live_relevant,
213 ax_attr_live_status, 213 live_status,
214 ax_attr_role, 214 role,
215 ax_attr_shortcut, 215 shortcut,
216 ax_attr_url, 216 url,
217 ax_attr_value 217 value
218 }; 218 };
219 219
220 [cpp_omit_enum_type] enum AXIntAttribute { 220 [cpp_enum_prefix_override="ax_attr"] enum AXIntAttribute {
221 // Scrollable container attributes. 221 // Scrollable container attributes.
222 ax_attr_scroll_x, 222 scroll_x,
223 ax_attr_scroll_x_min, 223 scroll_x_min,
224 ax_attr_scroll_x_max, 224 scroll_x_max,
225 ax_attr_scroll_y, 225 scroll_y,
226 ax_attr_scroll_y_min, 226 scroll_y_min,
227 ax_attr_scroll_y_max, 227 scroll_y_max,
228 228
229 // Editable text attributes. 229 // Editable text attributes.
230 ax_attr_text_sel_start, 230 text_sel_start,
231 ax_attr_text_sel_end, 231 text_sel_end,
232 232
233 // Table attributes. 233 // Table attributes.
234 ax_attr_table_row_count, 234 table_row_count,
235 ax_attr_table_column_count, 235 table_column_count,
236 ax_attr_table_header_id, 236 table_header_id,
237 237
238 // Table row attributes. 238 // Table row attributes.
239 ax_attr_table_row_index, 239 table_row_index,
240 ax_attr_table_row_header_id, 240 table_row_header_id,
241 241
242 // Table column attributes. 242 // Table column attributes.
243 ax_attr_table_column_index, 243 table_column_index,
244 ax_attr_table_column_header_id, 244 table_column_header_id,
245 245
246 // Table cell attributes. 246 // Table cell attributes.
247 ax_attr_table_cell_column_index, 247 table_cell_column_index,
248 ax_attr_table_cell_column_span, 248 table_cell_column_span,
249 ax_attr_table_cell_row_index, 249 table_cell_row_index,
250 ax_attr_table_cell_row_span, 250 table_cell_row_span,
251 251
252 // Tree control attributes. 252 // Tree control attributes.
253 ax_attr_hierarchical_level, 253 hierarchical_level,
254 254
255 // Relationships between this element and other elements. 255 // Relationships between this element and other elements.
256 ax_attr_title_ui_element, 256 title_ui_element,
257 ax_attr_activedescendant_id, 257 activedescendant_id,
258 258
259 // Color value for AX_ROLE_COLOR_WELL, each component is 0..255 259 // Color value for AX_ROLE_COLOR_WELL, each component is 0..255
260 ax_attr_color_value_red, 260 color_value_red,
261 ax_attr_color_value_green, 261 color_value_green,
262 ax_attr_color_value_blue, 262 color_value_blue,
263 263
264 // Inline text attributes. 264 // Inline text attributes.
265 ax_attr_text_direction 265 text_direction
266 }; 266 };
267 267
268 [cpp_omit_enum_type] enum AXFloatAttribute { 268 [cpp_enum_prefix_override="ax_attr"] enum AXFloatAttribute {
269 // Document attributes. 269 // Document attributes.
270 ax_attr_doc_loading_progress, 270 doc_loading_progress,
271 271
272 // Range attributes. 272 // Range attributes.
273 ax_attr_value_for_range, 273 value_for_range,
274 ax_attr_min_value_for_range, 274 min_value_for_range,
275 ax_attr_max_value_for_range 275 max_value_for_range
276 }; 276 };
277 277
278 [cpp_omit_enum_type] enum AXBoolAttribute { 278 [cpp_enum_prefix_override="ax_attr"] enum AXBoolAttribute {
279 // Document attributes. 279 // Document attributes.
280 ax_attr_doc_loaded, 280 doc_loaded,
281 281
282 // True if a checkbox or radio button is in the "mixed" state. 282 // True if a checkbox or radio button is in the "mixed" state.
283 ax_attr_button_mixed, 283 button_mixed,
284 284
285 // Live region attributes. 285 // Live region attributes.
286 ax_attr_container_live_atomic, 286 container_live_atomic,
287 ax_attr_container_live_busy, 287 container_live_busy,
288 ax_attr_live_atomic, 288 live_atomic,
289 ax_attr_live_busy, 289 live_busy,
290 290
291 // ARIA readonly flag. 291 // ARIA readonly flag.
292 ax_attr_aria_readonly, 292 aria_readonly,
293 293
294 // Writeable attributes 294 // Writeable attributes
295 ax_attr_can_set_value, 295 can_set_value,
296 296
297 // If this is set, all of the other fields in this struct should 297 // If this is set, all of the other fields in this struct should
298 // be ignored and only the locations should change. 298 // be ignored and only the locations should change.
299 ax_attr_update_location_only, 299 update_location_only,
300 300
301 // Set on a canvas element if it has fallback content. 301 // Set on a canvas element if it has fallback content.
302 ax_attr_canvas_has_fallback 302 canvas_has_fallback
303 }; 303 };
304 304
305 [cpp_omit_enum_type] enum AXIntListAttribute { 305 [cpp_enum_prefix_override="ax_attr"] enum AXIntListAttribute {
306 // Ids of nodes that are children of this node logically, but are 306 // Ids of nodes that are children of this node logically, but are
307 // not children of this node in the tree structure. As an example, 307 // not children of this node in the tree structure. As an example,
308 // a table cell is a child of a row, and an 'indirect' child of a 308 // a table cell is a child of a row, and an 'indirect' child of a
309 // column. 309 // column.
310 ax_attr_indirect_child_ids, 310 indirect_child_ids,
311 311
312 // Relationships between this element and other elements. 312 // Relationships between this element and other elements.
313 ax_attr_controls_ids, 313 controls_ids,
314 ax_attr_describedby_ids, 314 describedby_ids,
315 ax_attr_flowto_ids, 315 flowto_ids,
316 ax_attr_labelledby_ids, 316 labelledby_ids,
317 ax_attr_owns_ids, 317 owns_ids,
318 318
319 // Character indices where line breaks occur. 319 // Character indices where line breaks occur.
320 ax_attr_line_breaks, 320 line_breaks,
321 321
322 // For a table, the cell ids in row-major order, with duplicate entries 322 // For a table, the cell ids in row-major order, with duplicate entries
323 // when there's a rowspan or colspan, and with -1 for missing cells. 323 // when there's a rowspan or colspan, and with -1 for missing cells.
324 // There are always exactly rows * columns entries. 324 // There are always exactly rows * columns entries.
325 ax_attr_cell_ids, 325 cell_ids,
326 326
327 // For a table, the unique cell ids in row-major order of their first 327 // For a table, the unique cell ids in row-major order of their first
328 // occurrence. 328 // occurrence.
329 ax_attr_unique_cell_ids, 329 unique_cell_ids,
330 330
331 // For inline text. This is the pixel position of the end of this 331 // For inline text. This is the pixel position of the end of this
332 // character within the bounding rectangle of this object, in the 332 // character within the bounding rectangle of this object, in the
333 // direction given by AX_ATTR_TEXT_DIRECTION. For example, for left-to-right 333 // direction given by AX_ATTR_TEXT_DIRECTION. For example, for left-to-right
334 // text, the first offset is the right coordinate of the first character 334 // text, the first offset is the right coordinate of the first character
335 // within the object's bounds, the second offset is the right coordinate 335 // within the object's bounds, the second offset is the right coordinate
336 // of the second character, and so on. 336 // of the second character, and so on.
337 ax_attr_character_offsets, 337 character_offsets,
338 338
339 // For inline text. These int lists must be the same size; they represent 339 // For inline text. These int lists must be the same size; they represent
340 // the start and end character index of each word within this text. 340 // the start and end character index of each word within this text.
341 ax_attr_word_starts, 341 word_starts,
342 ax_attr_word_ends 342 word_ends
343 }; 343 };
344 344
345 [cpp_omit_enum_type] enum AXTextDirection { 345 [cpp_enum_prefix_override="ax"] enum AXTextDirection {
346 ax_text_direction_lr, 346 text_direction_lr,
347 ax_text_direction_rl, 347 text_direction_rl,
348 ax_text_direction_tb, 348 text_direction_tb,
349 ax_text_direction_bt 349 text_direction_bt
350 }; 350 };
351 }; 351 };
OLDNEW
« no previous file with comments | « tools/json_schema_compiler/model_test.py ('k') | ui/accessibility/ax_tree_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698