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

Side by Side Diff: ui/base/accessibility/accessible_view_state.h

Issue 7328011: Introduce ui.dll / libui.so for the component build. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 5 months 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 | Annotate | Revision Log
OLDNEW
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 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/string16.h" 10 #include "base/string16.h"
11 #include "ui/base/accessibility/accessibility_types.h" 11 #include "ui/base/accessibility/accessibility_types.h"
12 #include "ui/ui_api.h"
12 13
13 namespace ui { 14 namespace ui {
14 15
15 //////////////////////////////////////////////////////////////////////////////// 16 ////////////////////////////////////////////////////////////////////////////////
16 // 17 //
17 // AccessibleViewState 18 // AccessibleViewState
18 // 19 //
19 // A cross-platform struct for storing the core accessibility information 20 // A cross-platform struct for storing the core accessibility information
20 // 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).
21 // 22 //
22 //////////////////////////////////////////////////////////////////////////////// 23 ////////////////////////////////////////////////////////////////////////////////
23 struct AccessibleViewState { 24 struct UI_API AccessibleViewState {
24 public: 25 public:
25 AccessibleViewState(); 26 AccessibleViewState();
26 ~AccessibleViewState(); 27 ~AccessibleViewState();
27 28
28 // The view's role, like button or list box. 29 // The view's role, like button or list box.
29 AccessibilityTypes::Role role; 30 AccessibilityTypes::Role role;
30 31
31 // The view's state, a bitmask containing fields such as checked 32 // The view's state, a bitmask containing fields such as checked
32 // (for a checkbox) and protected (for a password text box). 33 // (for a checkbox) and protected (for a password text box).
33 AccessibilityTypes::State state; 34 AccessibilityTypes::State state;
(...skipping 18 matching lines...) Expand all
52 // The selected item's index and the count of the number of items. 53 // The selected item's index and the count of the number of items.
53 // Only applies to views with multiple choices like a listbox; both 54 // Only applies to views with multiple choices like a listbox; both
54 // index and count should be -1 otherwise. 55 // index and count should be -1 otherwise.
55 int index; 56 int index;
56 int count; 57 int count;
57 }; 58 };
58 59
59 } // namespace ui 60 } // namespace ui
60 61
61 #endif // UI_BASE_ACCESSIBILITY_ACCESSIBLE_VIEW_STATE_H_ 62 #endif // UI_BASE_ACCESSIBILITY_ACCESSIBLE_VIEW_STATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698