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

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

Issue 1809793002: Fix connection between BrowserAccessibilityManager and ContentViewCore (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: InternalGetChild -> PlatformGetChild so we can walk into iframes Created 4 years, 9 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/frame_host/render_frame_host_impl.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/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
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
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
OLDNEW
« no previous file with comments | « no previous file | content/browser/frame_host/render_frame_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698