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

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

Issue 1896463002: Merge to M51: Accessible location change events need to update internal data structure (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2704
Patch Set: Created 4 years, 8 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 #ifndef CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_ANDROID_H_ 5 #ifndef CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_ANDROID_H_
6 #define CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_ANDROID_H_ 6 #define CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_ANDROID_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/android/scoped_java_ref.h" 10 #include "base/android/scoped_java_ref.h"
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 // This can be turned off to generate a tree that more accurately reflects 70 // This can be turned off to generate a tree that more accurately reflects
71 // the DOM and includes style changes within these nodes. 71 // the DOM and includes style changes within these nodes.
72 void set_prune_tree_for_screen_reader(bool prune) { 72 void set_prune_tree_for_screen_reader(bool prune) {
73 prune_tree_for_screen_reader_ = prune; 73 prune_tree_for_screen_reader_ = prune;
74 } 74 }
75 bool prune_tree_for_screen_reader() { return prune_tree_for_screen_reader_; } 75 bool prune_tree_for_screen_reader() { return prune_tree_for_screen_reader_; }
76 76
77 // Implementation of BrowserAccessibilityManager. 77 // Implementation of BrowserAccessibilityManager.
78 void NotifyAccessibilityEvent(ui::AXEvent event_type, 78 void NotifyAccessibilityEvent(ui::AXEvent event_type,
79 BrowserAccessibility* node) override; 79 BrowserAccessibility* node) override;
80 void OnLocationChanges( 80 void SendLocationChangeEvents(
81 const std::vector<AccessibilityHostMsg_LocationChangeParams>& params) 81 const std::vector<AccessibilityHostMsg_LocationChangeParams>& params)
82 override; 82 override;
83 83
84 // -------------------------------------------------------------------------- 84 // --------------------------------------------------------------------------
85 // Methods called from Java via JNI 85 // Methods called from Java via JNI
86 // -------------------------------------------------------------------------- 86 // --------------------------------------------------------------------------
87 87
88 // Global methods. 88 // Global methods.
89 base::android::ScopedJavaLocalRef<jstring> GetSupportedHtmlElementTypes( 89 base::android::ScopedJavaLocalRef<jstring> GetSupportedHtmlElementTypes(
90 JNIEnv* env, const base::android::JavaParamRef<jobject>& obj); 90 JNIEnv* env, const base::android::JavaParamRef<jobject>& obj);
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
252 bool prune_tree_for_screen_reader_; 252 bool prune_tree_for_screen_reader_;
253 253
254 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityManagerAndroid); 254 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityManagerAndroid);
255 }; 255 };
256 256
257 bool RegisterBrowserAccessibilityManager(JNIEnv* env); 257 bool RegisterBrowserAccessibilityManager(JNIEnv* env);
258 258
259 } 259 }
260 260
261 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_ANDROID_H _ 261 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_ANDROID_H _
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698