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_BASE_ACCESSIBILITY_ACCESSIBLE_VIEW_STATE_H_ | 5 #ifndef UI_BASE_ACCESSIBILITY_ACCESSIBLE_VIEW_STATE_H_ |
6 #define UI_BASE_ACCESSIBILITY_ACCESSIBLE_VIEW_STATE_H_ | 6 #define UI_BASE_ACCESSIBILITY_ACCESSIBLE_VIEW_STATE_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/callback.h" | 9 #include "base/callback.h" |
10 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
11 #include "ui/base/accessibility/accessibility_types.h" | 11 #include "ui/base/accessibility/accessibility_types.h" |
12 #include "ui/base/ui_export.h" | 12 #include "ui/base/ui_base_export.h" |
13 | 13 |
14 namespace ui { | 14 namespace ui { |
15 | 15 |
16 //////////////////////////////////////////////////////////////////////////////// | 16 //////////////////////////////////////////////////////////////////////////////// |
17 // | 17 // |
18 // AccessibleViewState | 18 // AccessibleViewState |
19 // | 19 // |
20 // A cross-platform struct for storing the core accessibility information | 20 // A cross-platform struct for storing the core accessibility information |
21 // that should be provided about any UI view to assistive technology (AT). | 21 // that should be provided about any UI view to assistive technology (AT). |
22 // | 22 // |
23 //////////////////////////////////////////////////////////////////////////////// | 23 //////////////////////////////////////////////////////////////////////////////// |
24 struct UI_EXPORT AccessibleViewState { | 24 struct UI_BASE_EXPORT AccessibleViewState { |
25 public: | 25 public: |
26 AccessibleViewState(); | 26 AccessibleViewState(); |
27 ~AccessibleViewState(); | 27 ~AccessibleViewState(); |
28 | 28 |
29 // The view's role, like button or list box. | 29 // The view's role, like button or list box. |
30 AccessibilityTypes::Role role; | 30 AccessibilityTypes::Role role; |
31 | 31 |
32 // The view's state, a bitmask containing fields such as checked | 32 // The view's state, a bitmask containing fields such as checked |
33 // (for a checkbox) and protected (for a password text box). | 33 // (for a checkbox) and protected (for a password text box). |
34 AccessibilityTypes::State state; | 34 AccessibilityTypes::State state; |
(...skipping 29 matching lines...) Expand all Loading... |
64 // | 64 // |
65 // This callback is only valid for the lifetime of the view, and should | 65 // This callback is only valid for the lifetime of the view, and should |
66 // be a safe no-op if the view is deleted. Typically, accessible views | 66 // be a safe no-op if the view is deleted. Typically, accessible views |
67 // should use a WeakPtr when binding the callback. | 67 // should use a WeakPtr when binding the callback. |
68 base::Callback<void(const base::string16&)> set_value_callback; | 68 base::Callback<void(const base::string16&)> set_value_callback; |
69 }; | 69 }; |
70 | 70 |
71 } // namespace ui | 71 } // namespace ui |
72 | 72 |
73 #endif // UI_BASE_ACCESSIBILITY_ACCESSIBLE_VIEW_STATE_H_ | 73 #endif // UI_BASE_ACCESSIBILITY_ACCESSIBLE_VIEW_STATE_H_ |
OLD | NEW |