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

Side by Side Diff: content/browser/accessibility/accessibility_tree_formatter_android.cc

Issue 837123004: Add DumpAccessibilityTree tests (12 of 20) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixed link bug Created 5 years, 11 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
« no previous file with comments | « no previous file | content/browser/accessibility/browser_accessibility_android.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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/browser/accessibility/accessibility_tree_formatter.h" 5 #include "content/browser/accessibility/accessibility_tree_formatter.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/android/jni_android.h" 9 #include "base/android/jni_android.h"
10 #include "base/android/jni_string.h" 10 #include "base/android/jni_string.h"
(...skipping 18 matching lines...) Expand all
29 "collection_item", 29 "collection_item",
30 "content_invalid", 30 "content_invalid",
31 "disabled", 31 "disabled",
32 "dismissable", 32 "dismissable",
33 "editable_text", 33 "editable_text",
34 "focusable", 34 "focusable",
35 "focused", 35 "focused",
36 "heading", 36 "heading",
37 "hierarchical", 37 "hierarchical",
38 "invisible", 38 "invisible",
39 "link",
shreeramk 2015/01/19 08:58:40 It was not working because it was not listed here
39 "multiline", 40 "multiline",
40 "password", 41 "password",
41 "range", 42 "range",
42 "scrollable", 43 "scrollable",
43 "selected" 44 "selected"
44 }; 45 };
45 46
46 const char* STRING_ATTRIBUTES[] = { 47 const char* STRING_ATTRIBUTES[] = {
47 "name" 48 "name"
48 }; 49 };
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 dict->SetBoolean("collection", android_node->IsCollection()); 85 dict->SetBoolean("collection", android_node->IsCollection());
85 dict->SetBoolean("collection_item", android_node->IsCollectionItem()); 86 dict->SetBoolean("collection_item", android_node->IsCollectionItem());
86 dict->SetBoolean("disabled", !android_node->IsEnabled()); 87 dict->SetBoolean("disabled", !android_node->IsEnabled());
87 dict->SetBoolean("dismissable", android_node->IsDismissable()); 88 dict->SetBoolean("dismissable", android_node->IsDismissable());
88 dict->SetBoolean("editable_text", android_node->IsEditableText()); 89 dict->SetBoolean("editable_text", android_node->IsEditableText());
89 dict->SetBoolean("focusable", android_node->IsFocusable()); 90 dict->SetBoolean("focusable", android_node->IsFocusable());
90 dict->SetBoolean("focused", android_node->IsFocused()); 91 dict->SetBoolean("focused", android_node->IsFocused());
91 dict->SetBoolean("heading", android_node->IsHeading()); 92 dict->SetBoolean("heading", android_node->IsHeading());
92 dict->SetBoolean("hierarchical", android_node->IsHierarchical()); 93 dict->SetBoolean("hierarchical", android_node->IsHierarchical());
93 dict->SetBoolean("invisible", !android_node->IsVisibleToUser()); 94 dict->SetBoolean("invisible", !android_node->IsVisibleToUser());
95 dict->SetBoolean("link", android_node->IsLink());
94 dict->SetBoolean("multiline", android_node->IsMultiLine()); 96 dict->SetBoolean("multiline", android_node->IsMultiLine());
95 dict->SetBoolean("range", android_node->IsRangeType()); 97 dict->SetBoolean("range", android_node->IsRangeType());
96 dict->SetBoolean("password", android_node->IsPassword()); 98 dict->SetBoolean("password", android_node->IsPassword());
97 dict->SetBoolean("scrollable", android_node->IsScrollable()); 99 dict->SetBoolean("scrollable", android_node->IsScrollable());
98 dict->SetBoolean("selected", android_node->IsSelected()); 100 dict->SetBoolean("selected", android_node->IsSelected());
99 101
100 // String attributes. 102 // String attributes.
101 dict->SetString("name", android_node->GetText()); 103 dict->SetString("name", android_node->GetText());
102 104
103 // Int attributes. 105 // Int attributes.
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 const std::string AccessibilityTreeFormatter::GetAllowString() { 184 const std::string AccessibilityTreeFormatter::GetAllowString() {
183 return "@ANDROID-ALLOW:"; 185 return "@ANDROID-ALLOW:";
184 } 186 }
185 187
186 // static 188 // static
187 const std::string AccessibilityTreeFormatter::GetDenyString() { 189 const std::string AccessibilityTreeFormatter::GetDenyString() {
188 return "@ANDROID-DENY:"; 190 return "@ANDROID-DENY:";
189 } 191 }
190 192
191 } // namespace content 193 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | content/browser/accessibility/browser_accessibility_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698