Index: chrome/browser/ui/views/accessibility/automation_manager_views.h |
diff --git a/chrome/browser/ui/views/accessibility/automation_manager_views.h b/chrome/browser/ui/views/accessibility/automation_manager_views.h |
index d2592ae97647cd5a86de5d1adbf700048c42b850..c209426763a5c99f001933f4df4b96f06b4d25da 100644 |
--- a/chrome/browser/ui/views/accessibility/automation_manager_views.h |
+++ b/chrome/browser/ui/views/accessibility/automation_manager_views.h |
@@ -8,14 +8,15 @@ |
#include "base/basictypes.h" |
#include "base/memory/scoped_ptr.h" |
+#include "chrome/browser/ui/views/accessibility/ax_tree_source_views.h" |
#include "ui/accessibility/ax_tree_serializer.h" |
-#include "ui/views/accessibility/ax_tree_source_views.h" |
template <typename T> struct DefaultSingletonTraits; |
class Profile; |
namespace views { |
+class AXAuraObjWrapper; |
class View; |
} // namespace views |
@@ -25,6 +26,12 @@ class AutomationManagerViews { |
// Get the single instance of this class. |
static AutomationManagerViews* GetInstance(); |
+ // Enable views-based automation. |
dmazzoni
2014/04/29 17:20:59
That sounds backwards if you don't already underst
|
+ void Enable(); |
+ |
+ // Disable views-based automation. |
+ void Disable(); |
+ |
// Handle an event fired upon a |View|. |
void HandleEvent(Profile* profile, views::View* view, ui::AXEvent event_type); |
@@ -34,14 +41,18 @@ class AutomationManagerViews { |
AutomationManagerViews(); |
~AutomationManagerViews(); |
+ // Whether Views-based automation is enabled. |
+ bool enabled_; |
+ |
// Holds the active views-based accessibility tree. A tree currently consists |
// of all views descendant to a |Widget| (see |AXTreeSourceViews|). |
// A tree becomes active when an event is fired on a descendant view. |
- scoped_ptr <views::AXTreeSourceViews> current_tree_; |
+ scoped_ptr <AXTreeSourceViews> current_tree_; |
// Serializes incremental updates on the currently active tree |
// |current_tree_|. |
- scoped_ptr<ui::AXTreeSerializer<views::View*> > current_tree_serializer_; |
+ scoped_ptr<ui::AXTreeSerializer<views::AXAuraObjWrapper*> > |
+ current_tree_serializer_; |
DISALLOW_COPY_AND_ASSIGN(AutomationManagerViews); |
}; |