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

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

Issue 1925473002: Add verbose logging for native accessibility events. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@load_complete
Patch Set: address all feedback Created 4 years, 7 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 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 JNIEnv* env = AttachCurrentThread(); 186 JNIEnv* env = AttachCurrentThread();
187 ScopedJavaLocalRef<jobject> obj = GetJavaRefFromRootManager(); 187 ScopedJavaLocalRef<jobject> obj = GetJavaRefFromRootManager();
188 if (obj.is_null()) 188 if (obj.is_null())
189 return false; 189 return false;
190 190
191 return Java_BrowserAccessibilityManager_shouldExposePasswordText( 191 return Java_BrowserAccessibilityManager_shouldExposePasswordText(
192 env, obj.obj()); 192 env, obj.obj());
193 } 193 }
194 194
195 void BrowserAccessibilityManagerAndroid::NotifyAccessibilityEvent( 195 void BrowserAccessibilityManagerAndroid::NotifyAccessibilityEvent(
196 BrowserAccessibilityEvent::Source source,
196 ui::AXEvent event_type, 197 ui::AXEvent event_type,
197 BrowserAccessibility* node) { 198 BrowserAccessibility* node) {
198 JNIEnv* env = AttachCurrentThread(); 199 JNIEnv* env = AttachCurrentThread();
199 ScopedJavaLocalRef<jobject> obj = GetJavaRefFromRootManager(); 200 ScopedJavaLocalRef<jobject> obj = GetJavaRefFromRootManager();
200 if (obj.is_null()) 201 if (obj.is_null())
201 return; 202 return;
202 203
203 BrowserAccessibilityAndroid* android_node = 204 BrowserAccessibilityAndroid* android_node =
204 static_cast<BrowserAccessibilityAndroid*>(node); 205 static_cast<BrowserAccessibilityAndroid*>(node);
205 206
(...skipping 742 matching lines...) Expand 10 before | Expand all | Expand 10 after
948 949
949 JNIEnv* env = AttachCurrentThread(); 950 JNIEnv* env = AttachCurrentThread();
950 return root_manager->java_ref().get(env); 951 return root_manager->java_ref().get(env);
951 } 952 }
952 953
953 bool RegisterBrowserAccessibilityManager(JNIEnv* env) { 954 bool RegisterBrowserAccessibilityManager(JNIEnv* env) {
954 return RegisterNativesImpl(env); 955 return RegisterNativesImpl(env);
955 } 956 }
956 957
957 } // namespace content 958 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698