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

Unified Diff: chrome/browser/ui/ash/accessibility/ax_root_obj_wrapper.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/ax_root_obj_wrapper.h
diff --git a/chrome/browser/ui/ash/accessibility/ax_root_obj_wrapper.h b/chrome/browser/ui/ash/accessibility/ax_root_obj_wrapper.h
new file mode 100644
index 0000000000000000000000000000000000000000..d75c377e8a68fb6c8357c2481a76ebb567ba8366
--- /dev/null
+++ b/chrome/browser/ui/ash/accessibility/ax_root_obj_wrapper.h
@@ -0,0 +1,32 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_UI_ASH_ACCESSIBILITY_AX_ROOT_OBJ_WRAPPER_H_
+#define CHROME_BROWSER_UI_ASH_ACCESSIBILITY_AX_ROOT_OBJ_WRAPPER_H_
+
+#include "base/basictypes.h"
+#include "ui/views/accessibility/ax_aura_obj_wrapper.h"
+
+class AXRootObjWrapper : public views::AXAuraObjWrapper {
+ public:
+ explicit AXRootObjWrapper(int32 id);
+ virtual ~AXRootObjWrapper();
+
+ // Convenience method to check for existence of a child.
+ bool HasChild(views::AXAuraObjWrapper* child);
+
+ // views::AXAuraObjWrapper overrides.
+ virtual views::AXAuraObjWrapper* GetParent() OVERRIDE;
+ virtual void GetChildren(
+ std::vector<views::AXAuraObjWrapper*>* out_children) OVERRIDE;
+ virtual void Serialize(ui::AXNodeData* out_node_data) OVERRIDE;
+ virtual int32 GetID() OVERRIDE;
+
+ private:
+ int32 id_;
+
+ DISALLOW_COPY_AND_ASSIGN(AXRootObjWrapper);
+};
+
+#endif // CHROME_BROWSER_UI_ASH_ACCESSIBILITY_AX_ROOT_OBJ_WRAPPER_H_

Powered by Google App Engine
This is Rietveld 408576698