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

Side by Side Diff: webkit/glue/webaccessibility.h

Issue 3380017: Support additional webkit accessibility notifications and states. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Adding missig file. Created 10 years, 2 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
« no previous file with comments | « chrome/renderer/render_view.cc ('k') | webkit/glue/webaccessibility.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 WEBKIT_GLUE_WEBACCESSIBILITY_H_ 5 #ifndef WEBKIT_GLUE_WEBACCESSIBILITY_H_
6 #define WEBKIT_GLUE_WEBACCESSIBILITY_H_ 6 #define WEBKIT_GLUE_WEBACCESSIBILITY_H_
7 7
8 #include <map> 8 #include <map>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 ROLE_WINDOW, 125 ROLE_WINDOW,
126 NUM_ROLES 126 NUM_ROLES
127 }; 127 };
128 128
129 // An alphabetical enumeration of accessibility states. 129 // An alphabetical enumeration of accessibility states.
130 // A state bitmask is formed by shifting 1 to the left by each state, 130 // A state bitmask is formed by shifting 1 to the left by each state,
131 // for example: 131 // for example:
132 // int mask = (1 << STATE_CHECKED) | (1 << STATE_FOCUSED); 132 // int mask = (1 << STATE_CHECKED) | (1 << STATE_FOCUSED);
133 enum State { 133 enum State {
134 STATE_CHECKED, 134 STATE_CHECKED,
135 STATE_COLLAPSED,
136 STATE_EXPANDED,
135 STATE_FOCUSABLE, 137 STATE_FOCUSABLE,
136 STATE_FOCUSED, 138 STATE_FOCUSED,
139 STATE_HASPOPUP,
137 STATE_HOTTRACKED, 140 STATE_HOTTRACKED,
138 STATE_INDETERMINATE, 141 STATE_INDETERMINATE,
142 STATE_INVISIBLE,
139 STATE_LINKED, 143 STATE_LINKED,
140 STATE_MULTISELECTABLE, 144 STATE_MULTISELECTABLE,
141 STATE_OFFSCREEN, 145 STATE_OFFSCREEN,
142 STATE_PRESSED, 146 STATE_PRESSED,
143 STATE_PROTECTED, 147 STATE_PROTECTED,
144 STATE_READONLY, 148 STATE_READONLY,
149 STATE_SELECTABLE,
150 STATE_SELECTED,
145 STATE_TRAVERSED, 151 STATE_TRAVERSED,
146 STATE_BUSY, 152 STATE_BUSY,
147 STATE_UNAVAILABLE 153 STATE_UNAVAILABLE
148 }; 154 };
149 155
150 // Additional optional attributes that can be optionally attached to 156 // Additional optional attributes that can be optionally attached to
151 // a node. 157 // a node.
152 enum Attribute { 158 enum Attribute {
153 // Doc attributes: only make sense when applied to the top-level 159 // Doc attributes: only make sense when applied to the top-level
154 // Document node. 160 // Document node.
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 uint32 state; 198 uint32 state;
193 WebKit::WebRect location; 199 WebKit::WebRect location;
194 std::map<int32, string16> attributes; 200 std::map<int32, string16> attributes;
195 std::vector<WebAccessibility> children; 201 std::vector<WebAccessibility> children;
196 std::vector<std::pair<string16, string16> > html_attributes; 202 std::vector<std::pair<string16, string16> > html_attributes;
197 }; 203 };
198 204
199 } // namespace webkit_glue 205 } // namespace webkit_glue
200 206
201 #endif // WEBKIT_GLUE_WEBACCESSIBILITY_H_ 207 #endif // WEBKIT_GLUE_WEBACCESSIBILITY_H_
OLDNEW
« no previous file with comments | « chrome/renderer/render_view.cc ('k') | webkit/glue/webaccessibility.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698