OLD | NEW |
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 UI_VIEWS_ACCESSIBILITY_AX_WINDOW_OBJ_WRAPPER_H_ | 5 #ifndef UI_VIEWS_ACCESSIBILITY_AX_WINDOW_OBJ_WRAPPER_H_ |
6 #define UI_VIEWS_ACCESSIBILITY_AX_WINDOW_OBJ_WRAPPER_H_ | 6 #define UI_VIEWS_ACCESSIBILITY_AX_WINDOW_OBJ_WRAPPER_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 17 matching lines...) Expand all Loading... |
28 bool is_alert() { return is_alert_; } | 28 bool is_alert() { return is_alert_; } |
29 | 29 |
30 // Sets whether this window is an alert window. | 30 // Sets whether this window is an alert window. |
31 void set_is_alert(bool is_alert) { is_alert_ = is_alert; } | 31 void set_is_alert(bool is_alert) { is_alert_ = is_alert; } |
32 | 32 |
33 // AXAuraObjWrapper overrides. | 33 // AXAuraObjWrapper overrides. |
34 AXAuraObjWrapper* GetParent() override; | 34 AXAuraObjWrapper* GetParent() override; |
35 void GetChildren(std::vector<AXAuraObjWrapper*>* out_children) override; | 35 void GetChildren(std::vector<AXAuraObjWrapper*>* out_children) override; |
36 void Serialize(ui::AXNodeData* out_node_data) override; | 36 void Serialize(ui::AXNodeData* out_node_data) override; |
37 int32_t GetID() override; | 37 int32_t GetID() override; |
| 38 bool HandleAccessibleAction(const ui::AXActionData& action) override; |
38 | 39 |
39 // WindowObserver overrides. | 40 // WindowObserver overrides. |
40 void OnWindowDestroyed(aura::Window* window) override; | 41 void OnWindowDestroyed(aura::Window* window) override; |
41 void OnWindowDestroying(aura::Window* window) override; | 42 void OnWindowDestroying(aura::Window* window) override; |
42 void OnWindowHierarchyChanged(const HierarchyChangeParams& params) override; | 43 void OnWindowHierarchyChanged(const HierarchyChangeParams& params) override; |
43 void OnWindowBoundsChanged(aura::Window* window, | 44 void OnWindowBoundsChanged(aura::Window* window, |
44 const gfx::Rect& old_bounds, | 45 const gfx::Rect& old_bounds, |
45 const gfx::Rect& new_bounds) override; | 46 const gfx::Rect& new_bounds) override; |
46 | 47 |
47 private: | 48 private: |
48 aura::Window* window_; | 49 aura::Window* window_; |
49 | 50 |
50 bool is_alert_; | 51 bool is_alert_; |
51 | 52 |
52 DISALLOW_COPY_AND_ASSIGN(AXWindowObjWrapper); | 53 DISALLOW_COPY_AND_ASSIGN(AXWindowObjWrapper); |
53 }; | 54 }; |
54 | 55 |
55 } // namespace views | 56 } // namespace views |
56 | 57 |
57 #endif // UI_VIEWS_ACCESSIBILITY_AX_WINDOW_OBJ_WRAPPER_H_ | 58 #endif // UI_VIEWS_ACCESSIBILITY_AX_WINDOW_OBJ_WRAPPER_H_ |
OLD | NEW |