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

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

Issue 743273002: 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: Rebase 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
8 #include "base/basictypes.h" 10 #include "base/basictypes.h"
9 #include "ui/views/accessibility/ax_aura_obj_wrapper.h" 11 #include "ui/views/accessibility/ax_aura_obj_wrapper.h"
10 12
13 namespace {
14 class AlertWindow;
15 } // namespace
16
11 class AXRootObjWrapper : public views::AXAuraObjWrapper { 17 class AXRootObjWrapper : public views::AXAuraObjWrapper {
12 public: 18 public:
13 explicit AXRootObjWrapper(int32 id); 19 explicit AXRootObjWrapper(int32 id);
14 ~AXRootObjWrapper() override; 20 ~AXRootObjWrapper() override;
15 21
22 // Returns an AXAuraObjWrapper for an alert window with title set to |text|.
23 views::AXAuraObjWrapper* GetAlertForText(const std::string& text);
24
16 // Convenience method to check for existence of a child. 25 // Convenience method to check for existence of a child.
17 bool HasChild(views::AXAuraObjWrapper* child); 26 bool HasChild(views::AXAuraObjWrapper* child);
18 27
19 // views::AXAuraObjWrapper overrides. 28 // views::AXAuraObjWrapper overrides.
20 views::AXAuraObjWrapper* GetParent() override; 29 views::AXAuraObjWrapper* GetParent() override;
21 void GetChildren( 30 void GetChildren(
22 std::vector<views::AXAuraObjWrapper*>* out_children) override; 31 std::vector<views::AXAuraObjWrapper*>* out_children) override;
23 void Serialize(ui::AXNodeData* out_node_data) override; 32 void Serialize(ui::AXNodeData* out_node_data) override;
24 int32 GetID() override; 33 int32 GetID() override;
25 34
26 private: 35 private:
27 int32 id_; 36 int32 id_;
28 37
38 AlertWindow* alert_window_;
39
29 DISALLOW_COPY_AND_ASSIGN(AXRootObjWrapper); 40 DISALLOW_COPY_AND_ASSIGN(AXRootObjWrapper);
30 }; 41 };
31 42
32 #endif // CHROME_BROWSER_UI_ASH_ACCESSIBILITY_AX_ROOT_OBJ_WRAPPER_H_ 43 #endif // CHROME_BROWSER_UI_ASH_ACCESSIBILITY_AX_ROOT_OBJ_WRAPPER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698