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

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: 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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 dict->SetBoolean("collection", android_node->IsCollection()); 84 dict->SetBoolean("collection", android_node->IsCollection());
85 dict->SetBoolean("collection_item", android_node->IsCollectionItem()); 85 dict->SetBoolean("collection_item", android_node->IsCollectionItem());
86 dict->SetBoolean("disabled", !android_node->IsEnabled()); 86 dict->SetBoolean("disabled", !android_node->IsEnabled());
87 dict->SetBoolean("dismissable", android_node->IsDismissable()); 87 dict->SetBoolean("dismissable", android_node->IsDismissable());
88 dict->SetBoolean("editable_text", android_node->IsEditableText()); 88 dict->SetBoolean("editable_text", android_node->IsEditableText());
89 dict->SetBoolean("focusable", android_node->IsFocusable()); 89 dict->SetBoolean("focusable", android_node->IsFocusable());
90 dict->SetBoolean("focused", android_node->IsFocused()); 90 dict->SetBoolean("focused", android_node->IsFocused());
91 dict->SetBoolean("heading", android_node->IsHeading()); 91 dict->SetBoolean("heading", android_node->IsHeading());
92 dict->SetBoolean("hierarchical", android_node->IsHierarchical()); 92 dict->SetBoolean("hierarchical", android_node->IsHierarchical());
93 dict->SetBoolean("invisible", !android_node->IsVisibleToUser()); 93 dict->SetBoolean("invisible", !android_node->IsVisibleToUser());
94 dict->SetBoolean("link", android_node->IsLink());
shreeramk 2015/01/09 11:00:48 not sure why after adding this, link is not expose
shreeramk 2015/01/12 05:29:37 Reason: I found out the reason why it is not getti
94 dict->SetBoolean("multiline", android_node->IsMultiLine()); 95 dict->SetBoolean("multiline", android_node->IsMultiLine());
95 dict->SetBoolean("range", android_node->IsRangeType()); 96 dict->SetBoolean("range", android_node->IsRangeType());
96 dict->SetBoolean("password", android_node->IsPassword()); 97 dict->SetBoolean("password", android_node->IsPassword());
97 dict->SetBoolean("scrollable", android_node->IsScrollable()); 98 dict->SetBoolean("scrollable", android_node->IsScrollable());
98 dict->SetBoolean("selected", android_node->IsSelected()); 99 dict->SetBoolean("selected", android_node->IsSelected());
99 100
100 // String attributes. 101 // String attributes.
101 dict->SetString("name", android_node->GetText()); 102 dict->SetString("name", android_node->GetText());
102 103
103 // Int attributes. 104 // Int attributes.
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 const std::string AccessibilityTreeFormatter::GetAllowString() { 183 const std::string AccessibilityTreeFormatter::GetAllowString() {
183 return "@ANDROID-ALLOW:"; 184 return "@ANDROID-ALLOW:";
184 } 185 }
185 186
186 // static 187 // static
187 const std::string AccessibilityTreeFormatter::GetDenyString() { 188 const std::string AccessibilityTreeFormatter::GetDenyString() {
188 return "@ANDROID-DENY:"; 189 return "@ANDROID-DENY:";
189 } 190 }
190 191
191 } // namespace content 192 } // 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