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

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

Issue 2301833005: Get rid of AX_LINE_BREAKS attribute to improve performance. (Closed)
Patch Set: Fixed line length issue. Created 4 years, 3 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
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 // TODO(nektar): Migrate entire file to Mojoq. 5 // TODO(nektar): Migrate entire file to Mojoq.
6 // These should be kept in sync with third_party/WebKit/public/web/WebAXEnums.h 6 // These should be kept in sync with third_party/WebKit/public/web/WebAXEnums.h
7 // until the Chromium and Blink trees are merged. 7 // until the Chromium and Blink trees are merged.
8 [camel_case_enum_to_string=true] namespace ui { 8 [camel_case_enum_to_string=true] namespace ui {
9 9
10 // For new entries to the following three enums, also add to 10 // For new entries to the following three enums, also add to
(...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after
383 // a table cell is a child of a row, and an 'indirect' child of a 383 // a table cell is a child of a row, and an 'indirect' child of a
384 // column. 384 // column.
385 indirect_child_ids, 385 indirect_child_ids,
386 386
387 // Relationships between this element and other elements. 387 // Relationships between this element and other elements.
388 controls_ids, 388 controls_ids,
389 describedby_ids, 389 describedby_ids,
390 flowto_ids, 390 flowto_ids,
391 labelledby_ids, 391 labelledby_ids,
392 392
393 // For static text. Character indices where line breaks occur.
394 line_breaks,
395
396 // For static text. These int lists must be the same size; they represent 393 // For static text. These int lists must be the same size; they represent
397 // the start and end character offset of each marker. Examples of markers 394 // the start and end character offset of each marker. Examples of markers
398 // include spelling and grammar errors, and find-in-page matches. 395 // include spelling and grammar errors, and find-in-page matches.
399 marker_types, 396 marker_types,
400 marker_starts, 397 marker_starts,
401 marker_ends, 398 marker_ends,
402 399
403 // For a table, the cell ids in row-major order, with duplicate entries 400 // For a table, the cell ids in row-major order, with duplicate entries
404 // when there's a rowspan or colspan, and with -1 for missing cells. 401 // when there's a rowspan or colspan, and with -1 for missing cells.
405 // There are always exactly rows * columns entries. 402 // There are always exactly rows * columns entries.
406 cell_ids, 403 cell_ids,
407 404
408 // For a table, the unique cell ids in row-major order of their first 405 // For a table, the unique cell ids in row-major order of their first
409 // occurrence. 406 // occurrence.
410 unique_cell_ids, 407 unique_cell_ids,
411 408
412 // For inline text. This is the pixel position of the end of this 409 // For inline text. This is the pixel position of the end of this
413 // character within the bounding rectangle of this object, in the 410 // character within the bounding rectangle of this object, in the
414 // direction given by AX_ATTR_TEXT_DIRECTION. For example, for left-to-right 411 // direction given by AX_ATTR_TEXT_DIRECTION. For example, for left-to-right
415 // text, the first offset is the right coordinate of the first character 412 // text, the first offset is the right coordinate of the first character
416 // within the object's bounds, the second offset is the right coordinate 413 // within the object's bounds, the second offset is the right coordinate
417 // of the second character, and so on. 414 // of the second character, and so on.
418 character_offsets, 415 character_offsets,
416
417 // Used for caching. Do not read directly. Use |AXNode::GetLineStartOffsets|
418 // For all objects with text content. A list of the start offset of each
419 // line of text inside this object.
420 line_starts,
dmazzoni 2016/09/13 17:29:38 Maybe it'd be more clear to call it cached_line_st
419 421
420 // For inline text. These int lists must be the same size; they represent 422 // For inline text. These int lists must be the same size; they represent
421 // the start and end character offset of each word within this text. 423 // the start and end character offset of each word within this text.
422 word_starts, 424 word_starts,
423 word_ends 425 word_ends
424 }; 426 };
425 427
426 enum AXMarkerType { 428 enum AXMarkerType {
427 // Assignments are ignored by the parser, but are kept here for clarity. 429 // Assignments are ignored by the parser, but are kept here for clarity.
428 spelling = 1, 430 spelling = 1,
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
538 // First node is before the second one. 540 // First node is before the second one.
539 before, 541 before,
540 542
541 // Nodes are the same. 543 // Nodes are the same.
542 equal, 544 equal,
543 545
544 // First node is after the second one. 546 // First node is after the second one.
545 after 547 after
546 }; 548 };
547 }; 549 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698