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

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

Issue 2264103003: Implement support for accessible collapse and expand actions on Android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@cut_copy_paste
Patch Set: Created 4 years, 4 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
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 404 matching lines...) Expand 10 before | Expand all | Expand 10 after
415 node->CanScrollForward(), 415 node->CanScrollForward(),
416 node->CanScrollBackward(), 416 node->CanScrollBackward(),
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(),
427 node->IsExpanded());
426 Java_BrowserAccessibilityManager_setAccessibilityNodeInfoClassName( 428 Java_BrowserAccessibilityManager_setAccessibilityNodeInfoClassName(
427 env, obj, info, 429 env, obj, info,
428 base::android::ConvertUTF8ToJavaString(env, node->GetClassName())); 430 base::android::ConvertUTF8ToJavaString(env, node->GetClassName()));
429 Java_BrowserAccessibilityManager_setAccessibilityNodeInfoText( 431 Java_BrowserAccessibilityManager_setAccessibilityNodeInfoText(
430 env, obj, info, 432 env, obj, info,
431 base::android::ConvertUTF16ToJavaString(env, node->GetText()), 433 base::android::ConvertUTF16ToJavaString(env, node->GetText()),
432 node->IsLink(), node->IsEditableText()); 434 node->IsLink(), node->IsEditableText());
433 base::string16 element_id; 435 base::string16 element_id;
434 if (node->GetHtmlAttribute("id", &element_id)) { 436 if (node->GetHtmlAttribute("id", &element_id)) {
435 Java_BrowserAccessibilityManager_setAccessibilityNodeInfoViewIdResourceName( 437 Java_BrowserAccessibilityManager_setAccessibilityNodeInfoViewIdResourceName(
(...skipping 505 matching lines...) Expand 10 before | Expand all | Expand 10 after
941 943
942 JNIEnv* env = AttachCurrentThread(); 944 JNIEnv* env = AttachCurrentThread();
943 return root_manager->java_ref().get(env); 945 return root_manager->java_ref().get(env);
944 } 946 }
945 947
946 bool RegisterBrowserAccessibilityManager(JNIEnv* env) { 948 bool RegisterBrowserAccessibilityManager(JNIEnv* env) {
947 return RegisterNativesImpl(env); 949 return RegisterNativesImpl(env);
948 } 950 }
949 951
950 } // namespace content 952 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698