OLD | NEW |
---|---|
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/browser_accessibility_manager_android.h" | 5 #include "content/browser/accessibility/browser_accessibility_manager_android.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <cmath> | 9 #include <cmath> |
10 | 10 |
(...skipping 406 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
417 node->CanScrollUp(), | 417 node->CanScrollUp(), |
418 node->CanScrollDown(), | 418 node->CanScrollDown(), |
419 node->CanScrollLeft(), | 419 node->CanScrollLeft(), |
420 node->CanScrollRight(), | 420 node->CanScrollRight(), |
421 node->IsClickable(), | 421 node->IsClickable(), |
422 node->IsEditableText(), | 422 node->IsEditableText(), |
423 node->IsEnabled(), | 423 node->IsEnabled(), |
424 node->IsFocusable(), | 424 node->IsFocusable(), |
425 node->IsFocused(), | 425 node->IsFocused(), |
426 node->IsCollapsed(), | 426 node->IsCollapsed(), |
427 node->IsExpanded()); | 427 node->IsExpanded(), |
428 !node->GetValue().empty()); | |
David Tseng
2016/09/08 20:49:47
If I understand the bug correctly, don't you want
dmazzoni
2016/10/05 19:40:48
No, because placeholder was just one possible exam
David Tseng
2016/10/06 16:27:58
Value comes from value description and string valu
| |
428 Java_BrowserAccessibilityManager_setAccessibilityNodeInfoClassName( | 429 Java_BrowserAccessibilityManager_setAccessibilityNodeInfoClassName( |
429 env, obj, info, | 430 env, obj, info, |
430 base::android::ConvertUTF8ToJavaString(env, node->GetClassName())); | 431 base::android::ConvertUTF8ToJavaString(env, node->GetClassName())); |
431 Java_BrowserAccessibilityManager_setAccessibilityNodeInfoText( | 432 Java_BrowserAccessibilityManager_setAccessibilityNodeInfoText( |
432 env, obj, info, | 433 env, obj, info, |
433 base::android::ConvertUTF16ToJavaString(env, node->GetText()), | 434 base::android::ConvertUTF16ToJavaString(env, node->GetText()), |
434 node->IsLink(), node->IsEditableText()); | 435 node->IsLink(), node->IsEditableText()); |
435 base::string16 element_id; | 436 base::string16 element_id; |
436 if (node->GetHtmlAttribute("id", &element_id)) { | 437 if (node->GetHtmlAttribute("id", &element_id)) { |
437 Java_BrowserAccessibilityManager_setAccessibilityNodeInfoViewIdResourceName( | 438 Java_BrowserAccessibilityManager_setAccessibilityNodeInfoViewIdResourceName( |
(...skipping 505 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
943 | 944 |
944 JNIEnv* env = AttachCurrentThread(); | 945 JNIEnv* env = AttachCurrentThread(); |
945 return root_manager->java_ref().get(env); | 946 return root_manager->java_ref().get(env); |
946 } | 947 } |
947 | 948 |
948 bool RegisterBrowserAccessibilityManager(JNIEnv* env) { | 949 bool RegisterBrowserAccessibilityManager(JNIEnv* env) { |
949 return RegisterNativesImpl(env); | 950 return RegisterNativesImpl(env); |
950 } | 951 } |
951 | 952 |
952 } // namespace content | 953 } // namespace content |
OLD | NEW |