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 352 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
363 BrowserAccessibilityAndroid* node = GetFromUniqueID(id); | 363 BrowserAccessibilityAndroid* node = GetFromUniqueID(id); |
364 if (!node) | 364 if (!node) |
365 return false; | 365 return false; |
366 | 366 |
367 if (node->GetParent()) { | 367 if (node->GetParent()) { |
368 Java_BrowserAccessibilityManager_setAccessibilityNodeInfoParent( | 368 Java_BrowserAccessibilityManager_setAccessibilityNodeInfoParent( |
369 env, obj, info, node->GetParent()->unique_id()); | 369 env, obj, info, node->GetParent()->unique_id()); |
370 } | 370 } |
371 for (unsigned i = 0; i < node->PlatformChildCount(); ++i) { | 371 for (unsigned i = 0; i < node->PlatformChildCount(); ++i) { |
372 Java_BrowserAccessibilityManager_addAccessibilityNodeInfoChild( | 372 Java_BrowserAccessibilityManager_addAccessibilityNodeInfoChild( |
373 env, obj, info, node->InternalGetChild(i)->unique_id()); | 373 env, obj, info, node->PlatformGetChild(i)->unique_id()); |
374 } | 374 } |
375 Java_BrowserAccessibilityManager_setAccessibilityNodeInfoBooleanAttributes( | 375 Java_BrowserAccessibilityManager_setAccessibilityNodeInfoBooleanAttributes( |
376 env, obj, info, | 376 env, obj, info, |
377 id, | 377 id, |
378 node->IsCheckable(), | 378 node->IsCheckable(), |
379 node->IsChecked(), | 379 node->IsChecked(), |
380 node->IsClickable(), | 380 node->IsClickable(), |
381 node->IsEnabled(), | 381 node->IsEnabled(), |
382 node->IsFocusable(), | 382 node->IsFocusable(), |
383 node->IsFocused(), | 383 node->IsFocused(), |
(...skipping 558 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
942 | 942 |
943 JNIEnv* env = AttachCurrentThread(); | 943 JNIEnv* env = AttachCurrentThread(); |
944 return root_manager->java_ref().get(env); | 944 return root_manager->java_ref().get(env); |
945 } | 945 } |
946 | 946 |
947 bool RegisterBrowserAccessibilityManager(JNIEnv* env) { | 947 bool RegisterBrowserAccessibilityManager(JNIEnv* env) { |
948 return RegisterNativesImpl(env); | 948 return RegisterNativesImpl(env); |
949 } | 949 } |
950 | 950 |
951 } // namespace content | 951 } // namespace content |
OLD | NEW |