| 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 415 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 426 node->CanScrollUp(), | 426 node->CanScrollUp(), |
| 427 node->CanScrollDown(), | 427 node->CanScrollDown(), |
| 428 node->CanScrollLeft(), | 428 node->CanScrollLeft(), |
| 429 node->CanScrollRight(), | 429 node->CanScrollRight(), |
| 430 node->IsClickable(), | 430 node->IsClickable(), |
| 431 node->IsEditableText(), | 431 node->IsEditableText(), |
| 432 node->IsEnabled(), | 432 node->IsEnabled(), |
| 433 node->IsFocusable(), | 433 node->IsFocusable(), |
| 434 node->IsFocused(), | 434 node->IsFocused(), |
| 435 node->IsCollapsed(), | 435 node->IsCollapsed(), |
| 436 node->IsExpanded()); | 436 node->IsExpanded(), |
| 437 node->HasNonEmptyValue()); |
| 437 Java_BrowserAccessibilityManager_setAccessibilityNodeInfoClassName( | 438 Java_BrowserAccessibilityManager_setAccessibilityNodeInfoClassName( |
| 438 env, obj, info, | 439 env, obj, info, |
| 439 base::android::ConvertUTF8ToJavaString(env, node->GetClassName())); | 440 base::android::ConvertUTF8ToJavaString(env, node->GetClassName())); |
| 440 Java_BrowserAccessibilityManager_setAccessibilityNodeInfoText( | 441 Java_BrowserAccessibilityManager_setAccessibilityNodeInfoText( |
| 441 env, obj, info, | 442 env, obj, info, |
| 442 base::android::ConvertUTF16ToJavaString(env, node->GetText()), | 443 base::android::ConvertUTF16ToJavaString(env, node->GetText()), |
| 443 node->IsLink(), node->IsEditableText()); | 444 node->IsLink(), node->IsEditableText()); |
| 444 base::string16 element_id; | 445 base::string16 element_id; |
| 445 if (node->GetHtmlAttribute("id", &element_id)) { | 446 if (node->GetHtmlAttribute("id", &element_id)) { |
| 446 Java_BrowserAccessibilityManager_setAccessibilityNodeInfoViewIdResourceName( | 447 Java_BrowserAccessibilityManager_setAccessibilityNodeInfoViewIdResourceName( |
| (...skipping 512 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 959 | 960 |
| 960 JNIEnv* env = AttachCurrentThread(); | 961 JNIEnv* env = AttachCurrentThread(); |
| 961 return root_manager->java_ref().get(env); | 962 return root_manager->java_ref().get(env); |
| 962 } | 963 } |
| 963 | 964 |
| 964 bool RegisterBrowserAccessibilityManager(JNIEnv* env) { | 965 bool RegisterBrowserAccessibilityManager(JNIEnv* env) { |
| 965 return RegisterNativesImpl(env); | 966 return RegisterNativesImpl(env); |
| 966 } | 967 } |
| 967 | 968 |
| 968 } // namespace content | 969 } // namespace content |
| OLD | NEW |