OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_ACCESSIBILITY_AX_VIEW_STATE_H_ | 5 #ifndef UI_ACCESSIBILITY_AX_VIEW_STATE_H_ |
6 #define UI_ACCESSIBILITY_AX_VIEW_STATE_H_ | 6 #define UI_ACCESSIBILITY_AX_VIEW_STATE_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
11 #include "base/strings/string16.h" | 11 #include "base/strings/string16.h" |
12 #include "ui/accessibility/ax_enums.h" | |
13 #include "ui/accessibility/ax_export.h" | 12 #include "ui/accessibility/ax_export.h" |
14 | 13 |
15 namespace ui { | 14 namespace ui { |
16 | 15 |
| 16 enum AXRole : int; |
| 17 enum AXState : int; |
| 18 |
17 //////////////////////////////////////////////////////////////////////////////// | 19 //////////////////////////////////////////////////////////////////////////////// |
18 // | 20 // |
19 // AXViewState | 21 // AXViewState |
20 // | 22 // |
21 // A cross-platform struct for storing the core accessibility information | 23 // A cross-platform struct for storing the core accessibility information |
22 // that should be provided about any UI view to assistive technology (AT). | 24 // that should be provided about any UI view to assistive technology (AT). |
23 // | 25 // |
24 //////////////////////////////////////////////////////////////////////////////// | 26 //////////////////////////////////////////////////////////////////////////////// |
25 struct AX_EXPORT AXViewState { | 27 struct AX_EXPORT AXViewState { |
26 public: | 28 public: |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 // should use a WeakPtr when binding the callback. | 75 // should use a WeakPtr when binding the callback. |
74 base::Callback<void(const base::string16&)> set_value_callback; | 76 base::Callback<void(const base::string16&)> set_value_callback; |
75 | 77 |
76 private: | 78 private: |
77 uint32_t state_; | 79 uint32_t state_; |
78 }; | 80 }; |
79 | 81 |
80 } // namespace ui | 82 } // namespace ui |
81 | 83 |
82 #endif // UI_ACCESSIBILITY_AX_VIEW_STATE_H_ | 84 #endif // UI_ACCESSIBILITY_AX_VIEW_STATE_H_ |
OLD | NEW |