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

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

Issue 3173040: Revert 57188 - Add html node info (tag name, attributes, and computed display... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years, 4 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/common/render_messages_unittest.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 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 STATE_LINKED, 140 STATE_LINKED,
141 STATE_MULTISELECTABLE, 141 STATE_MULTISELECTABLE,
142 STATE_OFFSCREEN, 142 STATE_OFFSCREEN,
143 STATE_PRESSED, 143 STATE_PRESSED,
144 STATE_PROTECTED, 144 STATE_PROTECTED,
145 STATE_READONLY, 145 STATE_READONLY,
146 STATE_TRAVERSED, 146 STATE_TRAVERSED,
147 STATE_UNAVAILABLE 147 STATE_UNAVAILABLE
148 }; 148 };
149 149
150 // Additional optional attributes that can be optionally attached to
151 // a node.
152 enum Attribute { 150 enum Attribute {
153 // Doc attributes: only make sense when applied to the top-level
154 // Document node.
155 ATTR_DOC_URL,
156 ATTR_DOC_TITLE,
157 ATTR_DOC_MIMETYPE,
158 ATTR_DOC_DOCTYPE,
159
160 // Attributes that could apply to any node.
161 ATTR_ACTION, 151 ATTR_ACTION,
162 ATTR_DESCRIPTION, 152 ATTR_DESCRIPTION,
163 ATTR_DISPLAY,
164 ATTR_HELP, 153 ATTR_HELP,
165 ATTR_HTML_TAG, 154 ATTR_HTML_TAG,
166 ATTR_LINK_TARGET, 155 ATTR_LINK_TARGET,
167 ATTR_SHORTCUT, 156 ATTR_SHORTCUT,
168 NUM_ATTRIBUTES 157 NUM_ATTRIBUTES
169 }; 158 };
170 159
171 // Empty constructor, for serialization. 160 // Empty constructor, for serialization.
172 WebAccessibility(); 161 WebAccessibility();
173 162
(...skipping 10 matching lines...) Expand all
184 // This is a simple serializable struct. All member variables should be 173 // This is a simple serializable struct. All member variables should be
185 // copyable. 174 // copyable.
186 int32 id; 175 int32 id;
187 string16 name; 176 string16 name;
188 string16 value; 177 string16 value;
189 Role role; 178 Role role;
190 uint32 state; 179 uint32 state;
191 WebKit::WebRect location; 180 WebKit::WebRect location;
192 std::map<int32, string16> attributes; 181 std::map<int32, string16> attributes;
193 std::vector<WebAccessibility> children; 182 std::vector<WebAccessibility> children;
194 std::vector<std::pair<string16, string16> > html_attributes;
195 }; 183 };
196 184
197 } // namespace webkit_glue 185 } // namespace webkit_glue
198 186
199 #endif // WEBKIT_GLUE_WEBACCESSIBILITY_H_ 187 #endif // WEBKIT_GLUE_WEBACCESSIBILITY_H_
OLDNEW
« no previous file with comments | « chrome/common/render_messages_unittest.cc ('k') | webkit/glue/webaccessibility.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698