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

Side by Side Diff: chrome/browser/ui/ash/accessibility/ax_tree_source_ash.h

Issue 1040863002: Revert "Enable chrome.automation.getDesktop on all aura platforms." (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 CHROME_BROWSER_UI_AURA_ACCESSIBILITY_AX_TREE_SOURCE_AURA_H_ 5 #ifndef CHROME_BROWSER_UI_ASH_ACCESSIBILITY_AX_TREE_SOURCE_ASH_H_
6 #define CHROME_BROWSER_UI_AURA_ACCESSIBILITY_AX_TREE_SOURCE_AURA_H_ 6 #define CHROME_BROWSER_UI_ASH_ACCESSIBILITY_AX_TREE_SOURCE_ASH_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "chrome/browser/ui/aura/accessibility/ax_root_obj_wrapper.h" 12 #include "chrome/browser/ui/ash/accessibility/ax_root_obj_wrapper.h"
13 #include "ui/accessibility/ax_tree_source.h" 13 #include "ui/accessibility/ax_tree_source.h"
14 14
15 namespace views { 15 namespace views {
16 class AXAuraObjWrapper; 16 class AXAuraObjWrapper;
17 } // namespace views 17 } // namespace views
18 18
19 // This class exposes the views hierarchy as an accessibility tree permitting 19 // This class exposes the views hierarchy as an accessibility tree permitting
20 // use with other accessibility classes. 20 // use with other accessibility classes.
21 class AXTreeSourceAura : public ui::AXTreeSource<views::AXAuraObjWrapper*> { 21 class AXTreeSourceAsh
22 : public ui::AXTreeSource<views::AXAuraObjWrapper*> {
22 public: 23 public:
23 AXTreeSourceAura(); 24 AXTreeSourceAsh();
24 ~AXTreeSourceAura() override; 25 ~AXTreeSourceAsh() override;
25 26
26 // A set of actions invoked on an Aura view. 27 // A set of actions invoked on an Aura view.
27 void DoDefault(int32 id); 28 void DoDefault(int32 id);
28 void Focus(int32 id); 29 void Focus(int32 id);
29 void MakeVisible(int32 id); 30 void MakeVisible(int32 id);
30 void SetSelection(int32 id, int32 start, int32 end); 31 void SetSelection(int32 id, int32 start, int32 end);
31 32
32 // AXTreeSource implementation. 33 // AXTreeSource implementation.
33 views::AXAuraObjWrapper* GetRoot() const override; 34 views::AXAuraObjWrapper* GetRoot() const override;
34 views::AXAuraObjWrapper* GetFromId(int32 id) const override; 35 views::AXAuraObjWrapper* GetFromId(int32 id) const override;
35 int32 GetId(views::AXAuraObjWrapper* node) const override; 36 int32 GetId(views::AXAuraObjWrapper* node) const override;
36 void GetChildren( 37 void GetChildren(
37 views::AXAuraObjWrapper* node, 38 views::AXAuraObjWrapper* node,
38 std::vector<views::AXAuraObjWrapper*>* out_children) const override; 39 std::vector<views::AXAuraObjWrapper*>* out_children) const override;
39 views::AXAuraObjWrapper* GetParent( 40 views::AXAuraObjWrapper* GetParent(
40 views::AXAuraObjWrapper* node) const override; 41 views::AXAuraObjWrapper* node) const override;
41 bool IsValid(views::AXAuraObjWrapper* node) const override; 42 bool IsValid(views::AXAuraObjWrapper* node) const override;
42 bool IsEqual(views::AXAuraObjWrapper* node1, 43 bool IsEqual(views::AXAuraObjWrapper* node1,
43 views::AXAuraObjWrapper* node2) const override; 44 views::AXAuraObjWrapper* node2) const override;
44 views::AXAuraObjWrapper* GetNull() const override; 45 views::AXAuraObjWrapper* GetNull() const override;
45 void SerializeNode(views::AXAuraObjWrapper* node, 46 void SerializeNode(views::AXAuraObjWrapper* node,
46 ui::AXNodeData* out_data) const override; 47 ui::AXNodeData* out_data) const override;
47 48
48 // Useful for debugging. 49 // Useful for debugging.
49 std::string ToString(views::AXAuraObjWrapper* root, std::string prefix); 50 std::string ToString(views::AXAuraObjWrapper* root, std::string prefix);
50 51
51 private: 52 private:
52 scoped_ptr<AXRootObjWrapper> root_; 53 scoped_ptr<AXRootObjWrapper> root_;
53 54
54 DISALLOW_COPY_AND_ASSIGN(AXTreeSourceAura); 55 DISALLOW_COPY_AND_ASSIGN(AXTreeSourceAsh);
55 }; 56 };
56 57
57 #endif // CHROME_BROWSER_UI_AURA_ACCESSIBILITY_AX_TREE_SOURCE_AURA_H_ 58 #endif // CHROME_BROWSER_UI_ASH_ACCESSIBILITY_AX_TREE_SOURCE_ASH_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/ash/accessibility/ax_root_obj_wrapper.cc ('k') | chrome/browser/ui/ash/accessibility/ax_tree_source_ash.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698