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

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

Issue 779103002: Revert of Various changes required to support ChromeVox Next to read Views and Windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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_ASH_ACCESSIBILITY_AX_ROOT_OBJ_WRAPPER_H_ 5 #ifndef CHROME_BROWSER_UI_ASH_ACCESSIBILITY_AX_ROOT_OBJ_WRAPPER_H_
6 #define CHROME_BROWSER_UI_ASH_ACCESSIBILITY_AX_ROOT_OBJ_WRAPPER_H_ 6 #define CHROME_BROWSER_UI_ASH_ACCESSIBILITY_AX_ROOT_OBJ_WRAPPER_H_
7 7
8 #include <string>
9
10 #include "base/basictypes.h" 8 #include "base/basictypes.h"
11 #include "ui/views/accessibility/ax_aura_obj_wrapper.h" 9 #include "ui/views/accessibility/ax_aura_obj_wrapper.h"
12 10
13 namespace {
14 class AlertWindow;
15 } // namespace
16
17 class AXRootObjWrapper : public views::AXAuraObjWrapper { 11 class AXRootObjWrapper : public views::AXAuraObjWrapper {
18 public: 12 public:
19 explicit AXRootObjWrapper(int32 id); 13 explicit AXRootObjWrapper(int32 id);
20 ~AXRootObjWrapper() override; 14 ~AXRootObjWrapper() override;
21 15
22 // Returns an AXAuraObjWrapper for an alert window with title set to |text|.
23 views::AXAuraObjWrapper* GetAlertForText(const std::string& text);
24
25 // Convenience method to check for existence of a child. 16 // Convenience method to check for existence of a child.
26 bool HasChild(views::AXAuraObjWrapper* child); 17 bool HasChild(views::AXAuraObjWrapper* child);
27 18
28 // views::AXAuraObjWrapper overrides. 19 // views::AXAuraObjWrapper overrides.
29 views::AXAuraObjWrapper* GetParent() override; 20 views::AXAuraObjWrapper* GetParent() override;
30 void GetChildren( 21 void GetChildren(
31 std::vector<views::AXAuraObjWrapper*>* out_children) override; 22 std::vector<views::AXAuraObjWrapper*>* out_children) override;
32 void Serialize(ui::AXNodeData* out_node_data) override; 23 void Serialize(ui::AXNodeData* out_node_data) override;
33 int32 GetID() override; 24 int32 GetID() override;
34 25
35 private: 26 private:
36 int32 id_; 27 int32 id_;
37 28
38 AlertWindow* alert_window_;
39
40 DISALLOW_COPY_AND_ASSIGN(AXRootObjWrapper); 29 DISALLOW_COPY_AND_ASSIGN(AXRootObjWrapper);
41 }; 30 };
42 31
43 #endif // CHROME_BROWSER_UI_ASH_ACCESSIBILITY_AX_ROOT_OBJ_WRAPPER_H_ 32 #endif // CHROME_BROWSER_UI_ASH_ACCESSIBILITY_AX_ROOT_OBJ_WRAPPER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698