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

Side by Side Diff: content/renderer/accessibility/blink_ax_enum_conversion.cc

Issue 1046883002: Use multiline attribute to check for IA2_STATE_MULTILINE. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 #include "content/renderer/accessibility/blink_ax_enum_conversion.h" 5 #include "content/renderer/accessibility/blink_ax_enum_conversion.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 8
9 namespace content { 9 namespace content {
10 10
(...skipping 25 matching lines...) Expand all
36 36
37 if (o.isIndeterminate()) 37 if (o.isIndeterminate())
38 state |= (1 << ui::AX_STATE_INDETERMINATE); 38 state |= (1 << ui::AX_STATE_INDETERMINATE);
39 39
40 if (!o.isVisible()) 40 if (!o.isVisible())
41 state |= (1 << ui::AX_STATE_INVISIBLE); 41 state |= (1 << ui::AX_STATE_INVISIBLE);
42 42
43 if (o.isLinked()) 43 if (o.isLinked())
44 state |= (1 << ui::AX_STATE_LINKED); 44 state |= (1 << ui::AX_STATE_LINKED);
45 45
46 if (o.isMultiline())
47 state |= (1 << ui::AX_STATE_MULTILINE);
48
46 if (o.isMultiSelectable()) 49 if (o.isMultiSelectable())
47 state |= (1 << ui::AX_STATE_MULTISELECTABLE); 50 state |= (1 << ui::AX_STATE_MULTISELECTABLE);
48 51
49 if (o.isOffScreen()) 52 if (o.isOffScreen())
50 state |= (1 << ui::AX_STATE_OFFSCREEN); 53 state |= (1 << ui::AX_STATE_OFFSCREEN);
51 54
52 if (o.isPressed()) 55 if (o.isPressed())
53 state |= (1 << ui::AX_STATE_PRESSED); 56 state |= (1 << ui::AX_STATE_PRESSED);
54 57
55 if (o.isPasswordField()) 58 if (o.isPasswordField())
(...skipping 384 matching lines...) Expand 10 before | Expand all | Expand 10 after
440 case blink::WebAXSortDirectionOther: 443 case blink::WebAXSortDirectionOther:
441 return ui::AX_SORT_DIRECTION_OTHER; 444 return ui::AX_SORT_DIRECTION_OTHER;
442 default: 445 default:
443 NOTREACHED(); 446 NOTREACHED();
444 } 447 }
445 448
446 return ui::AX_SORT_DIRECTION_NONE; 449 return ui::AX_SORT_DIRECTION_NONE;
447 } 450 }
448 451
449 } // Namespace content. 452 } // Namespace content.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698