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

Unified Diff: chrome/browser/ui/ash/accessibility/automation_manager_views.h

Issue 246433012: Extend AXTreeSourceViews to handle aura::Window and views::Widget. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Move files from c/b/u/views/accessibility to c/b/u/ash/accessibility Created 6 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/ash/accessibility/automation_manager_views.h
diff --git a/chrome/browser/ui/views/accessibility/automation_manager_views.h b/chrome/browser/ui/ash/accessibility/automation_manager_views.h
similarity index 65%
rename from chrome/browser/ui/views/accessibility/automation_manager_views.h
rename to chrome/browser/ui/ash/accessibility/automation_manager_views.h
index d2592ae97647cd5a86de5d1adbf700048c42b850..af34ff7d07fb1199a255954898dd210ffb0919ae 100644
--- a/chrome/browser/ui/views/accessibility/automation_manager_views.h
+++ b/chrome/browser/ui/ash/accessibility/automation_manager_views.h
@@ -2,20 +2,21 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_UI_VIEWS_ACCESSIBILITY_AUTOMATION_MANAGER_VIEWS_H_
-#define CHROME_BROWSER_UI_VIEWS_ACCESSIBILITY_AUTOMATION_MANAGER_VIEWS_H_
+#ifndef CHROME_BROWSER_UI_ASH_ACCESSIBILITY_AUTOMATION_MANAGER_VIEWS_H_
+#define CHROME_BROWSER_UI_ASH_ACCESSIBILITY_AUTOMATION_MANAGER_VIEWS_H_
#include "base/basictypes.h"
#include "base/memory/scoped_ptr.h"
+#include "chrome/browser/ui/ash/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 automation support for views.
+ void Enable();
+
+ // Disable automation support for views.
+ void Disable();
+
// Handle an event fired upon a |View|.
void HandleEvent(Profile* profile, views::View* view, ui::AXEvent event_type);
@@ -34,16 +41,20 @@ 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);
};
-#endif // CHROME_BROWSER_UI_VIEWS_ACCESSIBILITY_AUTOMATION_MANAGER_VIEWS_H_
+#endif // CHROME_BROWSER_UI_ASH_ACCESSIBILITY_AUTOMATION_MANAGER_VIEWS_H_
« no previous file with comments | « chrome/browser/ui/ash/accessibility/OWNERS ('k') | chrome/browser/ui/ash/accessibility/automation_manager_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698