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

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

Issue 1413423003: Move some AX attrs from AXNodeData to AXTreeData. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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 "base/android/scoped_java_ref.h" 8 #include "base/android/scoped_java_ref.h"
9 #include "content/browser/accessibility/browser_accessibility_manager.h" 9 #include "content/browser/accessibility/browser_accessibility_manager.h"
10 #include "content/browser/android/content_view_core_impl.h" 10 #include "content/browser/android/content_view_core_impl.h"
(...skipping 30 matching lines...) Expand all
41 ANDROID_ACCESSIBILITY_EVENT_TEXT_TRAVERSED_AT_MOVEMENT_GRANULARITY = 131072 41 ANDROID_ACCESSIBILITY_EVENT_TEXT_TRAVERSED_AT_MOVEMENT_GRANULARITY = 131072
42 }; 42 };
43 43
44 class BrowserAccessibilityAndroid; 44 class BrowserAccessibilityAndroid;
45 45
46 class CONTENT_EXPORT BrowserAccessibilityManagerAndroid 46 class CONTENT_EXPORT BrowserAccessibilityManagerAndroid
47 : public BrowserAccessibilityManager { 47 : public BrowserAccessibilityManager {
48 public: 48 public:
49 BrowserAccessibilityManagerAndroid( 49 BrowserAccessibilityManagerAndroid(
50 base::android::ScopedJavaLocalRef<jobject> content_view_core, 50 base::android::ScopedJavaLocalRef<jobject> content_view_core,
51 const SimpleAXTreeUpdate& initial_tree, 51 const ui::AXTreeUpdate& initial_tree,
52 BrowserAccessibilityDelegate* delegate, 52 BrowserAccessibilityDelegate* delegate,
53 BrowserAccessibilityFactory* factory = new BrowserAccessibilityFactory()); 53 BrowserAccessibilityFactory* factory = new BrowserAccessibilityFactory());
54 54
55 ~BrowserAccessibilityManagerAndroid() override; 55 ~BrowserAccessibilityManagerAndroid() override;
56 56
57 static SimpleAXTreeUpdate GetEmptyDocument(); 57 static ui::AXTreeUpdate GetEmptyDocument();
58 58
59 void SetContentViewCore( 59 void SetContentViewCore(
60 base::android::ScopedJavaLocalRef<jobject> content_view_core); 60 base::android::ScopedJavaLocalRef<jobject> content_view_core);
61 61
62 // By default, the tree is pruned for a better screen reading experience, 62 // By default, the tree is pruned for a better screen reading experience,
63 // including: 63 // including:
64 // * If the node has only static text children 64 // * If the node has only static text children
65 // * If the node is focusable and has no focusable children 65 // * If the node is focusable and has no focusable children
66 // * If the node is a heading 66 // * If the node is a heading
67 // This can be turned off to generate a tree that more accurately reflects 67 // This can be turned off to generate a tree that more accurately reflects
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 bool prune_tree_for_screen_reader_; 179 bool prune_tree_for_screen_reader_;
180 180
181 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityManagerAndroid); 181 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityManagerAndroid);
182 }; 182 };
183 183
184 bool RegisterBrowserAccessibilityManager(JNIEnv* env); 184 bool RegisterBrowserAccessibilityManager(JNIEnv* env);
185 185
186 } 186 }
187 187
188 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_ANDROID_H _ 188 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_ANDROID_H _
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698