| 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 #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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 // * If the node has only static text children | 67 // * If the node has only static text children |
| 68 // * If the node is focusable and has no focusable children | 68 // * If the node is focusable and has no focusable children |
| 69 // * If the node is a heading | 69 // * If the node is a heading |
| 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 bool ShouldRespectDisplayedPasswordText(); |
| 77 bool ShouldExposePasswordText(); | 78 bool ShouldExposePasswordText(); |
| 78 | 79 |
| 79 // BrowserAccessibilityManager overrides. | 80 // BrowserAccessibilityManager overrides. |
| 80 BrowserAccessibility* GetFocus() override; | 81 BrowserAccessibility* GetFocus() override; |
| 81 void NotifyAccessibilityEvent( | 82 void NotifyAccessibilityEvent( |
| 82 BrowserAccessibilityEvent::Source source, | 83 BrowserAccessibilityEvent::Source source, |
| 83 ui::AXEvent event_type, | 84 ui::AXEvent event_type, |
| 84 BrowserAccessibility* node) override; | 85 BrowserAccessibility* node) override; |
| 85 void SendLocationChangeEvents( | 86 void SendLocationChangeEvents( |
| 86 const std::vector<AccessibilityHostMsg_LocationChangeParams>& params) | 87 const std::vector<AccessibilityHostMsg_LocationChangeParams>& params) |
| (...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 279 bool prune_tree_for_screen_reader_; | 280 bool prune_tree_for_screen_reader_; |
| 280 | 281 |
| 281 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityManagerAndroid); | 282 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityManagerAndroid); |
| 282 }; | 283 }; |
| 283 | 284 |
| 284 bool RegisterBrowserAccessibilityManager(JNIEnv* env); | 285 bool RegisterBrowserAccessibilityManager(JNIEnv* env); |
| 285 | 286 |
| 286 } | 287 } |
| 287 | 288 |
| 288 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_ANDROID_H
_ | 289 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_ANDROID_H
_ |
| OLD | NEW |